Well I am currently working on a Auth panel for me and my friend.. but i got stuck on the delete option of deleting the auth... please review my files and see if you can be any help...

delusers.php

<?php
   if(($username = strtolower($_POST['username'])) == "")
   {
     $username = strtolower($_GET['username']);
   }   

   if(($ip = strtolower($_POST['ip'])) == "")
   {
     $ip = strtolower($_GET['ip']);
   }

   if(($comments = strtolower($_POST['comments'])) == "")
   {
     $comments = strtolower($_GET['comments']);
   }
   
  if($username != "" || $ip != "" || $comments != "")
  {    
    echo '<html>';
    echo '<head>';
    echo '<title>Scripter\'s Panel V0.1 :: Viewing ' . $username . '</title>';
    echo '</head>';
    echo '<body bgcolor="CCCCCC" alink="FFFFFF" vlink="FFFFFF" link="FFFFFF">';
    echo '<center>';
    echo '<br>';
    echo '<br>';
    echo '<br>';
    echo '<br>';
    echo '<table height="97" width="550" border="0">';
    echo '<img src="./images/Logo.gif" border="0">';
    echo '</table>';
    echo '<table hieght="" width="550" border="0" background="./images/Middle.gif">';
    echo '<form action="deluser.php" method="post">';
    echo '<img src="./images/Header.gif" border="0"><br>';   
    echo '<td>';
    echo '<center>';
    echo '<br>';
    echo '<br>';
    echo '<br>';        
    echo '<b>Username:</b> ' . $username . '<br>';
    echo '<b>IP Address:</b> ' . $ip .'<br>';
    echo '<b>Comments:</b> ' . $comments . '<br><br>';
    echo '<input type="submit" name="del" value="Delete Auth"><br>';  
    echo '<br>';
    echo '<br>';
    echo '<br>';
    echo '<center><a href="delauths.php?username=' . $username . '">Delete Another Auth</a></center><br>';
    echo '<center><a href="panel.php">Go Back</a></center>';
    echo '<br>';
    echo '</center>';
    echo '</td>';
    echo '</form>'; 
    echo '</table>';
    echo '<img src="./images/Footer.gif" border="0">';
    echo '</center>';
    echo '<br>';
    echo '<br>';
    echo '<br>';
    echo '</body>';
    echo '</html>';
  }
?>

delusers.php

<?php
include('../config.php');
  echo '<html>';
  echo '<head>';
  echo '<title>Scripter\'s Panel V0.1 :: Delete Auths</title>';
  echo '</head>';
  echo '<body bgcolor="CCCCCC" alink="FFFFFF" vlink="FFFFFF" link="FFFFFF">';
  echo '<center>';
  echo '<br>';
  echo '<br>';
  echo '<br>';
  echo '<br>';
  echo '<table height="97" width="550" border="0">';
  echo '<img src="./images/Logo.gif" border="0">';
  echo '</table>';
  echo '<table hieght="" width="550" border="0" background="./images/Middle.gif">';
  echo '<img src="./images/Header.gif" border="0"><br>';
  echo '<img src="./images/DeleteAuthsImage.gif" border="0" width="550"><br>';
  echo '<td>';
  echo '<center>';
  echo '<br>';
  echo '<br>';
  echo '<br>';
  if($connect = mysql_connect($dbhost,$dbuser,$dbpass))
  {
    mysql_select_db($dbname);
    $query = mysql_query('SELECT * FROM auths');
    while($array = MySQL_fetch_array($query))
    {
      echo '<center><a href="delusers.php?username='.$array[username].'&ip='.$array[ip].'&comments='.$array[comments].'">'.$array[username].'</a></center><br>';
    }
  }
  echo '<br>';
  echo '<br>';
  echo '<br>';
  echo '<center><a href="panel.php">Go Back</a></center>';
  echo '<br>';
  echo '</center>';
  echo '</td>';
  echo '</table>';
  echo '<img src="./images/Footer.gif" border="0">';
  echo '</center>';
  echo '<br>';
  echo '<br>';
  echo '<br>';
  echo '</body>';
  echo '</html>';
?>

deluser.php

<?php
   if(($username = strtolower($_POST['username'])) == "")
   {
     $username = strtolower($_GET['username']);
   }   

