- เครดิต
- 46
- เพื่อน
- ทักทาย
- บล็อก
- อัลบั้ม
- โพสต์
- กระทู้
- แชร์
- สำคัญ
- สิทธิ์อ่าน
- 10
- จำนวนผู้ติดตาม
- จำนวนผู้กำลังติดตาม
- เพศ
- ไม่บอก
|
ไฟล์ index.php
ค้นหา
ให้ใส่โค๊ดนี้ ลงข้างล่าง
//YGE START
$virtualhack = '1'; // 1=? 0=?
if($virtualhack=='1') {
$mintime = 500; // ??????(?)
$maxtime = 800; // ??????(?)
$dis_time = 810; // ??dis_time(?)??
$current_user = 200; // ??????10,???????
$min_user = 20; // ?????????????
$max_user = 100; // ?????????????
$min_guest = 50; // ?????????????
$max_guest = 80; // ?????????????
$start_uid = 2; // ????UID
$end_uid = 600; // ????UID
$action_arr = array("0","0","1","1","2","191","1","2","2","2","31","51"); //??????????
$current = time();
$current_different = $current - $dis_time;
$db -> query("DELETE FROM {$tablepre}sessions WHERE ip1='000' AND lastactivity <='$current_different'");
$query = $db -> query("SELECT COUNT(*) FROM {$tablepre}sessions ");
$onlineuser = $db -> result($query, 0);
if($onlineuser <= $current_user ) {
$randguest = mt_rand($min_guest, $max_guest); //??
$randuser = mt_rand($min_user, $max_user); //??
$query = $db -> query("SELECT fid FROM {$tablepre}forums WHERE type = 'forum'");
while($fidresult = $db -> fetch_array($query)) {
$fidscope[] = $fidresult['fid'];
}
// ????????
for($i = 1; $i <= $randuser; $i++) {
$randtime = mt_rand($mintime, $maxtime);
$onlinetime = $current - $randtime;
$randaction = mt_rand(0, count($action_arr));
$onlineaction = $action_arr[$randaction];
$onlinefid = 0;
if($onlineaction == '2') {
$randfid = mt_rand(0, count($fidscope));
$onlinefid = $fidscope[$randfid];
}
$online_sid = random(6);
$rand_uid = mt_rand($start_uid, $end_uid);
$query = $db -> query("SELECT `uid`,`username` FROM {$tablepre}members WHERE `uid` = '$rand_uid'");
while($row = $db -> fetch_array($query)){
$db -> query("INSERT INTO {$tablepre}sessions (sid,ip1, groupid, styleid, lastactivity, action, fid, uid, username )
VALUES ('$online_sid','000' ,'10', '1','$onlinetime','$onlineaction','$onlinefid','$row[uid]','$row[username]')");
}
}
// ????????
for($i = 1; $i <= $randguest; $i++) {
$randtime = mt_rand($mintime, $maxtime);
$onlinetime = $current - $randtime;
$randaction = mt_rand(0,count($action_arr));
$onlineaction = $action_arr[$randaction];
$onlinefid = 0;
if($onlineaction == '2') {
$randfid = mt_rand(0,count($fidscope));
$onlinefid = $fidscope[$randfid];
}
$online_sid = random(6);
$db -> query("INSERT INTO {$tablepre}sessions (sid,ip1, groupid, styleid, lastactivity, action, fid )
VALUES ('$online_sid','000' ,'7', '1','$onlinetime','$onlineaction','$onlinefid')");
}
}
}
//YGE END
ตัวอย่างนะครับ www.supercatoon.co.cc/bbs
ขอบคุณบางนะครับ อิอิ |
คะแนน
-
ดูบันทึกคะแนน
|