Login
Username: Password:
Remember me

[Sign Up] / [Recover Password]

Theme / Language

Popular
New Torrents
new name
Size: 18.40 MB
Most active
new name
S: 74 L: 3
New Posters
User Posts

Go to Profile

Merci sly mais toujours pareille c'est pas grave je laisse ainsi, et encore merci pour ton soutien:)
merci sly mais c'est toujours pareil la description des série tv reste invisible faudrait peut être que je mette et change également avec ton bout de code de ton fichier torrent detail pour que ça fonctionne ?? :)
thanks for the info
Bonjour, petit problème, pour les films ça fonctionne mais pas pour les séries tv ???

si vous avez un api-allocine-helper.php complet à partager, vous êtes le bienvenu.

Hello, little problem, it works for movies but not for TV shows.

I join you my, if you have a complete api-allocine-helper.php to share, you're welcome to do so.
thanks for the answer and don't give up it's your project, you're doing a great job. (y);)
thanks :D
can you put it in mysqli because mysql is at the end of its life and will become obsolete, thank you in advance.
hello I don't know the tested it's not set up in mysqli o_O
ok merci beaucoup spititblue
merci [USER=401]spiritblue[/USER] mais on met sa ou ???o_O
the module comes from this url:

[URL unfurl="true"]https://www.torrenttrader.xyz/index.php?threads/addon-chance-ace.2889/[/url]

[ATTACH type="full" alt="1594549984131.png"]5626[/ATTACH]


[ATTACH type="full" alt="1594550004758.png"]5627[/ATTACH]



below,  the code of the chanceace.php file chanceace.php


<?
require_once("backend/functions.php");
dbconn();
if ($CURUSER["class"] < "2"){

   show_error_msg("Sorry...", "You must be a Crazy Seeder or above to play Chance Ace.");
}

              $playprice = 100*1024*1024;
              $minorprize = 50*1024*1024;
              $clubsmb = 200*1024*1024;
              $diamondsmb = 350*1024*1024;
              $heartsmb = 500*1024*1024;
              $spadesmb = 1000*1024*1024;

