Subversion Repositories prepend

Compare Revisions

Regard whitespace Rev 9 → Rev 10

/trunk/config.dist.php
0,0 → 1,34
<?php
 
// PLEASE DO NOT EDIT THIS FILE!
// INSTEAD, COPY IT TO config.local.php AND THEN EDIT IT
 
// Add directories which need mysql_* methods (plugin 001)
// Add '!' in front of a dir to exclude the directory instead of including it
$xxx_vts_prepend_config['directories_need_mysql'] = array(
'/'
);
 
// Add directories which need register globals (plugin 002)
// Add '!' in front of a dir to exclude the directory instead of including it
$xxx_vts_prepend_config['directories_need_registerglobals'] = array(
# '/home/user1/',
# '!/home/user1/secure/',
# '/home/user2/'
);
 
// Add directories which need ereg_* methods (plugin 003)
// Add '!' in front of a dir to exclude the directory instead of including it
$xxx_vts_prepend_config['directories_need_ereg'] = array(
# '/home/user1/',
# '!/home/user1/secure/',
# '/home/user2/'
);
 
// Add directories which are protected with a (weak) XSS WAF (plugin 004)
// Add '!' in front of a dir to exclude the directory instead of including it
$xxx_vts_prepend_config['directories_need_anti_xss'] = array(
# '/home/user1/',
# '!/home/user1/secure/',
# '/home/user2/'
);
/trunk/php_auto_pre/config.dist.php
File deleted
/trunk/php_auto_pre/001-mysql_replacement.php
6,7 → 6,7
// TODO: translate descriptions to english
 
$xxx_vts_prepend_config = array();
if (file_exists($xxx_vts_prepend_config_file = __DIR__.'/config.local.php')) include $xxx_vts_prepend_config_file;
if (file_exists($xxx_vts_prepend_config_file = __DIR__.'/../config.local.php')) include $xxx_vts_prepend_config_file;
unset($xxx_vts_prepend_config_file);
$xxx_directories_need_mysql = $xxx_vts_prepend_config['directories_need_mysql'];
unset($xxx_vts_prepend_config);
/trunk/php_auto_pre/002-register-globals.php
1,7 → 1,7
<?php
 
$xxx_vts_prepend_config = array();
if (file_exists($xxx_vts_prepend_config_file = __DIR__.'/config.local.php')) include $xxx_vts_prepend_config_file;
if (file_exists($xxx_vts_prepend_config_file = __DIR__.'/../config.local.php')) include $xxx_vts_prepend_config_file;
unset($xxx_vts_prepend_config_file);
$xxx_directories_need_registerglobals = $xxx_vts_prepend_config['directories_need_registerglobals'];
unset($xxx_vts_prepend_config);
/trunk/php_auto_pre/003-ereg-functions.php
1,7 → 1,7
<?php
 
$xxx_vts_prepend_config = array();
if (file_exists($xxx_vts_prepend_config_file = __DIR__.'/config.local.php')) include $xxx_vts_prepend_config_file;
if (file_exists($xxx_vts_prepend_config_file = __DIR__.'/../config.local.php')) include $xxx_vts_prepend_config_file;
unset($xxx_vts_prepend_config_file);
$xxx_directories_need_ereg = $xxx_vts_prepend_config['directories_need_ereg'] ?? array();
unset($xxx_vts_prepend_config);
/trunk/php_auto_pre/004-anti-xss.php
3,7 → 3,7
// ATTENTION: This is a very simple XSS "Firewall". There ARE many other ways to do an XSS attack, so please don't rely on this script!
 
$xxx_vts_prepend_config = array();
if (file_exists($xxx_vts_prepend_config_file = __DIR__.'/config.local.php')) include $xxx_vts_prepend_config_file;
if (file_exists($xxx_vts_prepend_config_file = __DIR__.'/../config.local.php')) include $xxx_vts_prepend_config_file;
unset($xxx_vts_prepend_config_file);
$xxx_directories_need_anti_xss = $xxx_vts_prepend_config['directories_need_anti_xss'];
unset($xxx_vts_prepend_config);