~ekyo-serwis/pluck-cms/multitheming

« back to all changes in this revision

Viewing changes to data/inc/lib/tarlib.class.php

  • Committer: Anders Jørgensen
  • Date: 2009-11-04 15:50:13 UTC
  • Revision ID: spirit55555@gmail.com-20091104155013-mb0amxcbhra6giz7
Updated page_editmeta.php and added seurity checks to data/inc/lib files.

Show diffs side-by-side

added added

removed removed

Lines of Context:
49
49
 */
50
50
 
51
51
//Make sure the file isn't accessed directly.
52
 
if (!strpos($_SERVER['SCRIPT_FILENAME'], 'index.php') && !strpos($_SERVER['SCRIPT_FILENAME'], 'admin.php') && !strpos($_SERVER['SCRIPT_FILENAME'], 'install.php') && !strpos($_SERVER['SCRIPT_FILENAME'], 'login.php')) {
53
 
        //Give out an "Access denied!" error.
54
 
        echo 'Access denied!';
55
 
        //Block all other code.
56
 
        exit;
57
 
}
 
52
defined('IN_PLUCK') or exit('Access denied!');
58
53
 
59
54
define('COMPRESS_GZIP',1);
60
55
define('COMPRESS_BZIP',2);