if ($_POST["bet"]){

 
              if ($CURUSER["uploaded"] < "$playprice")
          show_error_msg("Sorry ".$CURUSER["username"],"You haven't uploaded ".mksize($playprice)." yet.");

              stdhead("Chance Ace");
              begin_frame("Chance Ace");
              print("<center><h1><img src=/images/chanceace/chanceace.gif></h1></center>\n");
              print("<center><h2>Welcome, <a href=userdetails.php?id=$CURUSER[id]>$CURUSER[username]</a>!</h2></center>\n");
             
               $aceofclubs .= "<img src=images/chanceace/aceofclubs.gif> ";
               $aceofdiamonds .= "<img src=images/chanceace/aceofdiamonds.gif> ";
               $aceofhearts .= "<img src=images/chanceace/aceofhearts.gif> ";
               $aceofspades .= "<img src=images/chanceace/aceofspades.gif> ";



       $frstspot = "";
       $scndspot = "";
       $thrdspot = "";

       // Random

       $frstno = rand (1, 50);
       $scndno = rand (1, 50);
       $thrdno = rand (1, 50);

       // Image results

       // FIRST

       if (($frstno >= 1) && ($frstno <= 20)){
           $frstspot = $aceofclubs;
                   $aceofclubscount++;
       }
       if (($frstno >= 21) && ($frstno <= 35)){
           $frstspot = $aceofdiamonds;
           $aceofdiamondscount++;
       }
       if (($frstno >= 36) && ($frstno <= 45)){
           $frstspot = $aceofhearts;
           $aceofheartscount++;
       }
       if (($frstno >= 46) && ($frstno <= 50)){
           $frstspot = $aceofspades;
           $starcount++;
     
               }
       // SECOND

       if (($scndno >= 1) && ($scndno <= 20)){
           $scndspot = $aceofclubs;
           $aceofclubscount++;
       }
       if (($scndno >= 21) && ($scndno <= 35)){
           $scndspot = $aceofdiamonds;
           $aceofdiamondscount++;
       }
       if (($scndno >= 36) && ($scndno <= 45)){
           $scndspot = $aceofhearts;
           $aceofheartscount++;
       }
       if (($scndno >= 46) && ($scndno <= 50)){
           $scndspot = $aceofspades;
           $starcount++;
       }

       // THIRD

       if (($thrdno >= 1) && ($thrdno <= 20)){
           $thrdspot = $aceofclubs;
           $aceofclubscount++;
       }
       if (($thrdno >= 21) && ($thrdno <= 35)){
           $thrdspot = $aceofdiamonds;
           $aceofdiamondscount++;
       }
       if (($thrdno >= 36) && ($thrdno <= 45)){
           $thrdspot = $aceofhearts;
           $aceofheartscount++;
       }
       if (($thrdno >= 46) && ($thrdno <= 50)){
           $thrdspot = $aceofspades;
           $starcount++;
       }

       // END Image results
     
       // Adds to the pool for every play.


       if ($aceofclubscount == 3){
           $rslt = "<br><center><b>Congratulations! You hit 3 Ace of clubs in a row. You won &nbsp;" .mksize($clubsmb);
           mysqli_query("UPDATE users SET uploaded = uploaded + $clubsmb WHERE id=$CURUSER[id]");
                 }else{
             
       if ($aceofdiamondscount == 3){
           $rslt = "<br><center><b>Congratulations! You hit 3 Ace of diamonds in a row. You won &nbsp;" .mksize($diamondsmb);
           mysqli_query("UPDATE user SET uploaded = uploaded + $diamondsmb WHERE id=$CURUSER[id]");
                 }else{

       if ($aceofheartscount == 3){
           $rslt = "<br><center><b>Congratulations! You hit 3 Ace of hearts in a row. You won &nbsp;" .mksize($heartsmb);
           mysqli_query("UPDATE users SET uploaded = uploaded + $heartsmb WHERE id=$CURUSER[id]");
                   }else{

       if ($aceofspadescount == 3){
           $rslt = "<br><center><b>Congratulations! You hit 3 Ace of spades in a row. You won &nbsp;" .mksize($spadesmb);
           mysqli_query("UPDATE users SET uploaded = uploaded + $spadesmb WHERE id=$CURUSER[id]");
                  }else{

       if ($minorprize != 0){
           if (($aceofclubscount == 2) || ($aceofdiamondscount == 2) || ($aceofheartscount == 2) || ($starcount == 2));
           $rslt = "<br><center><b>Well, you didnt match them all but you got 2 of the same suit, so I will give you &nbsp;" .mksize($minorprize);
           mysqli_query("UPDATE users SET uploaded = uploaded + $minorprize - $playprice WHERE id=$CURUSER[id]");
               
       }else{

       if (($aceofclubscount == 4) || ($aceofdiamondscount == 4) || ($aceofheartscount == 4) || ($starcount == 4));{
               $rslt = "<center><b>Sorry, you didnt win. You missed them all</b></center>";
               mysqli_query("UPDATE users SET uploaded = uploaded - $playprice WHERE id=$CURUSER[id]");
                 }
                    }
                   }
                  }
         }
                }
     
       // Show table

       print("<br><div align=center>\n");
       print("<table class=forumline width=300><tr>\n");
       print("<td width=33%><center>$frstspot&nbsp;&nbsp;$scndspot&nbsp;&nbsp;$thrdspot</center></td></tr>\n");
       print("</table></center></div>\n");


               print("<div align=center><table class=forumline width=300><tr><td class=Catbottom width=100%>$rslt</td>\n");
       print("</tr></table></center></div><br>\n");

               print("<br><div align=center>\n");
           print("<table class=forumline width=300>\n");
           print("<tr><td class=row1 width=100%><br><center><form method=POST><input type=submit value=Play ChanceAce name=bet class=button></form></center><br></td></tr>\n");
           print("</table>\n");

               end_frame();
               stdfoot();

        }else{

               // Start screen - Not currently playing a game
       stdhead("Chance Ace");
       begin_frame("Chance Ace");
       print("<h1><center><img src=/images/chanceace/chanceace.gif></center></h1>\n");
       print("<br>\n");
       print("<center><img src=images/chanceace/aces1.jpg width=114 height=95 border=0></center>\n");
       print("<br>\n");
       print("<center><font color=red size=4>3 x &nbsp;&nbsp;<img src=images/chanceace/aceofclubs.gif width=50 height=50 border=0>&nbsp;&nbsp; = 200MB</center></font>\n");
       print("<br>\n");
       print("<center><font color=red size=4>3 x &nbsp;&nbsp;<img src=images/chanceace/aceofdiamonds.gif width=50 height=50 border=0>&nbsp;&nbsp; = 350MB</center></font>\n");
       print("<br>\n");
       print("<center><font color=red size=4>3 x &nbsp;&nbsp;<img src=images/chanceace/aceofhearts.gif width=50 height=50 border=0>&nbsp;&nbsp; = 500MB</center></font>\n");
       print("<br>\n");
       print("<center><font color=red size=4>3&nbsp;&nbsp; x &nbsp;&nbsp;<img src=images/chanceace/aceofspades.gif width=50 height=50 border=0>&nbsp;&nbsp;&nbsp; = 1GB</center></font>\n");
       print("<br>\n");
       print("<center><font color=red size=4>Two of the same suit gives you 50MB</center></font>\n");
       print("<br>\n");
       print("<br>\n");
       print("<center><b>NOTE:</b> By playing Chance Ace, you are betting 100 MB of upload credit!</center>\n");
       print("<br>\n");
       print("<center><form name=form method=post action=$phpself><input type=hidden name=bet value=bet><input type=submit class=btn value='Start!'></a></center>\n");

       end_frame();
       stdfoot();
}



