Go Back   EQEmulator Home > EQEmulator Forums > Development > Development::Feature Requests

Development::Feature Requests Post suggestions/feature requests here.

Reply
 
Thread Tools Display Modes
  #1  
Old 08-25-2005, 12:53 PM
Magoth78
Discordant
 
Join Date: Jun 2003
Posts: 345
Default [PHP] Kick

Hello,

I've coded a simple php kick request by a telnet connection It will send a message to the character who's being kicked, wait for 4 second then kick him.

Code:
<?php

$Server = 'your_host.com';
$Port = 9000;
$user = "user\r"; 
$pass = "pass\r"; 

$kickedchar = $_POST['kickedchar'];
$message = $_POST['message'];


$fp = fsockopen($Server, $Port);
		
       		fputs ($fp, $user);
		//echo("Login Accepted\r\n");
		usleep(125000);   
      		fputs ($fp, $pass);
		usleep(125000);
		//echo("Password Accepted\r\n");
		fputs($fp, "tell $kickedchar $message\r");
                sleep(4);
		fclose($fp);

$fp = fsockopen($Server, $Port);
       		fputs ($fp, $user);
		//echo("Login Accepted\r\n");
		usleep(125000);   
      		fputs ($fp, $pass);
		usleep(125000);
                fputs($fp, "kick $kickedchar\r");
		echo("$kickedchar has been kicked out!");
		fclose($fp);
			  			
?>
and the html..
Code:
<HTML>
<BODY>
<FORM METHOD="post" ACTION="kick_char.php">
Character Name : <INPUT TYPE="text" SIZE="20" NAME="kickedchar"><BR>
Message to say : <INPUT TYPE="text" SIZE="60" NAME="message"><BR>
<INPUT TYPE="submit" VALUE="Envoyer" NAME="valider">
</FORM>
</BODY>
</HTML>
I'm actually working on a Php-portal with the important GM features to admin the server. I think that could help.

Mag
__________________
User's projects:
-- Original EMPIRE I/II and Factions! servers
-- Web GM Portal
-- EQoffline/bots
Reply With Quote
  #2  
Old 08-25-2005, 07:48 PM
Belfedia
Demi-God
 
Join Date: Jan 2005
Posts: 1,109
Default

All is writen could help
But i say "big thanks" to your splendid idea
__________________
__________________________________________________ _____________________________________
I speak english like a spanish cow..., I speak spanish like a english pudding...
But I try to speak good french !!! (Non au langage SMS sur forum)
http://eqfroggy.new.fr : Froggy French Server Website.
Reply With Quote
  #3  
Old 08-26-2005, 11:31 AM
Magoth78
Discordant
 
Join Date: Jun 2003
Posts: 345
Default

It's done. Check the development forum.
----
C'est fait, Belfedia enfin ce n'est qu'une premiere version mais ca marche pas mal :P

Mag
__________________
User's projects:
-- Original EMPIRE I/II and Factions! servers
-- Web GM Portal
-- EQoffline/bots
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

   

All times are GMT -4. The time now is 04:55 PM.


 

Everquest is a registered trademark of Daybreak Game Company LLC.
EQEmulator is not associated or affiliated in any way with Daybreak Game Company LLC.
Except where otherwise noted, this site is licensed under a Creative Commons License.
       
Powered by vBulletin®, Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3