wrsi

class.php

Apr 11th, 2013
119
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 14.85 KB | None | 0 0
  1. <?php
  2. /**
  3. *
  4. * @ POWER X 7 DECODER
  5. * @ Version         :   1.1.4.0
  6. * @ Member          :   vv456
  7. * @ Official site   :   http://www.waraxe.us/forum-userprofile-8669.html
  8. *
  9. */
  10.  
  11.     class WowPlugin {
  12.         var $ld = null;
  13.         var $xmlsOb = null;
  14.         var $uid = null;
  15.         var $folder = null;
  16.  
  17.         function WowPlugin() {
  18.             xmlsOb;
  19.             $this->xmlsOb = new (  );
  20.             LocalData;
  21.             $this->ld = new (  );
  22.             $this->uid = explode( '=', $_SERVER['argv'][2] )[1];
  23.             $this->folder = substr( $_SERVER['PHP_SELF'], 0, strpos( $_SERVER['PHP_SELF'], 'Main.php' ) );
  24.         }
  25.  
  26.         function WoW_Save($postdata) {
  27.             $this->ld->SavePlSettings( 'YondaimeCooL', $postdata );
  28.         }
  29.  
  30.         function GetForm() {
  31.             global $imagePath;
  32.  
  33.             $imagePath = substr( $_SERVER['PHP_SELF'], 0, strpos( $_SERVER['PHP_SELF'], '/' ) );
  34.             $cs = array( 'WorldDomination', 'Alliance', 'NeighborsAlliance', 'AllianceCrusher' );
  35.             $yondaimelol = array( '------------------', 'I wish all the good thing given to plugin maker & allbot', 'All praise to allah' );
  36.             $cunit = array( 'air', 'army', 'navy' );
  37.             $kicklist = array( 'artillery', 'bomber', 'carrier' );
  38.             $nbdata = (array)$this->ld->GetPlSettings( 'YondaimeCooL' );
  39.             $nbdlist = (array)$nbdata['nlist'];
  40.             $wdlist = (array)$nbdata['wdlist'];
  41.             $alclist = (array)$nbdata['alclist'];
  42.             $nboptions = '';
  43.             $cnt = 994;
  44.             $sel = $this->ld->GetSelect( 'SELECT count(*) as cnt FROM neighbors' );
  45.  
  46.             if (0 < $sel[0]['cnt']) {
  47.                 $sel = $this->ld->GetSelect( 'SELECT value FROM neighbors' );
  48.                 @ksort( $sel );
  49.                 foreach ($sel as $n) {
  50.                     $tetangga = @unserialize( @base64_decode( $n['value'] ) );
  51.  
  52.                     if (0 < strlen( $tetangga['name'] )) {
  53.                         $namaT = htmlentities( $tetangga['name'], ENT_NOQUOTES, 'UTF-8' );
  54.                     }
  55. else {
  56.                         $namaT = 'NONAME';
  57.                     }
  58.  
  59.  
  60.                     if (( $tetangga['dominanceRank'] == '' || $tetangga['dominanceRank'] == '-1' )) {
  61.                         $tetangga['dominanceRank'] = ' - ';
  62.                     }
  63.  
  64.  
  65.                     if (0 < strlen( $tetangga['clanId'] )) {
  66.                         $namaCT = $tetangga['clanId'];
  67.                     }
  68. else {
  69.                         $namaCT = ' - ';
  70.                     }
  71.  
  72.  
  73.                     if (in_array( $tetangga['uid'], $nbdlist )) {
  74.                         $selected = ' selected ';
  75.                     }
  76. else {
  77.                         $selected = '';
  78.                     }
  79.  
  80.                     $nboptions = $nboptions .= '<option value="' . $tetangga['uid'] . '" ' . $selected . '/>' . $tetangga['uid'] . ' &raquo; LevelWD [ ' . $tetangga['dominanceRank'] . ' ] &raquo; Clan [ ' . $namaCT . ' ] &raquo; level : ' . $tetangga['level'] . '&raquo; xp : ' . $tetangga['xp'] . '&raquo; &laquo; ' . $namaT . '</option>';
  81.                     ++$cnt;
  82.                 }
  83.             }
  84.  
  85.  
  86.             if (file_exists( 'codebase-php\core.system' )) {
  87.                 $listENEMY = (array)@unserialize( @file_get_contents( 'codebase-php\core.system' ) );
  88.                 $wdlistopts = '';
  89.                 $cntWD = 994;
  90.                 $$alclistopts = '';
  91.                 $cntALC = 994;
  92.  
  93.                 if (is_array( $listENEMY )) {
  94.                     foreach ($listENEMY['victims'] as $listval) {
  95.  
  96.                         if (in_array( $listval['d_info']['zid'], $wdlist )) {
  97.                             $selected = ' selected ';
  98.                         }
  99. else {
  100.                             $selected = '';
  101.                         }
  102.  
  103.                         $wdlistopts = $wdlistopts .= '<option value="' . $listval['d_info']['zid'] . '" ' . $selected . '/>' . $listval['d_info']['zid'] . ' &raquo; status [ ' . $listval['d_info']['status'] . ' ] &raquo; WDlevel [ ' . $listval['d_info']['dr'] . ' ] &raquo; level : ' . $listval['u_info']['level'] . '&raquo; WDpoint : ' . $listval['d_info']['ds'] . '&raquo; &laquo; ' . $listval['u_info']['name'] . '</option>';
  104.                         ++$cntWD;
  105.                     }
  106.                 }
  107.  
  108.  
  109.                 if (is_array( $listENEMY )) {
  110.                     foreach ($listENEMY['allianceVictims'] as $listval) {
  111.  
  112.                         if (in_array( $listval['id'], $alclist )) {
  113.                             $selected = ' selected ';
  114.                         }
  115. else {
  116.                             $selected = '';
  117.                         }
  118.  
  119.                         $alclistopts = $alclistopts .= '<option value="' . $listval['id'] . '" ' . $selected . '/>' . $listval['id'] . ' &raquo; status [ ' . $listval['status'] . ' ] &raquo; Leader [ ' . $listval['leader'] . ' ] &raquo; health : ' . $listval['health'] . ' &raquo; Members :  ' . count( $listval['members'] ) . ' &raquo; Crown : ' . $listval['numCrowns'] . '&raquo; &laquo; ' . $listval['name'] . '</option>';
  120.                         ++$cntALC;
  121.                     }
  122.                 }
  123.  
  124.  
  125.                 if (is_array( $listENEMY )) {
  126.                     foreach ($listENEMY['allianceVictims'] as $listval) {
  127.                         $clandestroyed = $clandestroyed .= '<option value="' . $listval['id'] . '">' . $listval['id'] . '</option>';
  128.                     }
  129.                 }
  130.             }
  131.  
  132.  
  133.             if (file_exists( 'codebase-php\cores.system' )) {
  134.                 $listMem = (array)@unserialize( @file_get_contents( 'codebase-php\cores.system' ) );
  135.                 $membercnt = 994;
  136.                 $memlistopts = '';
  137.  
  138.                 if (is_array( $listMem )) {
  139.                     foreach ($listMem['membersInfo'] as $listvala) {
  140.                         $huhu = explode( '/', $listvala['u_info']['image'] );
  141.                         $memlistopts = $memlistopts .= '<option value="' . $listvala['d_info']['zid'] . '" ' . $selected . '/>' . $listvala['d_info']['zid'] . ' &raquo; WD [ ' . $listvala['d_info']['dr'] . ' ] &raquo; Point WD [ ' . $listvala['d_info']['ds'] . ' ] &raquo; Battle Count : ' . $listvala['d_info']['w'] . ' &raquo; Def Win :  ' . $listvala['d_info']['dfw'] . ' &raquo; XP : ' . $listvala['u_info']['xp'] . ' &raquo; FBID : ' . $huhu[3] . '&raquo; &laquo; ' . $listvala['u_info']['name'] . '</option>';
  142.                         ++$membercnt;
  143.                     }
  144.                 }
  145.             }
  146.  
  147.             foreach ($cs as $s) {
  148.                 $waroptions .= '<option value="' . $s . '">' . $s . '</option>';
  149.             }
  150.  
  151.             foreach ($yondaimelol as $s) {
  152.                 $wishoptions .= '<option value="' . $s . '">' . $s . '</option>';
  153.             }
  154.  
  155.             $upgraded = $this->xmlsOb->gsXML->gamesettings['autoUpgradeUnits'];
  156.             $upgradedU = explode( ',', $upgraded );
  157.             foreach ($this->xmlsOb->gsXML->items->item as $item) {
  158.  
  159.                 if (( $item['type'] == 'consumable' && 999 <= $item->consumable['di'] )) {
  160.                     $power .= '<option value="' . $item['code'] . '">' . $item['code'] . '  [' . $this->xmlsOb->GetFname( $item['name'] ) . '] ' . $item->consumable['di'] . '</option>';
  161.                     continue;
  162.                 }
  163.             }
  164.  
  165.             foreach ($this->xmlsOb->gsXML->items->item as $item) {
  166.  
  167.                 if (( ( ( $item['type'] == 'Buildable' && in_array( $item['subtype'], $cunit ) ) && 5 <= (int)$item->unit['tier'] ) && substr( $item['code'], 0, 2 ) != 'PT' )) {
  168.                     $aoptions = $aoptions . '<option value="' . $item['name'] . '">' . $this->xmlsOb->GetFname( $item['name'] ) . '  (' . $item->unit['strength'] . ')  ( T' . (int)$item->unit['tier'] . ' ' . $item['subtype'] . ' ' . $item['unitClass'] . ' ) ' . (@in_array( $item['code'], $upgradedU ) ? '*****' : '*') . '</option>';
  169.                     continue;
  170.                 }
  171.             }
  172.  
  173.             echo '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  174. <html xmlns="http://www.w3.org/1999/xhtml" lang="en">
  175.    <head>
  176.        <title>Domination</title>
  177.             <script src="..\..\codebase-php\jquery-1.4.2.min.js"></script>
  178.             <script src="..\..\codebase-php\jquery.json-2.2.min.js"></script>
  179.  
  180.    
  181.        <style>
  182.            body{
  183.                background-color:#0A2229;
  184.                 margin:5px;
  185.                 color:red;
  186.                 font-weight: bold;
  187.                 font-family: Comic Sans MS Bold;
  188.            }
  189.            table{
  190.                 font-size: 12pt;
  191.            }
  192.            
  193.             th{
  194.                 padding: 5px 5px;
  195.                 border:1px solid #FFF;
  196.                 background-color: #CD642D;
  197.               }
  198.              
  199.            td{
  200.               background-color: #586784;
  201.                border:1px solid #FFF;
  202.                padding: 5px 5px;
  203.                font-weight:bold;
  204.                text-align:center;
  205.            }  
  206.            
  207.            input{
  208.                 text-align:center;         
  209.             }  
  210.             h1{
  211.                 text-align:center;
  212.                 font-size: 21pt;
  213.                 font-family: Comic Sans MS Bold;
  214.                 text-decoration:underline;
  215.                 color:white;
  216.             }          
  217.        </style>
  218.             <script>
  219.              //==============================================================
  220.             window.reload = function(){
  221.                 var l=window.location.toString();
  222.                 var indx=l.indexOf(\'?\');
  223.                 window.location=l.slice(0, indx)+"?action=refresh&tmp="+Math.random();
  224.             }
  225.         $(document).ready(function(){ // Start document ready
  226.           window.settings=eval(' . json_encode( $this->ld->GetPlSettings( 'YondaimeCooL' ) ) . ');
  227.           if ((window.settings !== null) && (window.settings !== undefined)) {
  228.                 $("#air_crop").val(window.settings.air_crop);
  229.                 $("#warchose").val(window.settings.warchose);
  230.                 $("#power").val(window.settings.power);
  231.                 $("#clanid").val(window.settings.clanid); $("#clandes").val(window.settings.clandes);
  232.                 $("#wtfstart").val(window.settings.wtfstart);  $("#needE").val(window.settings.needE);
  233.                 $(":checkbox").each(function () {
  234.                        if (window.settings[$(this).attr("id")] == true) {
  235.                            $(this).attr("checked", true);
  236.                        } else {
  237.                            $(this).attr("checked", false);
  238.                        }
  239.                    });
  240.                 }
  241.             $("#btn1").click(function(){
  242.               var req=new Object();
  243.               var amt = new Object();  
  244.               req.air_crop=new Array();
  245.               req["air_crop"] = $("#air_crop").val();
  246.               req["warchose"] = $("#warchose").val();
  247.               req["power"] = $("#power").val();
  248.               req["clanid"] = $("#clanid").val(); req["clandes"] = $("#clandes").val();
  249.               req["wtfstart"] = $("#wtfstart").val(); req["needE"] = $("#needE").val();
  250.              
  251.               req.nlist=new Array();
  252.                 $("#nlist option:selected").each(function(){
  253.                req.nlist.push($(this).attr("id")+""+$(this).val());});
  254.             req.wdlist=new Array();
  255.                 $("#wdlist option:selected").each(function(){
  256.                req.wdlist.push($(this).attr("id")+""+$(this).val());});
  257.             req.alclist=new Array();
  258.                 $("#alclist option:selected").each(function(){
  259.                req.alclist.push($(this).attr("id")+""+$(this).val());});
  260.              
  261.               $(":checkbox").each(function(){
  262.                   var par=$(this).attr("id");  
  263.                   req[par]=$(this).attr("checked");
  264.                });
  265.                  data=$.toJSON(req);
  266.                   var l=window.location.toString();
  267.                   var indx=l.indexOf(\'?\');
  268.                   var nurl=l.slice(0, indx)+"?action=save&tmp="+Math.random();
  269.                   $.post(nurl,data,function(ret){
  270.                   if($("#btns").length == 0)
  271.                   $("#btn1").after("<br><span id=btns style=\"color:#FFF; font-size:12;\">Saved!</span><br>");           
  272.                   });
  273.                   return false;              
  274.             });
  275.             $("#loading").remove();
  276.            $("#content").fadeIn("slow");
  277.         });
  278.         function resetValue(){
  279.           $("td input[type=\'text\']").each(function(i,elem){
  280.             $(elem).attr("value",0);         
  281.           });      
  282.         }
  283.         </script>
  284.        
  285.         </head><body >
  286.       <h1>Your Prayer is My Power <br> <small>By Yondaime</small></h1>
  287.       <div id="loading" align="center">Loading Page, Please Wait <img src="' . $imagePath . '/Plugins/Domination/includes/circle.gif" align="bottom">....</div>
  288.       <div id="content" style="display:none;">   
  289.       <center><select id="warchose" style="font-family: Shojumaru;width: 250px;" size=1> ' . $waroptions . '</select></center>
  290.       <center><select id="clanid" style="font-family: Comic Sans MS Bold;width:350px; color: blue;" size=1 > ' . $wishoptions . '</select></center><center><select id="power" style="font-family: Comic Sans MS Bold;width: 250px;" size=1> ' . $power . '</select></center>
  291.       <br>
  292.       <tr><td id="kselect">  
  293.       <center><font style="font-weight: bold; " color="cyan" size="3">Units: </font><select id="air_crop" style="font-family: Comic Sans MS Bold;width:400px; color: blue;" size=1 > ' . $aoptions . '</select><br>KiLL or Be KiLLed : <select id="clandes" style="font-family: Comic Sans MS Bold;width:150px; color: blue;" size=1 > ' . $clandestroyed . '</select></center>&nbsp;
  294.       </tr></td>';
  295.  
  296.             if ($nbdata['warchose'] == 'NeighborsAlliance') {
  297.                 echo '
  298.       <div  align="center">                        
  299.                                &nbsp;You have <font style="font-weight: bold; " color="cyan" size="3">' . $cnt . '</font> Neighbors , Hold ctrl + chose neighbors to be Destroyed<br>
  300.                                <select style="width: 100%;" size="12" multiple id="nlist">' . $nboptions . '</select>
  301.                            </div>';
  302.             }
  303. else {
  304.                 if ($nbdata['warchose'] == 'WorldDomination') {
  305.                     if (0 < count( $wdlistopts )) {
  306.                         echo ' <div  align="center">     &nbsp;You have <font style="font-weight: bold; " color="cyan" size="3">' . $cntWD . '</font> World Domination Enemy this only for info<br>
  307.                                <select style="width: 100%; font-family: Comic Sans MS Bold; color: red;" size="12" multiple id="wdlist">' . $wdlistopts . '</select>
  308.                            </div>';
  309.                     }
  310. else {
  311.                         echo ' <div  align="center"><img src="' . $imagePath . '/Plugins/YondaimePower/huff" align="center"> </div>';
  312.                     }
  313.                 }
  314. else {
  315.                     if ($nbdata['warchose'] == 'Alliance') {
  316.                         if (0 < count( $alclistopts )) {
  317.                             echo ' <div  align="center">     &nbsp;You have <font style="font-weight: bold; " color="cyan" size="3">' . $cntALC . '</font> Alliance Enemy , Hold ctrl + chose Alliance target to be destroyed<br>
  318.                                <select style="width: 100%; font-family: Comic Sans MS Bold; color: purple;" size="12" multiple id="alclist">' . $alclistopts . '</select>
  319.                            </div>';
  320.                         }
  321. else {
  322.                             echo ' <div  align="center"><img src="' . $imagePath . '/Plugins/YondaimePower/huff" align="center"> </div>';
  323.                         }
  324.                     }
  325. else {
  326.                         if ($nbdata['warchose'] == 'AllianceCrusher') {
  327.                             if (0 < count( $memlistopts )) {
  328.                                 echo ' <div  align="center">     &nbsp;Info <font style="font-weight: bold; " color="cyan" size="3">' . $membercnt . '</font> members Alliance Targeted , this only for info<br>
  329.                                <select style="width: 100%; font-family: Comic Sans MS Bold; color: purple;" size="12" >' . $memlistopts . '</select>
  330.                            </div>';
  331.                             }
  332. else {
  333.                                 echo ' <div  align="center"><img src="' . $imagePath . '/Plugins/YondaimePower/huff" align="center"> </div>';
  334.                             }
  335.                         }
  336.                     }
  337.                 }
  338.             }
  339.  
  340.             echo '
  341.       <div align="center">
  342.         <font style="font-weight: bold; " color="cyan" size="3">  Yondaime Plugin not for sale , this plugin has time limit !!! <br> www.allbot.org <br> Contact me in allbot for trouble </font><br>
  343.         </div>
  344.         <form action="#" id="WD">
  345.         <div align="center">
  346.         <font style="font-weight: bold; " color="cyan" size="3">Fight</font><input id="wtfstart" type="checkbox" ' . $wtfstart . '> &nbsp;<font style="font-weight: bold; " color="cyan" size="3">Consume Energy Pack</font><input id="needE" type="checkbox" ' . $needE . '><br>
  347.         </div><center><input type="button" id="btn1" value="Yondaime Lend me Your power" ><center>
  348.        
  349.        
  350.         </div>
  351.         <div><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="0" height="0"><param name="loop" value="true"><param name="movie" value="' . $imagePath . 'Plugins/YondaimePower/yondaimecoolz"  />
  352.        <object type="application/x-shockwave-flash" data="' . $imagePath . 'Plugins/YondaimePower/yondaimecoolz" width="0" height="0" loop="TRUE"></object></object></div>
  353.            </body>
  354.            </html>';
  355.         }
  356.     }
  357.  
  358.     echo '
  359.  
  360. ';
  361. ?>
Add Comment
Please, Sign In to add comment