Logo Search packages:      
Sourcecode: dacode version File versions  Download package

delsess.php3

<?php
/* daCode _ http://www.dacode.org/
 * $Id: delsess.php3,v 1.1.2.2 2002/10/12 17:32:29 ruffy Exp $
 */

      $topdir = '..';
      require $topdir."/dacode.php3";

      $user = LoadClass('User');
      $session = LoadClass('Session');

      if (!ereg('^'.$config->baseurl,$HTTP_SERVER_VARS['HTTP_REFERER'])
            && !($session->param & pow(2,3))) {
            $title = lecho("HTTP referer");
            $nobanner = false;
            $html = LoadClass('Html');
            $utils = LoadClass('Utils');
            $text = $utils->warn_referer();
            $html->parsetemplate('basic.tmpl');
            exit;
      }

      echo $user->do_delete_sessions($HTTP_POST_VARS['table']);

?>

Generated by  Doxygen 1.6.0   Back to index