Register for your free account! | Forgot your password?

You last visited: Today at 15:41

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



[Release]MT2GS Ban addon

Discussion on [Release]MT2GS Ban addon within the Metin2 PServer Guides & Strategies forum part of the Metin2 Private Server category.

Reply
 
Old   #1
 
KilleRzZ™'s Avatar
 
elite*gold: 0
Join Date: Feb 2014
Posts: 35
Received Thanks: 42
[Release]MT2GS Ban addon

Hello today i will release my ban addon is not so good but i will make it better by the time
screen:

PHP:


For do this script work 100% you have to add in mysql account.account 3 new tables with names:warm,logos,do8ike
after this you will change the numbers for example if you put warm 1 site will say:You have 1 warning

Dont forget to thanks <3 <3 if anyone want help then send me pm i will help
KilleRzZ™ is offline  
Thanks
9 Users
Old 02/11/2014, 21:04   #2
 
elite*gold: 0
Join Date: Feb 2012
Posts: 10
Received Thanks: 0
Nice man Good job keep on
MBoyJohnTz is offline  
Old 02/11/2014, 21:09   #3
 
anestivas11's Avatar
 
elite*gold: 0
Join Date: Jan 2013
Posts: 7
Received Thanks: 0
Thank You KillerZ <3
anestivas11 is offline  
Old 02/11/2014, 21:23   #4
 
elite*gold: 0
Join Date: Sep 2012
Posts: 7
Received Thanks: 0
Very nice, keep doing your best! Tnx for the release.
stylmp is offline  
Old 02/12/2014, 21:57   #5
 
kstmr's Avatar
 
elite*gold: 0
Join Date: Feb 2012
Posts: 95
Received Thanks: 29
Quote:
Originally Posted by KilleRzZ™ View Post
Hello today i will release my ban addon is not so good but i will make it better by the time
screen:
PHP:
For do this script work 100% you have to add in mysql account.account 3 new tables with names:warm,logos,do8ike
after this you will change the numbers for example if you put warm 1 site will say:You have 1 warning

Dont forget to thanks <3 <3 if anyone want help then send me pm i will help
nice work just use this for php code
PHP Code:
<?PHP
  