include("../config.php");

  echo '<html>';
  echo '<head>';
  echo '<title>Scripter\'s Panel V0.1 :: Deleting ' . $username . ' from auth system</title>';
  echo '</head>';
  echo '<body bgcolor="CCCCCC" alink="FFFFFF" vlink="FFFFFF" link="FFFFFF">';
  echo '<center>';
  echo '<br>';
  echo '<br>';
  echo '<br>';
  echo '<br>';   
  echo '<table height="97" width="550" border="0">';
  echo '<img src="./images/Logo.gif" border="0">';
  echo '</table>';
  echo '<table hieght="" width="550" border="0" background="./images/Middle.gif">';
  echo '<img src="./images/Header.gif" border="0"><br>';   
  echo '<td>';
  echo '<center>';
  echo '<br>';
  echo '<br>';
  echo '<br>'; 
  if($con = mysql_connect($dbhost,$dbuser,$dbpass))
  {
    mysql_select_db($dbname);
    $query = mysql_query('DELETE FROM auths WHERE (`username`) VALUES(\''.$username.'\');');
    echo '<center><b>' . $username . ' deleted succesfully.</b></center>';
  }
  else
  {
    echo '<center><b>There was a error deleting the specified auth...</b></center>';
  }        
  echo '<br>';
  echo '<br>';
  echo '<br>';
  echo '<center><a href="delauths.php">Delete Another Auth</a></center><br>';
  echo '<center><a href="panel.php">Go Back</a></center>';
  echo '<br>';
  echo '</center>';
  echo '</td>';
  echo '</table>';
  echo '<img src="./images/Footer.gif" border="0">';
  echo '</center>';
  echo '<br>';
  echo '<br>';
  echo '<br>';
  echo '</body>';
  echo '</html>';
?>

the main page is delauths.php, it says it successfully deleted the auth but it doesn't really... the table 'auths' has the rows username, password, ip, comments, and rdate

2

(33 replies, posted in Programming)

Connorhd wrote:

i doubt it, how stupid would it be if the site you were visiting could force you to not be able to close it?

It's not a page like people would visit... It's a project, theres this game called runescape and people write scripts for it in a program called SCAR the scripts are off the language Delphi and Pascal so insteed of asking money for the scripts i want it to open a window which will have google ads and I don't want the window to be closed unless the links on the ad are clicked... I already got everything allset on the script i just need to figure out how to do it for the website...

3

(33 replies, posted in Programming)

Isn't it possible to write something in javascript so like 4 certain links have to be visited until you can close the window....

4

(33 replies, posted in Programming)

Ok well... I need to know if it is possible to write code up so that you cant close the browser unless you have visited all the links... and once you have visited all the links and close the browser next time you go the links are active again...

5

(2 replies, posted in Programming)

Thank you here is my outcome...

<?
session_start();

$panel_pass = md5("letmein"); // password: letmein
$panel_user = please; // username: please

if(!empty($_POST['pass']) || !empty($_POST['user']))
{
    $_SESSION['pass'] = md5($_POST['pass']);
    $_SESSION['user'] = $_POST['user'];
}
else if(!empty($_POST['pass']))
{
    $_SESSION['pass'] = md5($_POST['pass']);
}
else if( !empty($_POST['user']))
{
    $_SESSION['user'] = $_POST['user'];
}

if($_SESSION['pass']!=$panel_pass || $_SESSION['user']!=$panel_user)
{

    ?>
<html>
<head>
</head>
<body>
<form action="<?=$_SERVER['PHP_SELF']?>" method="post">
<center>
<table border="1">
<tr>
<td colspan="2" bgcolor="#666666"><center><b>Password Protection</b></center></td>
</tr><tr>
<td width="100"><center>Username:</center></td>
<td><center><input type="text" name="user"></center></td>
</tr><tr>
<td width="100"><center>Password:</center></td>
<td><center><input type="password" name="pass"></center></td>
</tr><tr>
<td colspan="2"><center><input type="submit" value="Login"></center></td>
</center>
</form>
</tr>
</table><br><br>
</body>
</html>

<?
exit();
}
?>
// Code the login protects goes under here...

6

(2 replies, posted in Programming)

Well I have a php login script that i have been messing around with I added to it but i need help... it lets you login with any user/pass please help fix this...

<?
session_start();

$panel_pass = md5("letmein"); // password: letmein
$panel_user = please; // username: please

if(!empty($_POST['pass']) && !empty($_POST['user']))
{
    $_SESSION['pass'] = md5($_POST['pass']);
    $_SESSION['user'] = $_POST['user'];
}

if($_SESSION['pass']!=$panel_pass && $_SESSION['user']!=$panel_user)
{

    ?>
<html>
<head>
</head>
<body>
<form action="<?=$_SERVER['PHP_SELF']?>" method="post">
<center>
<table border="1">
<tr>
<td colspan="2" bgcolor="#666666"><center><b>Password Protection</b></center></td>
</tr><tr>
<td width="100"><center>Username:</center></td>
<td><center><input type="text" name="user"></center></td>
</tr><tr>
<td width="100"><center>Password:</center></td>
<td><center><input type="password" name="pass"></center></td>
</tr><tr>
<td colspan="2"><center><input type="submit" value="Login"></center></td>
</center>
</form>
</tr>
</table><br><br>
</body>
</html>

<?
exit();
}
?>
// Code the login protects goes under here...

7

(2 replies, posted in Programming)

this from sbot? or like TUAR?

8

(3 replies, posted in Programming)

those comments were just for posting this... what would i put for the insert into then can u find out by looking at my code?

9

(3 replies, posted in Programming)

I want to do something like this...

