Example #1
0
         exit;
     }
     $login = $pass = '';
     if (!empty($_GET['login'])) {
         $login = $myts->stripslashesGPC(trim($_GET['login']));
     }
     if (!empty($_GET['pass'])) {
         $pass = $myts->stripslashesGPC(trim($_GET['pass']));
     }
     if (!empty($_POST['login'])) {
         $login = $myts->stripslashesGPC(trim($_POST['login']));
     }
     if (!empty($_POST['pass'])) {
         $pass = $myts->stripslashesGPC(trim($_POST['pass']));
     }
     bannerstats($login, $pass);
     break;
 case "Change":
     if (!$GLOBALS['xoopsSecurity']->check()) {
         redirect_header("banners.php", 3, implode('<br />', $GLOBALS['xoopsSecurity']->getErrors()));
         exit;
     }
     $login = $pass = $url = '';
     $bid = $cid = 0;
     if (!empty($_POST['login'])) {
         $login = $myts->stripslashesGPC(trim($_POST['login']));
     }
     if (!empty($_POST['pass'])) {
         $pass = $myts->stripslashesGPC(trim($_POST['pass']));
     }
     if (!empty($_POST['url'])) {
Example #2
0
$myts =& MyTextSanitizer::getInstance();
switch ($op) {
    case "click":
        $bid = $clean_bid;
        clickbanner($bid);
        break;
    case "Ok":
        if ($_SERVER['REQUEST_METHOD'] == 'POST') {
            if (!$GLOBALS['xoopsSecurity']->check(true, false, "BANNER_LOGIN")) {
                redirect_header("banners.php", 3, implode('<br />', $GLOBALS['xoopsSecurity']->getErrors()));
                exit;
            }
            $_SESSION['banner_login'] = $clean_login;
            $_SESSION['banner_pass'] = $clean_pass;
        }
        bannerstats();
        break;
    case _BANNERS_CHANGE:
        if (!$GLOBALS['xoopsSecurity']->check(true, false, "BANNER_EDIT")) {
            redirect_header("banners.php", 3, implode('<br />', $GLOBALS['xoopsSecurity']->getErrors()));
            exit;
        }
        $url = $clean_url;
        $bid = $clean_bid;
        $cid = $clean_cid;
        change_banner_url_by_client($cid, $bid, $url);
        break;
    case "EmailStats":
        $bid = $clean_bid;
        $cid = $clean_cid;
        EmailStats($cid, $bid);