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

webcam_change.php3

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

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

      $user = LoadClass('User');
      $webcam = LoadClass('Webcam');
      $session = LoadClass('Session');
      $html = LoadClass('Html');

      if (!($user->checked && ($user->level&pow(2,21)))) {
            echo $config->no_access_msg;
            echo $html->footer();
            exit;
      }

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

      echo $webcam->do_moderate($HTTP_POST_VARS['table']);

      header("Location: ".$config->basehref);
      exit;
?>

Generated by  Doxygen 1.6.0   Back to index