View Single Post
  #8  
Old 11th May 2008, 19:39
djlee's Avatar
djlee djlee is offline
Senior Member
 
Join Date: Mar 2008
Posts: 183
Default Re: TS SE v4.3 Nulled
search the scripts , look for where that error is coming from .. reply with the code plus the conditional statement that is causing the error .. possibly fixable without contacting xam :P

Edit:

Ok for anyone that gets this message try this .. i dont have any xam installs setup so im kinda just going out on a wim to fix it .. it may work or it may not either way keep a backup just in case (if you dont have a problem i suggest you leave it)

in ts_functions.php find
Code:
  function check_ts_install ()
  {
    global $rootpath;
    global $usergroups;
    if (is_mod ($usergroups))
    {
      $ts_key = @file_get_contents ($rootpath . 'cache/systemcache.dat');
      $CU = (!empty ($_SERVER['SERVER_NAME']) ? $_SERVER['SERVER_NAME'] : (!empty ($_SERVER['HTTP_HOST']) ? $_SERVER['HTTP_HOST'] : ''));
      $CU = str_replace (array ('http://www.', 'http://', 'www.'), '', $CU);
      $orj_key = md5 ('' . 'ts_install|' . $CU . '|done_!4_3!_');
      if ((empty ($ts_key) OR $ts_key != $orj_key))
      {
        define ('errorid', 8);
        include_once $rootpath . 'ts_error.php';
        exit ();
      }
    }

  }
and replace with
Code:
  function check_ts_install ()
  {
    global $rootpath;
    global $usergroups;
    if (is_mod ($usergroups))
    {
      $ts_key = @file_get_contents ($rootpath . 'cache/systemcache.dat');
      //$CU = (!empty ($_SERVER['SERVER_NAME']) ? $_SERVER['SERVER_NAME'] : (!empty ($_SERVER['HTTP_HOST']) ? $_SERVER['HTTP_HOST'] : ''));
      //$CU = str_replace (array ('http://www.', 'http://', 'www.'), '', $CU);
      $orj_key = md5 ('Djlee Cache Patch');
      if ((empty ($ts_key) OR $ts_key != $orj_key))
      {
        define ('errorid', 8);
        include_once $rootpath . 'ts_error.php';
        exit ();
      }
    }
  }
and then in teh cache directory find systemcache.dat, delete anything in that file and paste this string into the file and save
Code:
47397d6320dfc43cfdb31a1725f67e4a
this will only work if xam expects you to setup the hash string yourself .. if there is a script somewhere intended for periodically updating the dat file with the correct hash string this fix may not work or it may work for a short while just not forever
Reply With Quote