当前位置: 首页>>代码示例>>PHP>>正文


PHP hacker_dork函数代码示例

本文整理汇总了PHP中hacker_dork函数的典型用法代码示例。如果您正苦于以下问题:PHP hacker_dork函数的具体用法?PHP hacker_dork怎么用?PHP hacker_dork使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了hacker_dork函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: dbconn

// ==nvsource script
// == slight updates for Tbdev Installer
require "include/bittorrent.php";
require_once "include/bbcode_functions.php";
require_once "include/user_functions.php";
dbconn();
maxcoder();
if (!logged_in()) {
    header("HTTP/1.0 404 Not Found");
    // moddifed logginorreturn by retro//Remember to change the following line to match your server
    print "<html><h1>Not Found</h1><p>The requested URL /{$_SERVER['PHP_SELF']} was not found on this server.</p><hr /><address>Apache/1.1.11 " . $SITENAME . " Server at " . $_SERVER['SERVER_NAME'] . " Port 80</address></body></html>\n";
    die;
}
if (get_user_class() < UC_MODERATOR) {
    hacker_dork("Activity Charts - Nosey Cunt !");
}
function get_count($inactive_time)
{
    $arr = mysql_fetch_assoc(mysql_query("SELECT COUNT(*) AS cnt FROM users WHERE UNIX_TIMESTAMP(`last_access`)<" . $inactive_time));
    return $arr["cnt"];
}
function stat_row($time, $count)
{
    global $usercount;
    echo '<tr><td class="tablea">', $time, "</td>\n";
    echo '<td class="tableb" nowrap><img src="pic/bar.gif" height="9" width="';
    echo (int) ((double) $count / (double) $usercount * 600), '"> ', $count, '</td></tr>', "\n";
}
stdhead("User Activity Chart");
begin_frame("User Activity Chart", false);
开发者ID:ZenoX2012,项目名称:CyBerFuN-CoDeX,代码行数:30,代码来源:activity.php

示例2: dbconn

<?php

include 'include/bittorrent.php';
include 'include/user_functions.php';
require_once "cacher.php";
dbconn(true);
maxcoder();
if (!logged_in()) {
    header("HTTP/1.0 404 Not Found");
    // moddifed logginorreturn by retro//Remember to change the following line to match your server
    print "<html><h1>Not Found</h1><p>The requested URL /{$_SERVER['PHP_SELF']} was not found on this server.</p><hr /><address>Apache/1.1.11 " . $SITENAME . " Server at " . $_SERVER['SERVER_NAME'] . " Port 80</address></body></html>\n";
    die;
}
if (get_user_class() < UC_SYSOP) {
    hacker_dork("Cache Sheets - Nosey Cunt !");
}
$fileinformation = array('table' => 'stylesheets', 'arrayname' => 'stylesheets', 'filename' => 'stylesheets');
query_wphpfile($fileinformation);
开发者ID:ZenoX2012,项目名称:CyBerFuN-CoDeX,代码行数:18,代码来源:cachestylesheets.php

示例3: dbconn

<?php