if(!empty($_SESSION['user_id'])) 

  {

    echo
'<h2>Account Status</h2>';

    echo
'<div class="splitLeft">';

echo
'<p>In this page you can see if you have take ban!</p> ';

    echo
'</div>';

    echo
'<div class="splitRight">';

    

    
$cmdStats "SELECT SUM( player.playtime ) AS ges_spielzeit, COUNT( * ) AS ges_chars, player_index.empire

    FROM player.player

    INNER JOIN player.player_index ON player_index.id = player.account_id

    WHERE player.account_id = '"
.$_SESSION['user_id']."'

    LIMIT 1"
;

    

    
$qryStats mysql_query($cmdStats,$sqlServ);

    
$getStats mysql_fetch_object($qryStats);

    

    if(!empty(
$getStats->empire)) {

      
$reich '<img src="m2m.eikones/vaseilia/'.$getStats->empire.'.png" title="Βασίλειο" alt="Reich"/>';

    }

    else {

      
$reich='Dont selected kingdom';

    }

    

    
echo
'<center>';
    echo
'<table>

      <tr>

        <th class="topLine">Account:</th>

        <td class="tdunkel"><b>'
.$_SESSION['user_name'].'</td>

      </tr>


'
;



    
$sqlAcc "SELECT account.social_id AS loeschcode, logos, status, warm, do8ike, safebox.password AS lagerpw



    FROM account.account 



    LEFT JOIN player.safebox 



    ON account.id=safebox.account_id 



    WHERE account.id='"
.$_SESSION['user_id']."'";







    
$qryAcc mysql_query($sqlAcc) or die(mysql_error());



    
$getAcc mysql_fetch_object($qryAcc);



    



    if(empty(
$getAcc->lagerpw)) $getAcc->lagerpw '000000';


    if(
$getAcc->status >= "OK") {



     
$getAcc->status '<td class="statusok"><b>Normal</b></font></center>';       }  



    if(
$getAcc->status >= "BLOCK") {
    
     
$getAcc->status '<td class="statusblock"><b>Blocked</b></font></center>';       }   
    
    if(
$getAcc->warm >= "3") { 
    
$getAcc->warm '<td class="statusmelba"><b>You have 3 warnings</b></font></center>';  
    }
    elseif(
$getAcc->warm >= "2") {
    
$getAcc->warm '<td class="statusmelba"><b>You have 2 warnings</b></font></center>'
    }
    elseif(
$getAcc->warm >= "1") {
    
$getAcc->warm '<td class="statusmelba"><b>You have 1 warning</b></font></center>';      
    }     
    elseif(
$getAcc->warm >= "") {
    
$getAcc->warm '<td class="statusok"><b>You dont have warnings</b></font></center>';      
    }     
    
        if(
$getAcc->logos >= "3") { 
    
$getAcc->logos '<td class="statusmelba"><b>excessive swearing</b></font></center>';  
    }
    elseif(
$getAcc->logos >= "2") {
    
$getAcc->logos '<td class="statusmelba"><b>Advertising  of another server</b></font></center>'
    }
    elseif(
$getAcc->logos >= "1") {
    
$getAcc->logos '<td class="statusmelba"><b>Hacking</b></font></center>';      
    }     
    elseif(
$getAcc->logos >= "") {
    
$getAcc->logos '<td class="statusok"><b>Has not  been excluded from the game</b></font></center>';       
    } 
    
    
        if(
$getAcc->do8ike >= "3") { 
    
$getAcc->do8ike '<td class="statusblock"><b>[SA]Ven</b></font></center>';  
    }
    elseif(
$getAcc->do8ike >= "2") {
    
$getAcc->do8ike '<td class="statusblock"><b>[SA]Gracia</b></font></center>'
    }
    elseif(
$getAcc->do8ike >= "1") {
    
$getAcc->do8ike '<td class="statusblock"><b>[SA]Destorm</b></font></center>';      
    }     
    elseif(
$getAcc->do8ike >= "") {
    
$getAcc->do8ike '<td class="statusok"><b>You have  gotten from anyone exclusion</b></font></center>';       
    } 
    
      echo
'



        <tr>



        <th class="topLine">Login Status:</th>



        <b>'
.$getAcc->status.'</td>



      </tr>
      
              <tr>



        <th class="topLine">Warning:</th>



        <b>'
.$getAcc->warm.'</td>



      </tr>
      
      
      <tr>



        <th class="topLine">Reason for exclusion:</th>



        <b>'
.$getAcc->logos.'</td>



      </tr>

      
      
      <tr>



        <th class="topLine">given by:</th>



        <b>'
.$getAcc->do8ike.'</td>



      </tr> 
    </table>'
;



    



    echo
'</div><div class="clear"></div>';



  }



  else 



  {



  
?>

        <h2>login</h2>

<form action="index.php?s=login" method="POST">

  <table>

    <tr>

      <th class="topLine">Username:</th>

      <td class="tdunkel"><input type="text" name="userid" maxlength="16" size="20"/></td>

    </tr>

    <tr>

      <th class="topLine">Passwort:</th>

      <td class="thell"><input type="password" name="userpass" maxlength="16" size="20"/></td>

    </tr>

    <tr>

      <td class="topLine" style="text-align:center;"  colspan="2"><input type="submit" name="submit"  value="Login"/></td>

    </tr>

  </table>

  <p><a href="index.php?s=register">register</a>  &bull; <a href="index.php?s=lostpw">Lost  password</a></p>

</form>

  <?PHP

  
}
thanks
kstmr is offline  
Old 02/15/2014, 23:30   #6
 
elite*gold: 0
Join Date: Feb 2014
Posts: 12
Received Thanks: 0
Denic Copyrights?
barbaques is offline  
Old 02/16/2014, 01:04   #7
 
KilleRzZ™'s Avatar
 
