Faction Change ( Free Source for DO Private server )

09/27/2013 18:50 killer boss#1
Hello ,

My name is Dr-Batcher and i have developed a little faction change for One Ultimate actually i work for new webpage faction change with new choise faction

My script is easy for using and easy to code

you copy this in your indexInternal.es?action=internalStart for exemple

// Dr-Batcher script for instant change faction ( temporaly script )
PHP Code:
<form name="firmchange" action="firmchange.php?factionId=1&playerID=<?php echo $Users->DataRow['playerID']; ?>" method="post">
                        <input type="submit" value=" MMO "/></form><br>
                        <form name="firmchange" action="firmchange.php?factionId=2&playerID=<?php echo $Users->DataRow['playerID']; ?>" method="post">
                        <input type="submit" value="  EIC  "/></form><br>
                        <form name="firmchange" action="firmchange.php?factionId=3&playerID=<?php echo $Users->DataRow['playerID']; ?>" method="post">
                        <input type="submit" value=" VRU "/></form><br>
and you use config.php ( for trade by Şήøωў! it's the same )

and your create firmchange.php with this code

PHP Code:
 <?php  
require('config.php');
  function 
do_alert($msg){
        echo 
'<script type="text/javascript">alert("' $msg '"); </script>';
    }
mysql_connect($dbhost$dbuser$password)or error("Could not connect: ".mysql_error());
mysql_select_db($dbname) or error(mysql_error());

$sql mysql_query("UPDATE server_1_players SET factionId='".$_REQUEST["factionId"]."' where playerID='".$_REQUEST["playerID"]."'");
        if(
$sql)
        { 
         echo 
do_alert("Faction is changed when not contact Dr-Batcher  Good Game");
        }   
header("Location: indexInternal.es?action=internalStart");        
?>
Thx all

Dr-Batcher New php developper for One Ultimate
09/27/2013 18:52 Sήøwy#2
I can't remember when i made this but i supose i help someone with that :>
09/27/2013 18:55 killer boss#3
Yes It's just simply code for help new administrator of darkorbit private server

i have create this but i use your config.php lol
09/27/2013 19:26 arvatadryan#4
Quote:
Originally Posted by asd26 View Post
I can't remember when i made this but i supose i help someone with that :>
haha you dont remember :p
09/27/2013 19:30 killer boss#5
it's normally because i create this but i use config.php for connect into database
09/27/2013 20:57 cryz35#6
Another copy of buy.php, that means everyone will be able to change ALL USERS' company. lol..... :facepalm:

For you information^
09/27/2013 21:07 killer boss#7
yes i work new system . the mmo member can't access mmo changer and for other faction it's the same ;)

i have report into my topic it was a temporary file
09/27/2013 21:13 cryz35#8
Quote:
Originally Posted by killer boss View Post
yes i work new system . the mmo member can't access mmo changer and for other faction it's the same ;)

i have report into my topic it was a temporary file
That's not the problem....

Anyway, good job...
09/27/2013 21:49 «Ice.Shock™#9
Quote:
Originally Posted by killer boss View Post
Hello ,

My name is Dr-Batcher and i have developed a little faction change for One Ultimate actually i work for new webpage faction change with new choise faction

My script is easy for using and easy to code

you copy this in your indexInternal.es?action=internalStart for exemple

// Dr-Batcher script for instant change faction ( temporaly script )
PHP Code:
<form name="firmchange" action="firmchange.php?factionId=1&playerID=<?php echo $Users->DataRow['playerID']; ?>" method="post">
                        <input type="submit" value=" MMO "/></form><br>
                        <form name="firmchange" action="firmchange.php?factionId=2&playerID=<?php echo $Users->DataRow['playerID']; ?>" method="post">
                        <input type="submit" value="  EIC  "/></form><br>
                        <form name="firmchange" action="firmchange.php?factionId=3&playerID=<?php echo $Users->DataRow['playerID']; ?>" method="post">
                        <input type="submit" value=" VRU "/></form><br>
and you use config.php ( for trade by Şήøωў! it's the same )

and your create firmchange.php with this code

PHP Code:
 <?php  
require('config.php');
  function 
do_alert($msg){
        echo 
'<script type="text/javascript">alert("' $msg '"); </script>';
    }
mysql_connect($dbhost$dbuser$password)or error("Could not connect: ".mysql_error());
mysql_select_db($dbname) or error(mysql_error());

$sql mysql_query("UPDATE server_1_players SET factionId='".$_REQUEST["factionId"]."' where playerID='".$_REQUEST["playerID"]."'");
        if(
$sql)
        { 
         echo 
do_alert("Faction is changed when not contact Dr-Batcher  Good Game");
        }   
header("Location: indexInternal.es?action=internalStart");        
?>
Thx all

Dr-Batcher New php developper for One Ultimate
Better make a fee of Uridium / XP / Honor and change the system.
09/27/2013 21:54 killer boss#10
ok i create this ice chock i post tomorrow probably
09/27/2013 22:29 Sήøwy#11
Quote:
.$_REQUEST["factionId"]."' where playerID='".$_REQUEST["playerID"]."'");
You should make to use the session saved vars not requested ones.
And check them for exist/inject and all important stuff before do the mysql query.
09/28/2013 09:57 CrazyLazyGuy#12
PHP Code:
$sql mysql_query("UPDATE server_1_players SET factionId='".$_REQUEST["factionId"]."' where playerID='".$_REQUEST["playerID"]."'"); 
=>



PHP Code:
 $fid stripslashes($_SESSION['factionId']);
$pid stripslashes($_SESSION['playerID']);
$sql mysql_query("UPDATE server_1_players SET factionId='$fid' where playerID='$pid'"); 
In some minutes i will make and the honor substract.