Jump to content

Search the Community

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



More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • Community
    • M2Dev
    • Offtopic
    • Games Talk
    • Music / Videos / Art
    • Member Representations
    • Services & Sales
  • Metin2
    • General
    • Questions and Answers
    • Frequently Asked Questions
    • Private Servers
    • Videos
  • Releases
    • General
    • Guides & HowTo
    • Tools
    • Programming & Scripts / Systems
    • Maps
    • Quests
    • Binaries & Clients / ServerFiles
    • 3D Models
    • 2D Graphics
    • Operating Systems
  • Temporary category
    • Temporary forum

Categories

There are no results to display.

There are no results to display.


Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Nationality


Skype


Discord


Website


Steam ID


Mapping


3D


2D


C++


LUA


Python


PHP


SQL


HTML


CSS


JavaScript


Empire

Found 8 results

  1. Hello MT2Dosyalar ! I want to share a system developed by MT2Dosyalar. System I saw on a first in Turkey! First of all, the Register / Registration system in Classic Server Panels works as follows! In the form of username, password, mail, security question. What distinguishes this recording system from the others is that you can do the operations on the client via the panel! Properties -------------- 1) You Will Choose the Flag of Your Account When You Register 2) You will be asked to choose a character (warrior, sura, ninja, shaman) 3) You will be asked to choose the type of your character (Girl / Boy) 4) You will be asked to Name the character you have created in the Game (Character Name in the Game) 5) You will be asked for Mail, Username, Security Password! SETUP ------------- 1) Login to Navicat. You will create a new database. Name: mt2dosyalar Then you will throw it into settings.sql 2) Login to Navicat account> drop account.sql here in the file you downloaded 3) Log In Navicat player> Throw player.sql here in the file you downloaded 4) Settings in the main directory will be edited. 5) kayit-sistemi/ayarlar.php will be edited UPDATE # 1 ------------------------ Open bilgi.php and replace it with the following to show the number of people who have registered to Beta after registration UPDATE # 2 ----------------------------- To add a countdown after recording (Example: xx days xx hours xx minutes xx seconds then MT2 files will be opened) Replace Bilgi.php completely UPDATE # To activate the character delete code when registering Open icerik.php and replace it with Then open sonicerik.php and replace it completely with this code DOWNLOAD LİNK : https://www.mediafire.com/file/1bbzdfcrtlevfj3/MT2Dosyalar-Register_2.rar/file CODER İNFO : https://forum.mt2dosyalar.com/threads/mt2dosyalar-beta-web-kay%C4%B1t-sistemi-2020.327/
  2. <?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 = "192.168.1.120"; //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
  3. 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: https://metin2cms.cf/v2 Documentation : https://metin2cms.cf/v2/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: https://ionut.work/contact Tutorial: how to add login with Google reCAPTCHA: https://metin2cms.cf/tutorials
  4. 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.
  5. 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 http://www.mediafire.com/file/hp2zd05ad0j2bk7/website.zip and if anyone needs any help to setup this website just contact me on skype : john.dark95 or facebook : https://www.facebook.com/Juvie.SecTheater best wishes to you all.
  6. Hey guys today i have a nice upload for you all.Today i would like to release the Loyal Metin2 Homepage! Live Preview : http://loyalmt2.com/ Download Link :https://www.mediafire.com/?rhbjfogj65u87gg
  7. 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!
  8. 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.
×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.