elite*gold: 0
Join Date: Feb 2014
Posts: 35
Received Thanks: 42
Quote:
Originally Posted by barbaques View Post
Denic Copyrights?
my copyrights :*
KilleRzZ™ is offline  
Old 02/16/2014, 10:01   #8
 
[uLow]NTX?!'s Avatar
 
elite*gold: 0
Join Date: May 2013
Posts: 1,266
Received Thanks: 627
Hey,

nettes Realese Danke dafür.

Ich habe mal ein paar Verbesserungsvorschläge für dich.

Z.b. solltest du
filter_input() mit entsprechenden filtern nutzen. Das kann dann alles mögliche rausfiltern.


Und bei diesem abschnitt z.b.

Warum machst du eine If?

du kannst einfach &getAcc->warm dynamsich ausgeben lassen. Das spaart Code & man kann mehr als 3 Warnings haben.
PHP Code:
if($getAcc->status >= "BLOCK") {

$getAcc->status '<td class="statusblock"><b>Blocked</b></font></center>'; }

if(
$getAcc->warm >= "3") {
$getAcc->warm '<td class="statusmelba"><b>You have 3 warnings</b></font></center>';
}
elseif(
$getAcc->warm >= "2") {
$getAcc->warm '<td class="statusmelba"><b>You have 2 warnings</b></font></center>';
}
elseif(
$getAcc->warm >= "1") {
$getAcc->warm '<td class="statusmelba"><b>You have 1 warning</b></font></center>';
}
elseif(
$getAcc->warm >= "") {
$getAcc->warm '<td class="statusok"><b>You dont have warnings</b></font></center>';

[uLow]NTX?! is offline  
Old 02/16/2014, 15:03   #9


 
kangar00's Avatar
 
elite*gold: 23
Join Date: Nov 2013
Posts: 885
Received Thanks: 748
Quote:
Originally Posted by kstmr View Post
nice work just use this for php code
PHP Code:
<?PHP
  
if(!empty($_SESSION['user_id'])) 

  {

    echo
'<h2>Account Status</h2>';

    echo
'<div class="splitLeft">';

echo
'<p>In this page you can see if you have take ban!</p> ';

    echo
'</div>';

    echo
'<div class="splitRight">';

    

    
$cmdStats "SELECT SUM( player.playtime ) AS ges_spielzeit, COUNT( * ) AS ges_chars, player_index.empire

    FROM player.player

    INNER JOIN player.player_index ON player_index.id = player.account_id

    WHERE player.account_id = '"
.$_SESSION['user_id']."'

    LIMIT 1"
;

    

    
$qryStats mysql_query($cmdStats,$sqlServ);

    
$getStats mysql_fetch_object($qryStats);

    

    if(!empty(
$getStats->empire)) {

      
$reich '<img src="m2m.eikones/vaseilia/'.$getStats->empire.'.png" title="Βασίλειο" alt="Reich"/>';

    }

    else {

      
$reich='Dont selected kingdom';

    }

    

    
echo
'<center>';
    echo
'<table>

      <tr>

        <th class="topLine">Account:</th>

        <td class="tdunkel"><b>'
.$_SESSION['user_name'].'</td>

      </tr>


'
;



    
$sqlAcc "SELECT account.social_id AS loeschcode, logos, status, warm, do8ike, safebox.password AS lagerpw



    FROM account.account 



    LEFT JOIN player.safebox 



    ON account.id=safebox.account_id 



    WHERE account.id='"
.$_SESSION['user_id']."'";







    
$qryAcc mysql_query($sqlAcc) or die(mysql_error());



    
$getAcc mysql_fetch_object($qryAcc);



    



    if(empty(
$getAcc->lagerpw)) $getAcc->lagerpw '000000';


    if(
$getAcc->status >= "OK") {



     
$getAcc->status '<td class="statusok"><b>Normal</b></font></center>';       }  



    if(
$getAcc->status >= "BLOCK") {
    
     
$getAcc->status '<td class="statusblock"><b>Blocked</b></font></center>';       }   
    
    if(
$getAcc->warm >= "3") { 
    
$getAcc->warm '<td class="statusmelba"><b>You have 3 warnings</b></font></center>';  
    }
    elseif(
$getAcc->warm >= "2") {
    
$getAcc->warm '<td class="statusmelba"><b>You have 2 warnings</b></font></center>'
    }
    elseif(
$getAcc->warm >= "1") {
    
$getAcc->warm '<td class="statusmelba"><b>You have 1 warning</b></font></center>';      
    }     
    elseif(
$getAcc->warm >= "") {
    
$getAcc->warm '<td class="statusok"><b>You dont have warnings</b></font></center>';      
    }     
    
        if(
$getAcc->logos >= "3") { 
    
$getAcc->logos '<td class="statusmelba"><b>excessive swearing</b></font></center>';  
    }
    elseif(
$getAcc->logos >= "2") {
    
$getAcc->logos '<td class="statusmelba"><b>Advertising  of another server</b></font></center>'
    }
    elseif(
$getAcc->logos >= "1") {
    
$getAcc->logos '<td class="statusmelba"><b>Hacking</b></font></center>';      
    }     
    elseif(
$getAcc->logos >= "") {
    
$getAcc->logos '<td class="statusok"><b>Has not  been excluded from the game</b></font></center>';       
    } 
    
    
        if(
$getAcc->do8ike >= "3") { 
    
$getAcc->do8ike '<td class="statusblock"><b>[SA]Ven</b></font></center>';  
    }
    elseif(
$getAcc->do8ike >= "2") {
    
$getAcc->do8ike '<td class="statusblock"><b>[SA]Gracia</b></font></center>'
    }
    elseif(
$getAcc->do8ike >= "1") {
    
$getAcc->do8ike '<td class="statusblock"><b>[SA]Destorm</b></font></center>';      
    }     
    elseif(
$getAcc->do8ike >= "") {
    
$getAcc->do8ike '<td class="statusok"><b>You have  gotten from anyone exclusion</b></font></center>';       
    } 
    
      echo
'



        <tr>



        <th class="topLine">Login Status:</th>



        <b>'
.$getAcc->status.'</td>



      </tr>
      
              <tr>



        <th class="topLine">Warning:</th>



        <b>'
.$getAcc->warm.'</td>



      </tr>
      
      
      <tr>



        <th class="topLine">Reason for exclusion:</th>



        <b>'
.$getAcc->logos.'</td>



      </tr>

      
      
      <tr>



        <th class="topLine">given by:</th>



        <b>'
.$getAcc->do8ike.'</td>



      </tr> 
    </table>'
;



    



    echo
'</div><div class="clear"></div>';



  }



  else 



  {



  
?>

        <h2>login</h2>

<form action="index.php?s=login" method="POST">

  <table>

    <tr>

      <th class="topLine">Username:</th>

      <td class="tdunkel"><input type="text" name="userid" maxlength="16" size="20"/></td>

    </tr>

    <tr>

      <th class="topLine">Passwort:</th>

      <td class="thell"><input type="password" name="userpass" maxlength="16" size="20"/></td>

    </tr>

    <tr>

      <td class="topLine" style="text-align:center;"  colspan="2"><input type="submit" name="submit"  value="Login"/></td>

    </tr>

  </table>

  <p><a href="index.php?s=register">register</a>  &bull; <a href="index.php?s=lostpw">Lost  password</a></p>

</form>

  <?PHP

  
}
thanks

Deine Einrückungsregeln sind mir ein Rätsel, ist aber irrelevant.

Ich habe das Script schon mindestens 4x gesehen, für mich ist es nichts Neues.
Ebenfalls würde es mich interressierten warum du Klassen setzt, aber keine dazugehörige CSS Datei sharest.
Wenn du das proffessionell machen würdest, würdest du auf <b>- Tags verzichten und diese in CSS ausgeben lassen, außerdem schreibt man heute: >
HTML Code:
<span style="font-weight: bold;"></span>
Ebenso unnötig dürfte das hier sein:
>
HTML Code:
<td class="topLine" style="text-align:center;"....
Du gibst eine Klasse aus, aber benutzt direkt daneben CSS?
HTML Code:
.topLine {
text-align: center;
}
Ist wohl nicht so schwer oder ?

Trotzdem danke fürs sharen, ich werde es allerdings nicht verwenden.
Thanks kriegst du aber trotzdem für deine Mühe.
kangar00 is offline  
Thanks
2 Users
Old 02/21/2014, 15:50   #10
 
.Ultimate.'s Avatar
 
elite*gold: 0
Join Date: Feb 2012
Posts: 180
Received Thanks: 117
Very useful!
.Ultimate. is offline  
Old 02/21/2014, 23:43   #11
 
KilleRzZ™'s Avatar
 
elite*gold: 0
Join Date: Feb 2014
Posts: 35
Received Thanks: 42
Quote:
Originally Posted by .Ultimate. View Post
Very useful!
thanks
KilleRzZ™ is offline  
Old 06/08/2014, 14:45   #12
 
elite*gold: 0
Join Date: Mar 2014
Posts: 64
Received Thanks: 14
Quote:
Originally Posted by KilleRzZ™ View Post
Hello today i will release my ban addon is not so good but i will make it better by the time
screen:

PHP:


For do this script work 100% you have to add in mysql account.account 3 new tables with names:warm,logos,do8ike
after this you will change the numbers for example if you put warm 1 site will say:You have 1 warning

Dont forget to thanks <3 <3 if anyone want help then send me pm i will help
Its not your work noob Its the work of Alyx You know ?
Sir-Kolonial is offline  
Thanks
1 User
Reply


Similar Threads Similar Threads
[ RELEASE / TIPP ] GM Rechte ohne IP @ 2010er Files /// Henniks MT2GS CMS AddOn
02/26/2013 - Metin2 PServer Guides & Strategies - 22 Replies
Ich dachte mir, ich schnorr' paar thx bevor das jemand anderes macht :> ... Das neue AddOn ermöglicht euch ganz einfaches verwalten von Rechten inGame über das http://www.elitepvpers.com/forum/metin2-pserver-gui des-strategies/557402-release-mt2gs-cms-1-0-a.html #post5136702. Geht zu euren htdocs oder bei Apache(kein XAMPP) sogenannte data Ordner geht dann in den Ordner pages => admin lädt euch den Anhang herunter und entpackt diesen verschiebt die gadmins.php aus meinen Anhang in...
[MT2GS-Addon]Premium System PHP
12/23/2012 - Metin2 PServer Guides & Strategies - 6 Replies
#Deleted
[MT2GS-Addon]Serverkontroll-System
07/28/2011 - Metin2 PServer Guides & Strategies - 32 Replies
Du hast einen Server ? Der Server ist Down, du bist in der Schule, auf der Arbeit oder sonst wo ohne Putty? Deine User regen sich auf, das der Server off ist? Die Zeiten sind vorbei, mit dem Script zum Serverstart über die Homepage! Vorwort: Ich bin mal wieder in Teilstimmung also mach ich das mit euch. Mit der Hilfe dieses Scripts, lässt sich euer Server jederzeit starten oder wieder herunter fahren und das per Homepage. Dieses mal wird es etwas umfangreicher, aber ich kann versichern...
Biete Pn System Addon für MT2GS
05/10/2011 - elite*gold Trading - 3 Replies
Ich biete euch ein Pn-System Addon für die MT2GS Homepage von Hennik.+ Funktionen: Der User hat die Möglichkeit andere Spieler und Teamler zu pnen. Das ganze besitzt noch ein Profilsystem. Der Absender ist so geschrieben das ein eigener Charname der nur auf dem Acc ist ausgewählt wird, das niemand den Name eines Teamlers faken kann. Was ist beim Kauf dabei? Das Script, die Query



All times are GMT +2. The time now is 15:41.


Powered by vBulletin®
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2024 elitepvpers All Rights Reserved.