If you goto a something like this for example
http://www.yourname.com/check.php?user= … ass=gdhdgh

then it would add newera70 and gdhdgh into a database...

i tried it with this code...

//config.php
<?php
$dbhost = "localhost";
$dbuser = "thrice_test";
$dbpass = "test";
$dbname = "thrice_test";
?>

and

//check.php
<?php
  include("config.php");
  $User = $_GET['user'];
  $Pass = $_GET['pass'];
    
    if($User != "" && $Pass != "")
    {         
                mysql_connect("$dbhost", "$dbuser", "$dbpass") or die ('I cannot connect to the database because: ' . mysql_error());
    mysql_select_db("$dbname");
    mysql_query("INSERT INTO pkbot WHERE user = '$User' AND pass = '$Pass'");
    }
    else if($User == "" && $Pass == "")
    {
    exit();
    }
?>

someone please help....

- Newera70

10

(0 replies, posted in Programming)

ok well i have been trying out java mainly when making a Modification of a Mudclient to a game but anyways I need to make a 400 x 200 box and have it filled in black can anyone direct me were to learn or show me?

11

(11 replies, posted in Programming)

Jacq wrote:

It's in the vBulletin code to which I don't have access so I really can't help you.

Try Google: http://www.google.fi/search?q=integrate+vbulletin+login
or try again the vbulletin support forums. I found the answers there too, but I can't see the code because I don't own a license.

Do the licenses cost? i have tryed to reg 3 times 2 times i never got a email and once it didnt work...

12

(11 replies, posted in Programming)

^^^

13

(11 replies, posted in Programming)

I have tried asking thier support forums but there screwed up so much everytime i try to sign up i never get my email to activate so my accounts are always dead

14

(11 replies, posted in Programming)

no i donno how to do that can someone help me plz?

15

(11 replies, posted in Programming)

No it does not work... :-(

16

(11 replies, posted in Programming)

First off I would like to apolpgize for asking so many questions once someone answers this problem I will cut back greatly...
Also I know this is a punbb forum but I have VBulletin installed and have a problem not with VBulletin but with PHP...

Ok here is my problem: I am trying to make a type of detection thing for my mainpage of my site punkera.net/index.php and its supposed to show "Welcome Back, [Username] hope you enjoy your stay!" if it detects your logged in if it detects that you not logged in or you a guest its supposed to say "( Login | Register )" so i have this for code

<?php
$login = 'Login';
$register = 'Register';
$userid = $bbuserinfo['userid'];
$username = $bbuserinfo['username']
?>

<?php
if ($userid)
{
echo "Welcome Back, " . $username . " hope you enjoy your stay!";
}
else
{
echo "<b>(</b> <a href=" . "forums/login.php" . ">" . $login . "</a> <b>|</b> <a href=" . "forums/register.php" . ">" . $register . "</a> <b>)</b>";
}
?>

I got $bbuserinfo['userid'] and $bbuserinfo['username'] from index.php of the url is punkera.net/forums/index.php ...


All this does is show "( Login | Register )" all the time even when the user is logged into the forum...

I hope someone can help me...

Here is a file you might need: the index.php of Vbulletin

EDIT: link works now

Sincerely,
Newera70


EDIT: I found this for the VBulletin login message if it helps any

if ($bbuserinfo['userid'])
{    // registered user
    $showmemberwelcome = true;
}
else
{    // guest
    $showmemberwelcome = false;
}

17

(11 replies, posted in Programming)

I found what I needed elsewere but thanks for everyone who tried

18

(11 replies, posted in Programming)

Dr.Jeckyl wrote:

the site hcgtv posted is a review and demo site of various cms/portals and the like. what he is saying is to go there a try them out and see which one offers the features you want.

So then it can not be used on my webpage?

19

(11 replies, posted in Programming)

hgtv i want it on my site on this page punkera.net/index.php would that work?

20

(11 replies, posted in Programming)

I DONT WANT IT FOR THE FORUM IF YOU READ MY POST YOU CAN SEE THIS

21

(11 replies, posted in Programming)

I need a news system like on this page rscheatnet.com it'll say who posted it then the message then have a comments.... this wouldnt be a mod for punbb it'll be for my main site(becuz i have to forums installed punbb and VBulettin im still deciding which onei want)

but check here www.rscheatnet.com to see what i mean about a new type thing...

22

(1 replies, posted in Programming)

Is there a way to code a website do on that visit when you click the link it turns the color of a visited link and then when you leave the site and come back at any time the links are set back to the active link color

23

(3 replies, posted in Programming)

zaher wrote:

if you are useing Delphi use TWebBroweser

i am not using delphi ..... but i do have a delphi thing i was wondering about ill pm u bout it


EDIT:forgot punbb has no PM system

24

(3 replies, posted in Programming)

Is a command to open a webpage in pascal ?

For example: I want to have a page open inside a form in pascal

25

(2 replies, posted in Programming)

i  wasnt asking for a link to them and im open to the names of commercial ones