require_once "include/bittorrent.php";
require_once "include/user_functions.php";
require_once "include/bbcode_functions.php";
dbconn(false);
maxcoder();
if (!logged_in()) {
    header("HTTP/1.0 404 Not Found");
    // moddifed logginorreturn by retro//Remember to change the following line to match your server
    print "<html><h1>Not Found</h1><p>The requested URL /{$_SERVER['PHP_SELF']} was not found on this server.</p><hr /><address>Apache/1.1.11 " . $SITENAME . " Server at " . $_SERVER['SERVER_NAME'] . " Port 80</address></body></html>\n";
    die;
}
if (get_user_class() < UC_ADMINISTRATOR) {
    hacker_dork("Secure Ip - Nosey Cunt !");
}
// in the case part add staff names exactly as they are on site
//example
//case 'Admin':
//case 'System':
// and so on
switch ($_POST['staffname']) {
    case 'Mindless':
    case 'System':
        $name = safeChar($_POST['staffname']);
        $pass = safeChar($_POST['secrettop']);
        break;
    default:
        $naughtyboy = getip();
        $name = safeChar($_POST['staffname']);
        $msg = "Someone is trying to login through the Staff login page with the name {$name} and ip {$naughtyboy}";
开发者ID:ZenoX2012,项目名称:CyBerFuN-CoDeX,代码行数:31,代码来源:takesecureip.php

示例4: dbconn

<?php

require_once "include/bittorrent.php";
require_once "include/user_functions.php";
require_once "include/bbcode_functions.php";
dbconn(false);
maxcoder();
if (!logged_in()) {
    header("HTTP/1.0 404 Not Found");
    // moddifed logginorreturn by retro//Remember to change the following line to match your server
    print "<html><h1>Not Found</h1><p>The requested URL /{$_SERVER['PHP_SELF']} was not found on this server.</p><hr /><address>Apache/1.1.11 " . $SITENAME . " Server at " . $_SERVER['SERVER_NAME'] . " Port 80</address></body></html>\n";
    die;
}
if (get_user_class() < UC_MODERATOR) {
    hacker_dork("Inactive Users - Nosey Cunt !");
}
// made by putyn tbdev.net
// email part by x0r tbdev.net
// config
$sitename = "www.installerv4.net";
// Sitename, format: site.com
$replyto = "noreply@installerv4.net";
// The Reply-to email.
$record_mail = true;
// set this true or false . If you set this true every time whene you send a mail the time , userid , and the number of mail sent will be recorded
$days = 2;
//number of days of inactivite
// end config
if ($_SERVER["REQUEST_METHOD"] == "POST") {
    $action = $_POST["action"];
    if (empty($_POST["userid"]) && ($action == "deluser" || $action == "mail")) {
开发者ID:ZenoX2012,项目名称:CyBerFuN-CoDeX,代码行数:31,代码来源:inactive.php

示例5: dbconn

<?php

// ////////Data reset by Putyn///////////////////////////
require_once "include/bittorrent.php";
require_once "include/user_functions.php";
require_once "include/bbcode_functions.php";
dbconn();
maxcoder();
if (!logged_in()) {
    header("HTTP/1.0 404 Not Found");
    // moddifed logginorreturn by retro//Remember to change the following line to match your server
    print "<html><h1>Not Found</h1><p>The requested URL /{$_SERVER['PHP_SELF']} was not found on this server.</p><hr /><address>Apache/1.1.11 " . $SITENAME . " Server at " . $_SERVER['SERVER_NAME'] . " Port 80</address></body></html>\n";
    die;
}
if (get_user_class() < UC_ADMINISTRATOR) {
    hacker_dork("Reset Ratio - Nosey Cunt !");
}
if ($_SERVER["REQUEST_METHOD"] == "POST") {
    $tid = isset($_POST["tid"]) ? 0 + $_POST["tid"] : 0;
    if ($tid == 0) {
        stderr(":w00t:", "wtf are your trying to do!?");
    }
    if (get_row_count("torrents", "where id=" . $tid) != 1) {
        stderr(":w00t:", "That is not a torrent !!!!");
    }
    $q = mysql_query("SELECT s.downloaded as sd , t.id as tid, t.name,t.size, u.username,u.id as uid,u.downloaded as ud FROM torrents as t LEFT JOIN snatched as s ON s.torrentid = t.id LEFT JOIN users as u ON u.id = s.userid WHERE t.id =" . $tid) or print mysql_error();
    while ($a = mysql_fetch_assoc($q)) {
        $newd = $a["ud"] > 0 ? $a["ud"] - $a["sd"] : 0;
        $new_download[] = "(" . $a["uid"] . "," . $newd . ")";
        $tname = $a["name"];
        $msg = "Hey , " . $a["username"] . "\n";
开发者ID:ZenoX2012,项目名称:CyBerFuN-CoDeX,代码行数:31,代码来源:datareset.php

示例6: dbconn

<?php

require_once "include/bittorrent.php";
require_once "include/user_functions.php";
require_once "include/bbcode_functions.php";
dbconn(false);
maxcoder();
if (!logged_in()) {
    header("HTTP/1.0 404 Not Found");
    // moddifed logginorreturn by retro//Remember to change the following line to match your server
    print "<html><h1>Not Found</h1><p>The requested URL /{$_SERVER['PHP_SELF']} was not found on this server.</p><hr /><address>Apache/1.1.11 " . $SITENAME . " Server at " . $_SERVER['SERVER_NAME'] . " Port 80</address></body></html>\n";
    die;
}
parked();
if (get_user_class() < UC_MODERATOR) {
    hacker_dork("Flush Log - Nosey Cunt !");
}
// delete items older than a month
$secs = 96 * 60 * 60;
stdhead("Flush log");
sql_query("DELETE FROM flush_log WHERE " . gmtime() . " - UNIX_TIMESTAMP(added) > {$secs}") or sqlerr(__FILE__, __LINE__);
$res = sql_query("SELECT added, txt FROM flush_log ORDER BY added DESC") or sqlerr(__FILE__, __LINE__);
echo '<h1>Flushed log</h1>';
if (mysql_num_rows($res) == 0) {
    echo '<b>Nobody Flushed</b>';
} else {
    echo '<table border=1 cellspacing=0 cellpadding=5><tr><td class=colhead2 align=left>Date</td><td class=colhead2 align=left>Time</td><td class=colhead2 align=left>Who Flushed</td></tr>';
    while ($arr = mysql_fetch_assoc($res)) {
        // =======change colors
        $count = ++$count % 2;
        $class = 'clearalt' . ($count == 0 ? '6' : '7');
开发者ID:ZenoX2012,项目名称:CyBerFuN-CoDeX,代码行数:31,代码来源:flush_log.php

示例7: dbconn

<?php

require "include/bittorrent.php";
require_once "include/user_functions.php";
require_once "include/bbcode_functions.php";
dbconn();
maxcoder();
if (!logged_in()) {
    header("HTTP/1.0 404 Not Found");
    // moddifed logginorreturn by retro//Remember to change the following line to match your server
    print "<html><h1>Not Found</h1><p>The requested URL /{$_SERVER['PHP_SELF']} was not found on this server.</p><hr /><address>Apache/1.1.11 " . $SITENAME . " Server at " . $_SERVER['SERVER_NAME'] . " Port 80</address></body></html>\n";
    die;
}
if (get_user_class() < UC_SYSOP) {
    hacker_dork("Site-Check - Nosey Cunt !");
}
stdhead();
begin_frame("Tracker Stats");
print "<br /><br />\n<b>Tracker Info</b><br>\n";
// check torrents' folder
if (file_exists($torrent_dir)) {
    if (is_writable($torrent_dir)) {
        print "<br />\nTorrent's folder {$torrent_dir} <span style=\"color:blue; font-weight: bold;\">ok</span><br />\n";
    } else {
        print "<br />\nTorrent's folder {$torrent_dir} is <span style=\"color:#FF0000; font-weight: bold;\">ERROR</span><br />\n";
    }
} else {
    print "<br />\nTorrent's folder {$torrent_dir} <span style=\"color:#FF0000; font-weight: bold;\">ERROR NOT FOUND!</span><br />\n";
}
if (file_exists("include/bittorrent.php")) {
    if (is_writable("include/bittorrent.php.php")) {
开发者ID:ZenoX2012,项目名称:CyBerFuN-CoDeX,代码行数:31,代码来源:sitecheck.php

示例8: dbconn

<?php

// ///////////////////////////////////ip to country/////////////////////////////////
require "include/bittorrent.php";
require_once "include/user_functions.php";
require_once "include/bbcode_functions.php";
dbconn(false);
maxcoder();
if (!logged_in()) {
    header("HTTP/1.0 404 Not Found");
    // moddifed logginorreturn by retro//Remember to change the following line to match your server
    print "<html><h1>Not Found</h1><p>The requested URL /{$_SERVER['PHP_SELF']} was not found on this server.</p><hr /><address>Apache/1.1.11 " . $SITENAME . " Server at " . $_SERVER['SERVER_NAME'] . " Port 80</address></body></html>\n";
    die;
}
if (get_user_class() < UC_ADMINISTRATOR) {
    hacker_dork("Ip To Country - Nosey Cunt !");
}
function i2c_realip()
{
    $ip = false;
    if (!empty($_SERVER['HTTP_CLIENT_IP'])) {
        $ip = $_SERVER['HTTP_CLIENT_IP'];
    }
    if (!empty($_SERVER['HTTP_X_FORWARDED_FOR'])) {
        $ips = explode(', ', $_SERVER['HTTP_X_FORWARDED_FOR']);
        if ($ip) {
            array_unshift($ips, $ip);
            $ip = false;
        }
        $i = 0;
        while ($i < count($ips)) {
开发者ID:ZenoX2012,项目名称:CyBerFuN-CoDeX,代码行数:31,代码来源:iptocountry.php

示例9: dbconn

<?php

require_once "include/bittorrent.php";
require_once "include/user_functions.php";
require_once "include/bbcode_functions.php";
dbconn();
maxcoder();
if (!logged_in()) {
    header("HTTP/1.0 404 Not Found");
    // moddifed logginorreturn by retro//Remember to change the following line to match your server
    print "<html><h1>Not Found</h1><p>The requested URL /{$_SERVER['PHP_SELF']} was not found on this server.</p><hr /><address>Apache/1.1.11 " . $SITENAME . " Server at " . $_SERVER['SERVER_NAME'] . " Port 80</address></body></html>\n";
    die;
}
parked();
if (get_user_class() < UC_ADMINISTRATOR) {
    hacker_dork("Ratio Cheaters - Nosey Cunt !");
}
stdhead("Cheaters");
begin_main_frame();
begin_frame("Cheating Users:", true);
// Will: added this for page links
$res = sql_query("SELECT COUNT(*) FROM cheaters {$limit}") or sqlerr();
$row = mysql_fetch_array($res);
$count = $row[0];
list($pagertop, $pagerbottom, $limit) = pager(30, $count, "cheaters.php?");
echo "<table border=0 width=\"100%\" cellspacing=0 cellpadding=0><tr><td align=right>{$pagertop}</td></tr></table><br />";
// end
?>
<script type="text/javascript" src="java_klappe.js"></script>

<form action="takecheaters.php" method=post>
开发者ID:ZenoX2012,项目名称:CyBerFuN-CoDeX,代码行数:31,代码来源:cheaters.php

示例10: dbconn

<?php

include 'include/bittorrent.php';
include 'cacher.php';
dbconn();
maxcoder();
if (!logged_in()) {
    header("HTTP/1.0 404 Not Found");
    // moddifed logginorreturn by retro//Remember to change the following line to match your server
    print "<html><h1>Not Found</h1><p>The requested URL /{$_SERVER['PHP_SELF']} was not found on this server.</p><hr /><address>Apache/1.1.11 " . $SITENAME . " Server at " . $_SERVER['SERVER_NAME'] . " Port 80</address></body></html>\n";
    die;
}
if (get_user_class() < UC_SYSOP) {
    hacker_dork("Cache cats - Nosey Cunt !");
}
$fileinformation = array('table' => 'categories', 'arrayname' => 'categories', 'filename' => 'categories');
query_wphpfile($fileinformation);
开发者ID:ZenoX2012,项目名称:CyBerFuN-CoDeX,代码行数:17,代码来源:cachecategories.php

示例11: ob_start

ob_start("ob_gzhandler");
require_once "include/bittorrent.php";
require_once "include/user_functions.php";
require_once "include/bbcode_functions.php";
dbconn(false);
maxcoder();
if (!logged_in()) {
    header("HTTP/1.0 404 Not Found");
    // moddifed logginorreturn by retro//Remember to change the following line to match your server
    print "<html><h1>Not Found</h1><p>The requested URL /{$_SERVER['PHP_SELF']} was not found on this server.</p><hr /><address>Apache/1.1.11 (xxxxx) Server at " . $_SERVER['SERVER_NAME'] . " Port 80</address></body></html>\n";
    die;
}
//optimized, secured, added options, fixed some typos by Alex2005 for TBDEV.NET\\
if (get_user_class() < UC_SYSOP) {
    hacker_dork("Db Admin - Nosey Cunt !");
}
$postperpage = 0 + $_GET["postperpage"];
$returnto = $_POST["returnto"];
if (isset($_POST["delmp"])) {
    $do = "DELETE FROM messages WHERE id IN (" . implode(", ", $_POST['delmp']) . ")";
    $res = sql_query($do);
    if ($returnto) {
        header("Location: " . safechar($returnto));
        die;
    } else {
        header("Refresh: 0; url=/msgspy.php");
        stderr("Success", "The messages where successfully deleted!");
    }
}
//===start page===//
开发者ID:ZenoX2012,项目名称:CyBerFuN-CoDeX,代码行数:30,代码来源:msgspy.php

示例12: ob_start

ob_start();
require_once "include/bittorrent.php";
require_once "include/user_functions.php";
require_once "include/bbcode_functions.php";
// made by putyn tbdev
dbconn();
maxcoder();
if (!logged_in()) {
    header("HTTP/1.0 404 Not Found");
    // moddifed logginorreturn by retro//Remember to change the following line to match your server
    print "<html><h1>Not Found</h1><p>The requested URL /{$_SERVER['PHP_SELF']} was not found on this server.</p><hr /><address>Apache/1.1.11 " . $SITENAME . " Server at " . $_SERVER['SERVER_NAME'] . " Port 80</address></body></html>\n";
    die;
}
if (get_user_class() < UC_MODERATOR) {
    hacker_dork("Catergory Manager - Nosey Cunt !");
}
// fuction cache
function cache_categories()
{
    $res = mysql_query("select id,name,image from categories ORDER BY name ASC ");
    $configfile = "<" . "?php\n\n\$categories = array(\n";
    while ($row = mysql_fetch_assoc($res)) {
        $configfile .= "array('id'=> '{$row['id']}', 'name'=> '{$row['name']}', 'image'=> '{$row['image']}'),\n";
    }
    $configfile .= "\n);\n\n?" . ">";
    $filenum = fopen("cache/categories.php", "w");
    ftruncate($filenum, 0);
    fwrite($filenum, $configfile);
    fclose($filenum);
}
开发者ID:ZenoX2012,项目名称:CyBerFuN-CoDeX,代码行数:30,代码来源:categorie.php

示例13: dbconn

<?php

require_once "include/bittorrent.php";
require_once "include/user_functions.php";
require_once "include/bbcode_functions.php";
dbconn();
maxcoder();
if (!logged_in()) {
    header("HTTP/1.0 404 Not Found");
    // moddifed logginorreturn by retro//Remember to change the following line to match your server
    print "<html><h1>Not Found</h1><p>The requested URL /{$_SERVER['PHP_SELF']} was not found on this server.</p><hr /><address>Apache/1.1.11 " . $SITENAME . " Server at " . $_SERVER['SERVER_NAME'] . " Port 80</address></body></html>\n";
    die;
}
if (get_user_class() != UC_CODER) {
    hacker_dork("DoCleanUp - TuT TuT... Cheating are we ??");
}
function calctime($val)
{
    $days = intval($val / 86400);
    $val -= $days * 86400;
    $hours = intval($val / 3600);
    $val -= $hours * 3600;
    $mins = intval($val / 60);
    $secs = $val - $mins * 60;
    return $days . " Days, " . $hours . " Hours, " . $mins . " Minutes, " . $secs . " Seconds";
}
if (!function_exists('memory_get_usage')) {
    function memory_get_usage()
    {
        // If its Windows
        // Tested on Win XP Pro SP2. Should work on Win 2003 Server too
开发者ID:ZenoX2012,项目名称:CyBerFuN-CoDeX,代码行数:31,代码来源:docleanup.php

示例14: dbconn

<?php

include 'include/bittorrent.php';
include 'cacher.php';
dbconn(true);
maxcoder();
if (!logged_in()) {
    header("HTTP/1.0 404 Not Found");
    // moddifed logginorreturn by retro//Remember to change the following line to match your server
    print "<html><h1>Not Found</h1><p>The requested URL /{$_SERVER['PHP_SELF']} was not found on this server.</p><hr /><address>Apache/1.1.11 " . $SITENAME . " Server at " . $_SERVER['SERVER_NAME'] . " Port 80</address></body></html>\n";
    die;
}
if (get_user_class() < UC_SYSOP) {
    hacker_dork("Cache countrys - Nosey Cunt !");
}
$fileinformation = array('table' => 'countries', 'arrayname' => 'countries', 'filename' => 'countries');
query_wphpfile($fileinformation);
开发者ID:ZenoX2012,项目名称:CyBerFuN-CoDeX,代码行数:17,代码来源:cachecountries.php

示例15: dbconn

<?php

require "include/bittorrent.php";
require_once "include/bbcode_functions.php";
dbconn(true);
maxcoder();
if (!logged_in()) {
    header("HTTP/1.0 404 Not Found");
    // moddifed logginorreturn by retro//Remember to change the following line to match your server
    print "<html><h1>Not Found</h1><p>The requested URL /{$_SERVER['PHP_SELF']} was not found on this server.</p><hr /><address>Apache/1.1.11 " . $SITENAME . " Server at " . $_SERVER['SERVER_NAME'] . " Port 80</address></body></html>\n";
    die;
}
if (get_user_class() < UC_MODERATOR) {
    hacker_dork("Admin Bookmarks - Nosey Cunt !");
}
stdhead("Staff Bookmarks");
begin_main_frame();
$addbookmark = number_format(get_row_count("users", "WHERE addbookmark='yes'"));
begin_frame("In total ({$addbookmark})", true);
begin_table();
?>
<table cellpadding="4" cellspacing="1" border="0" style="width:800px" class="tableinborder" ><tr><td class="tabletitle">ID</td><td class="tabletitle" align="left">Username</td><td class="tabletitle" align="left">Suspicion</td><td class="tabletitle" align="left">Uploaded</td><td class="tabletitle" align="left">Downloaded</td><td class="tabletitle" align="left">Ratio</td></tr>
<?php 
$res = mysql_query("SELECT id,username,bookmcomment,uploaded,downloaded FROM users WHERE addbookmark='yes' ORDER BY id") or print mysql_error();
while ($arr = @mysql_fetch_assoc($res)) {
    if ($arr["downloaded"] != 0) {
        $ratio = number_format($arr["uploaded"] / $arr["downloaded"], 3);
    } else {
        $ratio = "---";
    }
    $ratio = "<font color=" . get_ratio_color($ratio) . ">{$ratio}</font>";
开发者ID:ZenoX2012,项目名称:CyBerFuN-CoDeX,代码行数:31,代码来源:adminbookmarks.php


注:本文中的hacker_dork函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。