Jump to content

RaNN

New Members
  • Posts

    5
  • Joined

  • Last visited

Everything posted by RaNN

  1. This is just a command to turn on a SAMP server.
  2. Tried, not working ><
  3. Eh.. what should code should I put there then? As much as I understand, I gotta make like 'autologin' login system but I didn't success.
  4. I didn't really got you, where should I put that $_GET? thanks for answer though!
  5. Hello, I am trying to make 'onclick img' that will provide a Linux command when clicked. I've been trying this code: <body> <?php include("connect.php"); include('Net/SSH2.php'); *** CONNECTION TO DATABASE MYSQL CODE *** if(mysql_num_rows($result) > 0) { while($row = mysql_fetch_array($result)) { $_SESSION['logged'] = true; $ssh = new Net_SSH2('xx.xx.xx.xx'); if (!$ssh->login($info['username'], $info['password'])) { exit('Connection to Linux has failed, please try again.'); } echo '<form action="" method="GET">'; echo '<input type="image" src="start.png" width=100 height=100 name="start" />'; echo '</form>'; if(isset($_GET['start'])) { echo $ssh->setTimeout(5); echo $ssh->exec('(cd '.$info['username'].' ; nohup ./samp03svr &)'); } } } else { $_SESSION['logged'] = null; header("Location: loginfail.php"); } ?> </body> But when I clicked the image, it sends me to "loginfail.php". Please help ><
×
×
  • Create New...

Important Information

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.