浏览代码

Add the password.php to check_auth.php

Mark Crane 12 年之前
父节点
当前提交
b41ad038e6
共有 1 个文件被更改,包括 8 次插入1 次删除
  1. 8 1
      resources/check_auth.php

+ 8 - 1
resources/check_auth.php

@@ -24,7 +24,14 @@
 	Mark J Crane <[email protected]>
 */
 require_once "resources/require.php";
-session_start();
+
+//for compatability require this library if less than version 5.5
+	if (version_compare(phpversion(), '5.5', '<')) {
+		require_once "resources/functions/password.php";
+	}
+
+//start the session
+	session_start();
 
 //if the username session is not set the check username and password
 	if (strlen($_SESSION["username"]) == 0) {