X-Git-Url: https://git.p6c8.net/jirafeau_mojo42.git/blobdiff_plain/dc4e2ece81a289c5d0969b411048736af735663a..ef06cd797d4f91e83b1e3e69d815ff3e6c773ace:/file.php?ds=sidebyside diff --git a/file.php b/file.php index 32c097f..0a6e32c 100644 --- a/file.php +++ b/file.php @@ -19,9 +19,10 @@ */ define ('JIRAFEAU_ROOT', dirname (__FILE__) . '/'); -require (JIRAFEAU_ROOT.'lib/config.php'); -require (JIRAFEAU_ROOT.'lib/settings.php'); -require (JIRAFEAU_ROOT.'lib/functions.php'); +require (JIRAFEAU_ROOT . 'lib/lang.php'); +require (JIRAFEAU_ROOT . 'lib/config.php'); +require (JIRAFEAU_ROOT . 'lib/settings.php'); +require (JIRAFEAU_ROOT . 'lib/functions.php'); if (isset ($_GET['h']) && !empty ($_GET['h'])) { @@ -31,7 +32,7 @@ if (isset ($_GET['h']) && !empty ($_GET['h'])) if (isset ($_GET['d']) && !empty ($_GET['d'])) $delete_code = $_GET['d']; - if (!ereg ('[0-9a-f]{32}$', $link_name)) + if (!preg_match ('/[0-9a-f]{32}$/', $link_name)) { header ("HTTP/1.0 404 Not Found");