Jump to content

Waidesworld

Members
  • Content count

    3
  • Joined

  • Last visited

Profile Information

  • Real Name
    Donal Waide
  • Gender
    Male
  • Location
    2143
  1. Waidesworld

    [contribution] Simple Template System (sts)

    OK I understand what you are saying but all I did was per the instructions, copy the various files to the various places and this is where I ended up. Am I missing something or did everyone else ace and I am left behind again?
  2. Waidesworld

    [contribution] Simple Template System (sts)

    I tried to install STS and when I went to http://www.mysite.com/admin/ I got this error Fatal error: Call to undefined function: tep_setcookie() in /home/healt137/public_html/admin/includes/application_top.php on line 166 On line 160-200 I have the following code... // start the session $session_started = false; if (SESSION_FORCE_COOKIE_USE == 'True') { >>>>THIS IS LINE 166>>> tep_setcookie('cookie_test', 'please_accept_for_session', time()+60*60*24*30, $cookie_path, $cookie_domain); if (isset($HTTP_COOKIE_VARS['cookie_test'])) { tep_session_start(); $session_started = true; } } elseif (SESSION_BLOCK_SPIDERS == 'True') { $user_agent = strtolower(getenv('HTTP_USER_AGENT')); $spider_flag = false; if (tep_not_null($user_agent)) { $spiders = file(DIR_WS_INCLUDES . 'spiders.txt'); for ($i=0, $n=sizeof($spiders); $i<$n; $i++) { if (tep_not_null($spiders[$i])) { if (is_integer(strpos($user_agent, trim($spiders[$i])))) { $spider_flag = true; break; } } } } if ($spider_flag == false) { tep_session_start(); $session_started = true; } } else { tep_session_start(); $session_started = true; } if ( ($session_started == true) && (PHP_VERSION >= 4.3) && function_exists('ini_get') && (ini_get('register_globals') == false) ) { extract($_SESSION, EXTR_OVERWRITE+EXTR_REFS); }
×