inc.php
/* Check whether a file is accessible */
Check whether a file is accessible
Check whether a file is accessible
function invalidfilename($name)
    {
        if(basename($name)==='.htaccess')
            return true;
        if(samefd($name,__DIR__.'/inc.php') || samefd($name,__DIR__.'/main.php')
            || samefd($name,__DIR__.'/api.php') || samefd($name,__DIR__.CONFIG_FILE))
            return true;
        return false;
    }
function invalidfilename ( $ name ) { if ( basename ( $ name ) === '.htaccess' ) return true ; if ( samefd ( $ name , __DIR__ . '/inc.php' ) || samefd ( $ name , __DIR__ . '/main.php' ) || samefd ( $ name , __DIR__ . '/api.php' ) || samefd ( $ name , __DIR__ . CONFIG_FILE ) ) return true ; return false ; }
Check whether a file is accessible
Check whether a file is accessible
/* Self-protection */