Example #1
0
    echo "\n<!-- Before Proxy: " . round(getmicrotime() - $start, 2) . " secs / {$cqs} queries -->\n";
    require_once "../common/proxy.php";
    if ($proxyblock == 1 && empty($_SESSION[$realpath]['user']['uid'])) {
        $bl = Proxy_IsProxy($_SERVER['REMOTE_ADDR']);
        if ($bl !== false) {
            echo "This chat blocks open proxies, and you are using one. You have been banned for 8 hours.";
            echo "<br>The list that caught you is: <a href='{$bl}'>{$bl}</a>";
            echo "</body></html>";
            AddBan($ident, time() + 28800, '[proxy]', $realpath);
            setcookie("pJJChat_Banned", "{$ident}", time() + 604800);
            die;
        }
    }
    echo "\n<!-- After Proxy: " . round(getmicrotime() - $start, 2) . " secs / {$cqs} queries -->\n";
    if ($memonly <= 1 || CheckFlags('1', $_SESSION[$realpath]['flags'])) {
        ShowList($realpath);
    } else {
        echo $language[0];
    }
    echo "<hr width='75%'><p><a href='{$_SERVER['REQUEST_URI']}'>Refresh</a><br>";
    if ($_REQUEST['noimg']) {
        echo "<a href='{$_SERVER['PHP_SELF']}?noimg=0'>Show Images</a><p>";
    } else {
        echo "<a href='{$_SERVER['PHP_SELF']}?noimg=1'>Hide Images</a><p>";
    }
} else {
    echo "Can't view this while banned.";
    echo "</center></body></html>";
}
//	echo "<br><br> Debug: ".round(getmicrotime()-$start, 2)." secs / $cqs queries";
echo "<!-- Debug: " . round(getmicrotime() - $start, 2) . " secs / {$cqs} queries -->";
Example #2
0
	$page = GetVariable("page");
	$groupid = GetVariable("groupid");
	$requestid = GetVariable("requestid");
	
	switch ($action) {
		case 'viewdetails':
			ViewDetails($requestid);
			break;
		case 'cancelgroup':
			CancelGroup($groupid);
			break;
		case 'showgroup':
			ShowGroup($groupid, $page);
			break;
		default:
			ShowList();
	}

	
	/* --------------------------------------------------- */
	/* ------- CancelGroup ------------------------------- */
	/* --------------------------------------------------- */
	function CancelGroup($groupid) {
		$sqlstring = "update data_requests set req_status = 'cancelled' where req_groupid = $groupid";
		$result = mysql_query($sqlstring) or die("Query failed: " . mysql_error() . "<br><i>$sqlstring</i><br>");
		?><span class="message">Group download <?php 
echo $groupid;
?>
 cancelled</span><?
	}
Example #3
0
    $start = 0;
    $end = 55;
    $step = 5;
    ShowList($start, $end, $step, $startminute);
    ?>
		</select>
	</div>
	<div class="field">
		<label for="endhour"><?php 
    echo $ARnls["end"];
    ?>
</label>
		<select id="endhour" name="endhour" onChange="UpdateEndtime(this.form);">
		<?php 
    $start = 0;
    $end = 23;
    $step = 1;
    ShowList($start, $end, $step, $endhour);
    ?>
		</select> : <select id="endminute" name="endminute" onChange="UpdateEndtime(this.form);">
		<?php 
    $start = 0;
    $end = 55;
    $step = 5;
    ShowList($start, $end, $step, $endminute);
    ?>
		</select>
	</div>
</fieldset>
<?php 
}
Example #4
0
function DisplayAdminComments($TData, $lastaction = "", $page = 0, $itemsperpage = 0, $count = 0, $urlpiece = "")
{
    global $countmatch;
    global $title;
    $title = "Admin Comments";
    global $AdminCommentsScope;
    require_once "header.php";
    Menu1("", ww('MainPage'));
    // Displays the top menu
    Menu2("admincomments.php", ww('MainPage'));
    // Displays the second menu
    $MenuAction = "";
    $MenuAction .= "            <li><a href=\"" . bwlink("admin/admincomments.php") . "\">Negative comments</a></li>\n";
    if (HasRight("Comments", "AdminAbuser")) {
        $MenuAction .= "            <li><a href=\"" . bwlink("admin/admincomments.php?action=AdminAbuser") . "\">Abusive comments</a></li>\n";
    }
    $MenuAction .= "            <li><a href=\"" . bwlink("admin/admincomments.php?action=All") . "\">All comments</a></li>\n";
    DisplayHeaderShortUserContent($title . ": " . $lastaction);
    ShowLeftColumn($MenuAction, VolMenu());
    echo "    <div id=\"col3\"> \n";
    echo "      <div id=\"col3_content\" class=\"clearfix\"> \n";
    echo "        <div class=\"info clearfix\">\n";
    echo "          <h2>Your scope:", $AdminCommentsScope, "</h2>\n";
    if ($itemsperpage != 0) {
        $params = new StdClass();
        $params->strategy = new HalfPagePager('right');
        if (empty($urlpiece)) {
            $params->page_url = 'admincomments.php?action=All';
        } else {
            $params->page_url = 'admincomments.php?action=' . $urlpiece;
        }
        $params->page_url_marker = 'page';
        $params->page_method = 'get';
        $params->items = $count;
        $params->active_page = $page;
        $params->items_per_page = $itemsperpage;
        $pager = new PagerWidget($params);
        $pager->render();
    }
    if (!empty($TData)) {
        ShowList($TData, $page * $itemsperpage, $count);
    }
    if (isset($pager)) {
        $pager->render();
    }
    require_once "footer.php";
}