includes/common.php
changeset 3 2b2084ca1e60
parent 2 0931d60f5bdb
child 10 2f530ad04f1b
equal deleted inserted replaced
2:0931d60f5bdb 3:2b2084ca1e60
    35 $_starttime = microtime_float();
    35 $_starttime = microtime_float();
    36 
    36 
    37 error_reporting(E_ALL);
    37 error_reporting(E_ALL);
    38 
    38 
    39 // Determine directory (special case for development servers)
    39 // Determine directory (special case for development servers)
    40 if ( strpos(__FILE__, '/enano-clean/') && file_exists('.enanodev') )
    40 if ( strpos(__FILE__, '/repo/') && file_exists('.enanodev') )
    41 {
    41 {
    42   $filename = str_replace('/enano-clean', '', __FILE__);
    42   $filename = str_replace('/repo/', '/', __FILE__);
    43 }
    43 }
    44 else
    44 else
    45 {
    45 {
    46   $filename = __FILE__;
    46   $filename = __FILE__;
    47 }
    47 }