Search the Community

Showing results for tags 'php' in content posted in Programming / Scripts.

More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


  • Temporary category
    • Temporary forum
  • Community
    • Announcements
    • Feedback
  • Metin2
    • General
    • Questions and Answers
    • Frequently Asked Questions
    • Guides & HowTo
    • Design
    • Private Servers
    • Services
    • Videos
  • Releases
    • General
    • Tools
    • Programming / Scripts
    • Quests
    • Binaries & Clients / Serverfiles
    • 3D Models
    • 2D Graphics
    • Operating Systems
  • Safe Zone
    • Offtopic
    • Games Talk
    • Music / Videos / Art
  • M2 Project's Help & Questions
  • M2 Project's M2P
  • M2 Project's Ideas


There are no results to display.

There are no results to display.

Find results in...

Find results that contain...

Date Created

  • Start


Last Updated

  • Start


Filter by number of...


  • Start



Website URL






Found 11 results

  1. gokhandemir


    <?php class SocketConnection { private $m_socket; private $m_recv_buf; public function __construct() { $this->m_socket = 0; $this->m_recv_buf = ""; } public function Connect($host, $port, $timeout) { $this->m_socket = fsockopen($host, $port, $errno, $errstr, $timeout); if (!$this->m_socket) { echo(sprintf("%s (%d)<br>\n", $errstr, $errno)); return false; } return true; } public function Recv($len) { $this->m_recv_buf = fread($this->m_socket, $len); } public function Send($buf) { fwrite($this->m_socket, $buf); } public function GetRecvBuf() { return $this->m_recv_buf; } } class GameConnector { private $m_socketConnector; public function __construct($host, $port) { $this->m_socketConnector = new SocketConnection; if (!$this->m_socketConnector->Connect($host, $port, 5)) return false; $this->m_socketConnector->Recv(32); $recvBuf = $this->m_socketConnector->GetRecvBuf(); if (ord($recvBuf[0]) != 253) { echo("GameConnector does not handle this packet!"); return false; } } public function Send($str) { $this->m_socketConnector->Send("@".$str."\n"); $this->m_socketConnector->Recv(64); } public function GetBuffer() { return $this->m_socketConnector->GetRecvBuf(); } } $host = ""; //ip adresi $port = 13000; // port $api = new GameConnector($host, $port); $api->Send("sjefjfhsfjkfs1"); // p2p şifre $api->Send("NOTICE Web Uzerinden Bildirim Yolla Testi 2"); // Komut $apiBuf = substr($api->GetBuffer(), 0, -1); if(empty($apiBuf)) { echo "Game did not respond"; exit; } if(is_numeric($apiBuf[0])) { $userCount = explode(" ", $apiBuf); echo sprintf("Total[%d] %d / %d / %d (this server %d)", $userCount[0], $userCount[1], $userCount[2], $userCount[3], $userCount[4]); exit; } if($apiBuf=="UNKNOWN") echo "Command send and executed no custom response"; else echo $apiBuf; ?> source
  2. Optimus


    Author: Ionuț ( me ) Size: 3.54 MB Version: v2.11 Type: Open-Source Features: Modern design with elements in bootstrap (v4 alpha 3), admin panel (currently in beta), member panel (currently basic systems), update system, registration, general settings in the admin panel, offline system (if the server is offline, notifications will be displayed, also the last copy of the top site), database of news is sqlite, settings files are in json. Language: English & Romanian Preview: Download: Documentation : Install: Just edit config.php with your datas. CMS is not completely. It will be updated. I expect criticism / opinions / advice constructive. To report an error: Tutorial: how to add login with Google reCAPTCHA:
  3. Hello community. i had some free time so and i did this. is not something special but someone might want to use it Download: Mega You put your database information on include/dbconfig. You put your client download link on index.php variable: $DownloadLink IF something not work good just report it here and i will fix it.
  4. Hey guys, i've been working lately on metin2 website and i finally finished it. This website is completely running securely using php and PDO not mysql like other sites i have seen. it only needs you to change to design of it and it will be ready to use you can download the files from this link and if anyone needs any help to setup this website just contact me on skype : john.dark95 or facebook : best wishes to you all.
  5. oncemoron


    Hello guys, i create maintenance website for your server. Download link: + config file
  6. Hey guys today i have a nice upload for you all.Today i would like to release the Loyal Metin2 Homepage! Live Preview : Download Link :
  7. ondry

    Hi, Im releasing my metin2 cms. Reason: few people made refund after paying me on paypal (i'm not using this stupid system for selling stuffs anymore) Features: Almost everything customizable in administration - no programming knowledge required Highly secured (CMS is using PDO driver instead of mysql_ function, bruteforce protection, anti flood protection) Responsive template (bootstrap) Almost every user actions on web are logged You can choose if you want to use classic php email function or SMTP server Built-in ticket system Referral system Coupons Itemshop - you can enable discount action, let users change quantity of item, add normal item / premium Easy to translate language (all strings are in 1 file) SEO friendly links ( instead of Automatic paypal payment script, paysafecard and amazon code payment scripts And many others... (see screenshots) Screenshots: I didn't implement installation script, so you must install it manually (tutorial in readme.txt) If you like my CMS, you can donate me on paypal - Don't remove my copyright, please. Download link: Scan: EDIT: Bugfix 1 - Rename file "inc/classes/securimage.class.php" to "Securimage.class.php" (first letter need to be uppercase)
  8. I request to close this Topic. The platform is going back to development stage.
  9. Hello Guys, Today i will release (mabe is already public) a system that count's Player's Online and Account's. I have also make a system that counts Account's with kingbom allocation. It is like this: and the code: Player's Online: <?PHP $ip = $serverSettings['server_ip']; $output = mysql_query("SELECT COUNT(*) as count FROM player.player WHERE DATE_SUB(NOW(), INTERVAL 10 MINUTE) < last_play;"); $playerCount = mysql_fetch_array($output); ?> <div class="allPlayers"><font size="4">Player's Online:</font> <span class="countHighlight"><font size="4"><?php echo $playerCount['count']+0;?></font></span> <?php mysql_select_db("player"); $query = mysql_query ("SELECT * FROM player_index"); $num2 = mysql_num_rows($query); mysql_select_db("player"); $exe = mysql_query("SELECT COUNT(*) as count FROM player WHERE DATE_SUB(NOW(), INTERVAL 10 MINUTE) < last_play;"); $player_online = mysql_fetch_object($exe)->count; mysql_select_db("player"); $rots = "SELECT * FROM player_index WHERE empire NOT LIKE '2%' and empire NOT LIKE '3%' and empire NOT LIKE '[%]%';"; $rotquery = mysql_query($rots); $rotanzahl = mysql_num_rows($rotquery); mysql_select_db("player"); $gelbs = "SELECT * FROM player_index WHERE empire NOT LIKE '1%' and empire NOT LIKE '3%' and empire NOT LIKE '[%]%';"; $gelbquery = mysql_query($gelbs); $gelbanzahl = mysql_num_rows($gelbquery); mysql_select_db("player"); $blaus = "SELECT * FROM player_index WHERE empire NOT LIKE '1%' and empire NOT LIKE '2%' and empire NOT LIKE '[%]%';"; $blauquery = mysql_query($blaus); $blauanzahl = mysql_num_rows($blauquery); ?> </br> <center> <font color=#FFF><p style=text-align:center;border:none;background:none;margin-top:0px;margin-bottom:0px;><font color=#ff6a6a><font size="4">Account's:</font><font color=#FFF size="4"> <?php echo $num2;?><br><br></font> <table style="border:1px #000 solid;width:60%;margin-bottom:0px;"> <tr height="9"> <?php echo "<td width="33.054178223629%"".$rotanzahl."& ".$rotanzahl." style="background: transparent url(img/bar1.png) left top repeat-x;"</td>"; echo "<td width="33.594469764543%"".$gelbanzahl."% ".$gelbanzahl." style="background: transparent url(img/bar3.png) left top repeat-x;"</td>"; echo "<td width="33.350130130375%"".$blauanzahl."% ".$blauanzahl." style="background: transparent url(img/bar2.png) left top repeat-x;"</td>"; ?> </tr> </table> <table style="border: none;width:60%;margin-top:0px;"> <tr> <td style="text-align:center;color:#fff;"><b><center><?php echo $rotanzahl;?></b></td></center> <td style="text-align:center;color:#fff;"><b><center><?php echo $gelbanzahl;?></b></td></center> <td style="text-align:center;color:#fff;"><b><center><?php echo $blauanzahl;?></b></td></center> </tr> </table> </center> If eny of you have any problem. I am free to help you!
  10. So last night I came up with a good idea for registration scripts, applied it and thought I would share it with you. This is a very simple yet useful modification that will tell players whether the registration system is activated, disabled, or they are already logged in. No more guessing! So basically open up your registration script - look for the line that tells users if they cannot create a new account cause they are already logged in, or the registration system is disabled, which will probably look like this: <?PHP } else { echo 'You are either already logged in, or the registration system is currently disabled.</div></div>'; } ?> And replace it with: <?PHP } else { echo 'You can not create a new account while being logged in.</div></div>'; } } else { echo 'Registration system is currently disabled.</div></div>'; } ?> And that's it.