David Ansermot Web Developer / TYPO3 Integrator

18avr/110

TYPO3 – Change files/images upload limit

Today I'll explain how to change the limit for files, images and other medias upload.

To do the trick, you have multiple changes to make.

25fév/110

HowTo Detect SSL in PHP

Here's a little function I had to use today to detect SSL for payments.
It detects if SSL is on, if not, it redirect the user to the SSL url.

  1. if (!isset($_SERVER['HTTPS']) || $_SERVER['HTTPS'] != 'on') {
  2.         $domain = 'https://'.$_SERVER['SERVER_NAME'] . $_SERVER['REQUEST_URI'];
  3.         header('Location: '.$domain);
  4.         exit;
  5. }

Enjoy

3nov/100

Joomla – Detect homepage in extensions

Here's a little tip to detect, in your Joomla extensions, if the Frontend user is on the Homepage.

  1. if (JURI::base() == JURI::current()) {
  2.      // Your code for Homepage
  3. }

Tell me if it bugs for you, but for me on 1.5.21 it's ok

28oct/100

SabreDAV 1.3.0 available

The new version of SabreDAV comes out with a big change: it is the performance gain for the operations of most trees.

As a reminder, you can easily add SabreDAV WebDAV PHP applications. It is intended to cover the full standard to enable integration using this API easily.

Of course, this version also brings many other changes such as:

  • Add a layer of tree cover in the Subject
  • Added a new method
  • Modifications to some classes
  • Patches
  • Etc.

SabreDAV 1.3.0