Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /**
- *
- * @ POWER X 7 DECODER
- * @ Version : 1.1.4.0
- * @ Member : vv456
- * @ Official site : http://www.waraxe.us/forum-userprofile-8669.html
- *
- */
- class WowPlugin {
- var $ld = null;
- var $xmlsOb = null;
- var $uid = null;
- var $folder = null;
- function WowPlugin() {
- xmlsOb;
- $this->xmlsOb = new ( );
- LocalData;
- $this->ld = new ( );
- $this->uid = explode( '=', $_SERVER['argv'][2] )[1];
- $this->folder = substr( $_SERVER['PHP_SELF'], 0, strpos( $_SERVER['PHP_SELF'], 'Main.php' ) );
- }
- function WoW_Save($postdata) {
- $this->ld->SavePlSettings( 'YondaimeCooL', $postdata );
- }
- function GetForm() {
- global $imagePath;
- $imagePath = substr( $_SERVER['PHP_SELF'], 0, strpos( $_SERVER['PHP_SELF'], '/' ) );
- $cs = array( 'WorldDomination', 'Alliance', 'NeighborsAlliance', 'AllianceCrusher' );
- $yondaimelol = array( '------------------', 'I wish all the good thing given to plugin maker & allbot', 'All praise to allah' );
- $cunit = array( 'air', 'army', 'navy' );
- $kicklist = array( 'artillery', 'bomber', 'carrier' );
- $nbdata = (array)$this->ld->GetPlSettings( 'YondaimeCooL' );
- $nbdlist = (array)$nbdata['nlist'];
- $wdlist = (array)$nbdata['wdlist'];
- $alclist = (array)$nbdata['alclist'];
- $nboptions = '';
- $cnt = 994;
- $sel = $this->ld->GetSelect( 'SELECT count(*) as cnt FROM neighbors' );
- if (0 < $sel[0]['cnt']) {
- $sel = $this->ld->GetSelect( 'SELECT value FROM neighbors' );
- @ksort( $sel );
- foreach ($sel as $n) {
- $tetangga = @unserialize( @base64_decode( $n['value'] ) );
- if (0 < strlen( $tetangga['name'] )) {
- $namaT = htmlentities( $tetangga['name'], ENT_NOQUOTES, 'UTF-8' );
- }
- else {
- $namaT = 'NONAME';
- }
- if (( $tetangga['dominanceRank'] == '' || $tetangga['dominanceRank'] == '-1' )) {
- $tetangga['dominanceRank'] = ' - ';
- }
- if (0 < strlen( $tetangga['clanId'] )) {
- $namaCT = $tetangga['clanId'];
- }
- else {
- $namaCT = ' - ';
- }
- if (in_array( $tetangga['uid'], $nbdlist )) {
- $selected = ' selected ';
- }
- else {
- $selected = '';
- }
- $nboptions = $nboptions .= '<option value="' . $tetangga['uid'] . '" ' . $selected . '/>' . $tetangga['uid'] . ' » LevelWD [ ' . $tetangga['dominanceRank'] . ' ] » Clan [ ' . $namaCT . ' ] » level : ' . $tetangga['level'] . '» xp : ' . $tetangga['xp'] . '» « ' . $namaT . '</option>';
- ++$cnt;
- }
- }
- if (file_exists( 'codebase-php\core.system' )) {
- $listENEMY = (array)@unserialize( @file_get_contents( 'codebase-php\core.system' ) );
- $wdlistopts = '';
- $cntWD = 994;
- $$alclistopts = '';
- $cntALC = 994;
- if (is_array( $listENEMY )) {
- foreach ($listENEMY['victims'] as $listval) {
- if (in_array( $listval['d_info']['zid'], $wdlist )) {
- $selected = ' selected ';
- }
- else {
- $selected = '';
- }
- $wdlistopts = $wdlistopts .= '<option value="' . $listval['d_info']['zid'] . '" ' . $selected . '/>' . $listval['d_info']['zid'] . ' » status [ ' . $listval['d_info']['status'] . ' ] » WDlevel [ ' . $listval['d_info']['dr'] . ' ] » level : ' . $listval['u_info']['level'] . '» WDpoint : ' . $listval['d_info']['ds'] . '» « ' . $listval['u_info']['name'] . '</option>';
- ++$cntWD;
- }
- }
- if (is_array( $listENEMY )) {
- foreach ($listENEMY['allianceVictims'] as $listval) {
- if (in_array( $listval['id'], $alclist )) {
- $selected = ' selected ';
- }
- else {
- $selected = '';
- }
- $alclistopts = $alclistopts .= '<option value="' . $listval['id'] . '" ' . $selected . '/>' . $listval['id'] . ' » status [ ' . $listval['status'] . ' ] » Leader [ ' . $listval['leader'] . ' ] » health : ' . $listval['health'] . ' » Members : ' . count( $listval['members'] ) . ' » Crown : ' . $listval['numCrowns'] . '» « ' . $listval['name'] . '</option>';
- ++$cntALC;
- }
- }
- if (is_array( $listENEMY )) {
- foreach ($listENEMY['allianceVictims'] as $listval) {
- $clandestroyed = $clandestroyed .= '<option value="' . $listval['id'] . '">' . $listval['id'] . '</option>';
- }
- }
- }
- if (file_exists( 'codebase-php\cores.system' )) {
- $listMem = (array)@unserialize( @file_get_contents( 'codebase-php\cores.system' ) );
- $membercnt = 994;
- $memlistopts = '';
- if (is_array( $listMem )) {
- foreach ($listMem['membersInfo'] as $listvala) {
- $huhu = explode( '/', $listvala['u_info']['image'] );
- $memlistopts = $memlistopts .= '<option value="' . $listvala['d_info']['zid'] . '" ' . $selected . '/>' . $listvala['d_info']['zid'] . ' » WD [ ' . $listvala['d_info']['dr'] . ' ] » Point WD [ ' . $listvala['d_info']['ds'] . ' ] » Battle Count : ' . $listvala['d_info']['w'] . ' » Def Win : ' . $listvala['d_info']['dfw'] . ' » XP : ' . $listvala['u_info']['xp'] . ' » FBID : ' . $huhu[3] . '» « ' . $listvala['u_info']['name'] . '</option>';
- ++$membercnt;
- }
- }
- }
- foreach ($cs as $s) {
- $waroptions .= '<option value="' . $s . '">' . $s . '</option>';
- }
- foreach ($yondaimelol as $s) {
- $wishoptions .= '<option value="' . $s . '">' . $s . '</option>';
- }
- $upgraded = $this->xmlsOb->gsXML->gamesettings['autoUpgradeUnits'];
- $upgradedU = explode( ',', $upgraded );
- foreach ($this->xmlsOb->gsXML->items->item as $item) {
- if (( $item['type'] == 'consumable' && 999 <= $item->consumable['di'] )) {
- $power .= '<option value="' . $item['code'] . '">' . $item['code'] . ' [' . $this->xmlsOb->GetFname( $item['name'] ) . '] ' . $item->consumable['di'] . '</option>';
- continue;
- }
- }
- foreach ($this->xmlsOb->gsXML->items->item as $item) {
- if (( ( ( $item['type'] == 'Buildable' && in_array( $item['subtype'], $cunit ) ) && 5 <= (int)$item->unit['tier'] ) && substr( $item['code'], 0, 2 ) != 'PT' )) {
- $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>';
- continue;
- }
- }
- echo '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
- <html xmlns="http://www.w3.org/1999/xhtml" lang="en">
- <head>
- <title>Domination</title>
- <script src="..\..\codebase-php\jquery-1.4.2.min.js"></script>
- <script src="..\..\codebase-php\jquery.json-2.2.min.js"></script>
- <style>
- body{
- background-color:#0A2229;
- margin:5px;
- color:red;
- font-weight: bold;
- font-family: Comic Sans MS Bold;
- }
- table{
- font-size: 12pt;
- }
- th{
- padding: 5px 5px;
- border:1px solid #FFF;
- background-color: #CD642D;
- }
- td{
- background-color: #586784;
- border:1px solid #FFF;
- padding: 5px 5px;
- font-weight:bold;
- text-align:center;
- }
- input{
- text-align:center;
- }
- h1{
- text-align:center;
- font-size: 21pt;
- font-family: Comic Sans MS Bold;
- text-decoration:underline;
- color:white;
- }
- </style>
- <script>
- //==============================================================
- window.reload = function(){
- var l=window.location.toString();
- var indx=l.indexOf(\'?\');
- window.location=l.slice(0, indx)+"?action=refresh&tmp="+Math.random();
- }
- $(document).ready(function(){ // Start document ready
- window.settings=eval(' . json_encode( $this->ld->GetPlSettings( 'YondaimeCooL' ) ) . ');
- if ((window.settings !== null) && (window.settings !== undefined)) {
- $("#air_crop").val(window.settings.air_crop);
- $("#warchose").val(window.settings.warchose);
- $("#power").val(window.settings.power);
- $("#clanid").val(window.settings.clanid); $("#clandes").val(window.settings.clandes);
- $("#wtfstart").val(window.settings.wtfstart); $("#needE").val(window.settings.needE);
- $(":checkbox").each(function () {
- if (window.settings[$(this).attr("id")] == true) {
- $(this).attr("checked", true);
- } else {
- $(this).attr("checked", false);
- }
- });
- }
- $("#btn1").click(function(){
- var req=new Object();
- var amt = new Object();
- req.air_crop=new Array();
- req["air_crop"] = $("#air_crop").val();
- req["warchose"] = $("#warchose").val();
- req["power"] = $("#power").val();
- req["clanid"] = $("#clanid").val(); req["clandes"] = $("#clandes").val();
- req["wtfstart"] = $("#wtfstart").val(); req["needE"] = $("#needE").val();
- req.nlist=new Array();
- $("#nlist option:selected").each(function(){
- req.nlist.push($(this).attr("id")+""+$(this).val());});
- req.wdlist=new Array();
- $("#wdlist option:selected").each(function(){
- req.wdlist.push($(this).attr("id")+""+$(this).val());});
- req.alclist=new Array();
- $("#alclist option:selected").each(function(){
- req.alclist.push($(this).attr("id")+""+$(this).val());});
- $(":checkbox").each(function(){
- var par=$(this).attr("id");
- req[par]=$(this).attr("checked");
- });
- data=$.toJSON(req);
- var l=window.location.toString();
- var indx=l.indexOf(\'?\');
- var nurl=l.slice(0, indx)+"?action=save&tmp="+Math.random();
- $.post(nurl,data,function(ret){
- if($("#btns").length == 0)
- $("#btn1").after("<br><span id=btns style=\"color:#FFF; font-size:12;\">Saved!</span><br>");
- });
- return false;
- });
- $("#loading").remove();
- $("#content").fadeIn("slow");
- });
- function resetValue(){
- $("td input[type=\'text\']").each(function(i,elem){
- $(elem).attr("value",0);
- });
- }
- </script>
- </head><body >
- <h1>Your Prayer is My Power <br> <small>By Yondaime</small></h1>
- <div id="loading" align="center">Loading Page, Please Wait <img src="' . $imagePath . '/Plugins/Domination/includes/circle.gif" align="bottom">....</div>
- <div id="content" style="display:none;">
- <center><select id="warchose" style="font-family: Shojumaru;width: 250px;" size=1> ' . $waroptions . '</select></center>
- <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>
- <br>
- <tr><td id="kselect">
- <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>
- </tr></td>';
- if ($nbdata['warchose'] == 'NeighborsAlliance') {
- echo '
- <div align="center">
- You have <font style="font-weight: bold; " color="cyan" size="3">' . $cnt . '</font> Neighbors , Hold ctrl + chose neighbors to be Destroyed<br>
- <select style="width: 100%;" size="12" multiple id="nlist">' . $nboptions . '</select>
- </div>';
- }
- else {
- if ($nbdata['warchose'] == 'WorldDomination') {
- if (0 < count( $wdlistopts )) {
- echo ' <div align="center"> You have <font style="font-weight: bold; " color="cyan" size="3">' . $cntWD . '</font> World Domination Enemy this only for info<br>
- <select style="width: 100%; font-family: Comic Sans MS Bold; color: red;" size="12" multiple id="wdlist">' . $wdlistopts . '</select>
- </div>';
- }
- else {
- echo ' <div align="center"><img src="' . $imagePath . '/Plugins/YondaimePower/huff" align="center"> </div>';
- }
- }
- else {
- if ($nbdata['warchose'] == 'Alliance') {
- if (0 < count( $alclistopts )) {
- echo ' <div align="center"> You have <font style="font-weight: bold; " color="cyan" size="3">' . $cntALC . '</font> Alliance Enemy , Hold ctrl + chose Alliance target to be destroyed<br>
- <select style="width: 100%; font-family: Comic Sans MS Bold; color: purple;" size="12" multiple id="alclist">' . $alclistopts . '</select>
- </div>';
- }
- else {
- echo ' <div align="center"><img src="' . $imagePath . '/Plugins/YondaimePower/huff" align="center"> </div>';
- }
- }
- else {
- if ($nbdata['warchose'] == 'AllianceCrusher') {
- if (0 < count( $memlistopts )) {
- echo ' <div align="center"> Info <font style="font-weight: bold; " color="cyan" size="3">' . $membercnt . '</font> members Alliance Targeted , this only for info<br>
- <select style="width: 100%; font-family: Comic Sans MS Bold; color: purple;" size="12" >' . $memlistopts . '</select>
- </div>';
- }
- else {
- echo ' <div align="center"><img src="' . $imagePath . '/Plugins/YondaimePower/huff" align="center"> </div>';
- }
- }
- }
- }
- }
- echo '
- <div align="center">
- <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>
- </div>
- <form action="#" id="WD">
- <div align="center">
- <font style="font-weight: bold; " color="cyan" size="3">Fight</font><input id="wtfstart" type="checkbox" ' . $wtfstart . '> <font style="font-weight: bold; " color="cyan" size="3">Consume Energy Pack</font><input id="needE" type="checkbox" ' . $needE . '><br>
- </div><center><input type="button" id="btn1" value="Yondaime Lend me Your power" ><center>
- </div>
- <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" />
- <object type="application/x-shockwave-flash" data="' . $imagePath . 'Plugins/YondaimePower/yondaimecoolz" width="0" height="0" loop="TRUE"></object></object></div>
- </body>
- </html>';
- }
- }
- echo '
- ';
- ?>
Add Comment
Please, Sign In to add comment