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

settings.php3

<?php
/* daCode _ http://www.dacode.org/
 * $Id: settings.php3,v 1.12.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;
      }

      $user->do_change_setting($HTTP_POST_VARS['table']);
      header("Location: ".$config->basehref."users/?a=mu&reload=reload");

?>

Generated by  Doxygen 1.6.0   Back to index