From 2fe993235322c869e98dc1d3b5c1583b66c82c6a Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Wed, 11 May 2005 14:54:52 +0000 Subject: [PATCH] r104: Removed the instances of mysetcookie() --- includes/init.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/includes/init.php b/includes/init.php index 7a0d770..898f7f7 100755 --- a/includes/init.php +++ b/includes/init.php @@ -86,8 +86,8 @@ if (is_array($userinfo) AND $_COOKIE[COOKIE_PREFIX . 'authkey'] == $userinfo['au } else { - mysetcookie(COOKIE_PREFIX . 'userid'); - mysetcookie(COOKIE_PREFIX . 'authkey'); + $funct->cookie(COOKIE_PREFIX . 'userid'); + $funct->cookie(COOKIE_PREFIX . 'authkey'); $bugsys->userinfo = array( 'usergroupid' => 1, 'userid' => 0, @@ -149,7 +149,7 @@ $db->free_result($phrases); // ################################################################### // load locale data -$locale = $db->query("SELECT * FROM " . TABLE_PREFIX . "locale WHERE languageid = " . $bugsys->options['lang_id']); +$locale = $db->query("SELECT * FROM " . TABLE_PREFIX . "locale WHERE languageid = " . intval($bugsys->options['lang_id'])); while ($phrase = $db->fetch_array($locale)) { $bugsys->language["$phrase[varname]"] = $phrase['phrasetext']; -- 2.43.5