X-Git-Url: https://git.p6c8.net/jirafeau.git/blobdiff_plain/3cf8b39b331dd5f80c4ac674d13a6387d01d49b9..ef06cd797d4f91e83b1e3e69d815ff3e6c773ace:/file.php?ds=inline 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");