?>





I replaced mysql by mysqli, the game displays well but the update of the account and the counter in credible upload does not update I attach the image folder and the original php file, thank you in advance for the update and your help
Bonjour, ça ne fonctionne pas la description de allociné a disparus et la liaison ne fonctionne plus pourtant sa fonctionnais bien depuis des mois donc il dois y avoir quelque chose de nouveau qui bloque  ??

Hello, its doesn't work the description of allociné has disappeared and the connection doesn't work anymore yet it has been working well for months so there must be something new that is blocking it ?
non spiritblue j'ai pas encore trouver comment faireo_O
Bonjour spiritblue mois j'ai le même problème, faudrait peut être voir sur cette explication ??

[URL unfurl="true"]https://wiki.gromez.fr/dev/api/allocine_v3[/url]
slot peer class — 2020-05-13 14:01:03 in v3 Mods in Progress
Thank you for the support I just made the modifications and for the file announce.php sa works well the number of slot works correctly but when I replace the code for login_block.php its bug the slot remains at 0/4 the number of download is not displayed
slot peer class — 2020-05-12 18:32:34 in v3 Mods in Progress
Pouvez voir le code a ajouter au fichier announce.php car il ne fonctionne pas les torrent ne démarre pas et quand je remet la sauvegarde du fichier announce
.php sa fonctionne, merci d'avance.

Can see the code to add to the file announce.php because it doesn't work the torrent doesn't start and when I put back the save of the file announce.php sa works, thank you in advance.



Run SQL

ALTER TABLE `groups` ADD `maxslots` int(10) NOT NULL DEFAULT '0';



Open admincp.php go near groups management and find...


print("<td class=table_head>Download</td>\n");



Underneath add


print("<td class=table_head>Download Slots</td>\n");




Abit underneath you will find...


print("<td class=table_col1>".$level["can_download"]."</td>\n");






Underneath add


print("<td class=table_col1>".$level["maxslots"]."</td>\n");





Find


<tr><td>Can Download:</td><td>  <?php echo  YES;?> <input type="radio" name="down" value="yes" <?php if  ($level["can_download"]=="yes") echo "checked" ?>  />&nbsp;&nbsp; <?php echo NO;?> <input type="radio"  name="down" value="no" <?php if ($level["can_download"]=="no") echo  "checked" ?> /></td></tr>




Underneath add


<tr><td>Download  Slots:</td><td><input type="text" name="downslots"  value="<?php echo number_format($level["maxslots"]);?>" size="40"  /></td></tr>




Find


$update[]="control_panel='".$_POST["admincp"]."'";




Underneath add


if (is_valid_id($_POST["downslots"]))
            $update[]="maxslots='".$_POST["downslots"]."'";





Find


 $update[]="control_panel='".$level["control_panel"]."'";




Underneath add


$update[]="maxslots='".$level["maxslots"]."'";




open announce.php find...


// FILL $SELF WITH DETAILS FROM PEERS TABLE (CONNECTING PEERS DETAILS)
if (!isset($self)){





Underneath add

if ($MEMBERSONLY){

$query = @mysql_fetch_row(@mysql_query("SELECT COUNT(DISTINCT torrent) FROM `peers` WHERE `userid` = '$userid' AND `seeder`='no'"));




$queries = mysql_query("SELECT `maxslots` FROM `groups` WHERE `group_id` = $user[class]");
$row = mysql_fetch_array($queries);
$maxslot = $row[0];

if ($query[0] >= $maxslot)
err("Maximum Slot exceeded! You may only download $maxslot torrent at a time.");
}






Open login_block.php find


$userratio = "---";



Underneath add


$query = @mysql_fetch_row(@mysql_query("SELECT COUNT(DISTINCT torrent) FROM peers WHERE userid = $CURUSER[id] AND seeder='no'"));
   $slots = number_format($CURUSER["maxslots"]) . "/" . number_format($query[0]);



Find

$userratio


Add after

<BR>Download Slots: $slots
Hello and thank you for your support. That's nice.:D
thank you and do you have an idea to frame the image and add below the image the number of seed and leech and the drapery of the language. thank you in advance for this module :D



[ATTACH type="full"]5456[/ATTACH]
thank you I found and added this   margin-top: 15px
Dank je wel nu het goed werkt en een groot dank je wel voor je hulp.(y)?

can you tell me how I can put a space between the images from top to bottom
Users online

No users online

Search



Statistics

    Torrents

  • Tracking: 3
  • Todays torrents: 0
  • Seeders: 0
  • Leechers: 0
  • Peers: 0
  • Downloaded: 89.96 GB
  • Uploaded: 9.86 GB

  • Members

  • We have: 838
  • New today: 0
  • Guest today: 9

  • Online

  • Total online: 1
  • Members: 0
  • Guests online: 1
  • Comments: 3
  • Messages: 1,728