function navi($navid = 0, $rows = 0, $start = false, $pos = 0) { $this->gui = true; $this->navid = fruser('navid', true); if (!$this->navid) { $this->navid = $navid; } $this->start = $start; $this->navrows = fruser('navrows', true); $this->navpos = fruser('navpos', true); if ($this->start) { $this->navrows = $rows; $this->navpos = $pos; } switch ($this->navid) { case 2: $this->header = get_lang(5); break; case 3: $this->header = get_lang(4); break; case 4: $this->header = get_lang(3); break; case 5: $this->header = $this->headertext = get_lang(31, fruser('hchar')); break; case 6: $this->header = get_lang(147); break; case 7: $this->header = get_lang(121); $this->gui = false; break; } if ($this->navid == 2) { $this->perpage = db_guinfo('searchrows'); } else { if ($this->navid == 7) { $this->perpage = fruser('hperpage', true, 18); } else { $this->perpage = db_guinfo('hotrows'); } } if (db_guinfo('detailview') && $this->navid != 7) { $this->perpage = db_guinfo('detailrows'); } if ($this->navid == 2 && db_guinfo('hitsas') == 0) { $this->perpage = db_guinfo('searchrows'); } $this->searchfor = sanstr('searchfor'); $this->follow = array(); }
require_once '/home/nulled/www/planetxmail.com/phpsecure/classes.inc'; require_once '/home/nulled/www/planetxmail.com/mle/mlpsecure/validationfunctions.php'; require_once '/home/nulled/www/planetxmail.com/phpsecure/turingkey.class.inc'; $db = new MySQL_Access('pxm'); $turingkey = new TuringKey(300); $max_chars = 5000; $banned_words = array('cialis', 'viagra', 'levitra', 'Secret of Making Money', 'handbag', 'ringtones'); $email = strtolower(trim($_POST['email'])); $site = strip_tags(trim($_POST['site'])); $username = strip_tags(trim($_POST['username'])); $summary = strip_tags(trim($_POST['summary'])); $message = strip_tags(trim($_POST['message'])); if ($_POST['submitted'] == 'addticket') { // build subject $username = sanstr($username); $summary = sanstr($summary); // check for spam $banned = ''; foreach ($banned_words as $word) { if (stripos($message . $subject, $word) !== false) { $banned = 'ERROR: Illegal words in Subject and/or Message.'; } } if ($message == '') { $notValid = 'ERROR: Missing Message.'; } else { if ($site == '') { $notValid = 'ERROR: Choose a Department.'; } else { if (strlen($message) > $max_chars) { $notValid = "ERROR: Message exceeds {$max_chars} Characters.";