aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/phpbb/db/tools.php
diff options
context:
space:
mode:
authorCesar G <prototech91@gmail.com>2014-04-22 15:20:35 -0700
committerCesar G <prototech91@gmail.com>2014-04-22 16:02:35 -0700
commite104c364f494b44a05e1fae4e0caf1f67de7ea63 (patch)
treeaaaaac3f843a015449d56d2a2c147a23948f225e /phpBB/phpbb/db/tools.php
parentc2ac76e8b11c0cfb5917febe90f56216d74bc10a (diff)
downloadforums-e104c364f494b44a05e1fae4e0caf1f67de7ea63.tar
forums-e104c364f494b44a05e1fae4e0caf1f67de7ea63.tar.gz
forums-e104c364f494b44a05e1fae4e0caf1f67de7ea63.tar.bz2
forums-e104c364f494b44a05e1fae4e0caf1f67de7ea63.tar.xz
forums-e104c364f494b44a05e1fae4e0caf1f67de7ea63.zip
[ticket/11508] Add functional test for jumpbox.
PHPBB3-11508
Diffstat (limited to 'phpBB/phpbb/db/tools.php')
0 files changed, 0 insertions, 0 deletions
span> FILTER_SANITIZE_STRING); } /* * Option for deleting feed cache if blog posts are not parsed properly: * https://www.mageia.org/test/lang.php?delete_feed_cache=1 */ $delete_feed_cache = get('delete_feed_cache'); if ($delete_feed_cache) { $feed_cache_patern = "../_nav/var/tmp/cache/*.spc"; echo "Deleting feed cache!\n\n"; array_map('unlink', glob($feed_cache_patern)); foreach (glob($feed_cache_patern) as $filename) { echo "It seems that deleting feed cache didn't work as some files listed below are still there!\n\n"; echo "$filename, uid: " . fileowner($filename) . "\n"; } } /* * Option for deleting navigation cache if pages in one language are blank or not parsed properly: * https://www.mageia.org/test/lang.php?delete_nav_cache=1 */ $delete_nav_cache = get('delete_nav_cache'); if ($delete_nav_cache) { $nav_cache_patern = "../_nav/var/tmp/cache/nav_lang_*.php"; echo "Deleting navigation cache!\n\n"; array_map('unlink', glob($nav_cache_patern)); foreach (glob($nav_cache_patern) as $filename) { echo "It seems that deleting navigation cache didn't work as some files listed below are still there!\n\n"; echo "$filename, uid: " . fileowner($filename) . "\n"; } } include_once '../localeDetection.class.php'; include_once '../langs.inc.php'; echo 'Accept-Language: ', $_SERVER['HTTP_ACCEPT_LANGUAGE'], "\n\n"; echo "Relocate `community` with `en` as a default: ", relocate($langs, 'community', 'en', null, false), "\n"; echo "\nTests:\n"; $test_dir = '../sv/map/index.php'; $lstat = ''; if (file_exists($test_dir)) { echo "The file $test_dir exists\n"; $lstat = lstat($test_dir); // $linkinfo = linkinfo($test_dir); // $readlink = readlink($test_dir); } else { echo "The file $test_dir does not exist\n"; } if (is_dir($test_dir)) { echo "The $test_dir is a dir\n"; } else { echo "The $test_dir is not a dir.\n"; } if (is_file($test_dir)) { echo "The $test_dir is a file\n"; } else { echo "The $test_dir is not a file.\n"; } if (is_readable($test_dir)) { echo "The file $test_dir is readable\n"; } else { echo "The file $test_dir is not readable\n"; } var_dump($lstat); // var_dump($readlink); $test_dir = '../sl/map/index.php'; $lstat2 = ''; if (file_exists($test_dir)) { echo "The file $test_dir exists\n"; $lstat2 = lstat($test_dir); // $linkinfo = linkinfo($test_dir); // $readlink = readlink($test_dir); } else { echo "The file $test_dir does not exist\n"; } if (is_dir($test_dir)) { echo "The $test_dir is a dir\n"; } else { echo "The $test_dir is not a dir.\n"; } if (is_file($test_dir)) { echo "The $test_dir is a file\n"; } else { echo "The $test_dir is not a file.\n"; } if (is_readable($test_dir)) { echo "The file $test_dir is readable\n"; } else { echo "The file $test_dir is not readable\n"; } var_dump($lstat2); // var_dump($readlink); $diff = array_diff($lstat, $lstat2); var_dump($diff);