Example #1
0
 echo 'ici';
 echo $sName . ' FOLLOW<br />';
 if (!isset($aFollower[$sName])) {
     // NOUVEAU FOLLOWER
     $aFollower[$sName] = 1;
     $oPDO->query('INSERT INTO follower SET name="' . $sName . '"');
     echo $sName . ' NEW FOLLOW<br />';
     $iPrice = rand(0, 7);
     if (strtolower($sName) == 'pandacool75') {
         $iPrice = 3;
     }
     if (strtolower($sName) == 'tiignon') {
         $iPrice = 3;
     }
     newFollower($sName, $iPrice);
     setCountFollower(intval(getCountFollower()) + 1);
     $i7Day = microtrue() + 60 * 60 * 24 * 7;
     if ($iPrice == 0) {
         $oPDO->query('UPDATE viewer SET level=level+40, follower=1, followVerif=1, followerLast="' . $sToday . '" WHERE name="' . $sName . '"');
     }
     if ($iPrice == 1) {
         $oPDO->query('UPDATE viewer SET level=level+20, follower=1, followVerif=1, followerLast="' . $sToday . '" WHERE name="' . $sName . '"');
     }
     if ($iPrice == 2) {
         $oPDO->query('UPDATE viewer SET level=level+10, follower=1, followVerif=1, followerLast="' . $sToday . '" WHERE name="' . $sName . '"');
     }
     if ($iPrice == 3) {
         $oPDO->query('UPDATE viewer SET fortuneGils=' . $i7Day . ', follower=1, followVerif=1, followerLast="' . $sToday . '" WHERE name="' . $sName . '"');
     }
     if ($iPrice == 4) {
         $oPDO->query('UPDATE viewer SET gils=gils+4000, follower=1, followVerif=1, followerLast="' . $sToday . '" WHERE name="' . $sName . '"');
Example #2
0
    setCountLegs($iCount);
    setHLegs($sHLegs);
}
// SET
if (isset($_GET['setCount'])) {
    $iMicro = intval(getMicroItem());
    $iCount = intval($_GET['set']);
    $iSecondes = intval(microtrue() - $iMicro);
    $iHour = $iSecondes / 60 / 60;
    $sHSet = round($iCount / $iHour, 1);
    setCountSet($iCount);
    setHSet($sHSet);
}
// LEGS & SET RESET
if (isset($_GET['resetFollower'])) {
    setCountFollower(0);
}
// LEGS & SET RESET
if (isset($_GET['itemReset'])) {
    $iMicro = intval(resetMicroItem());
    setCountLegs(0);
    setCountSet(0);
    setHLegs(0);
    setHSet(0);
}
// LEGS & SET RESET
if (isset($_GET['xpHReset'])) {
    $oPDO->query('TRUNCATE xph');
    setHXP(0);
}
// XPH