Go Back   PCMech Forums > Help & Discussion > Web Design / Development

Need Some Help? Type Your Keywords Here:

Reply
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
Old 05-26-2003, 12:55 AM   #1
Member (4 bit)
 
RainMaker's Avatar
 
Join Date: Feb 2003
Location: Townsville Australia
Posts: 14
probkems witg php scripts

good evening all i have a web site and i want to put up a php forum could anybody help me out as i don't mo any php scripts
is this were i put in my web site address in tge areas of the html area i akso want to no what head and title mean as i want to get it up an running whats Utilty mean

PHP Code:
<html><head><title>vBulletin Administrator Utility</title></head>
<body>
<?php
extract
($HTTP_GET_VARS);

if (
$username=="") {

  echo 
"<form action=\"getadmin.php\" method=get><p>Username to activate: <input type=text name=username></p>";
  echo 
"<p><input type=submit value=\"Make administrator\"></p>";

} else {

  include(
"global.php");

  if (
$checkadmin=$DB_site->query_first("SELECT cancontrolpanel FROM usergroup WHERE usergroupid=6")) {
    if (
$checkadmin[cancontrolpanel]!=1) {
      
$DB_site->query("UPDATE usergroup SET cancontrolpanel=1 WHERE usergroupid=6");
    }
  } else {
    
$DB_site->query("INSERT INTO usergroup VALUES (6,'Administrator','Administrator',1,1,1,1,1,1,1,1,1,1,1)");
  }

  
$DB_site->query("UPDATE user SET usergroupid=6 WHERE username='".addslashes($username)."'");

  echo 
"<p>Administrator reinstated. Please try to access the <a href='admin/index.php'>control panel</a>.</p>";

}

?>
</body>
</html>

Last edited by M. A. Dockter; 05-26-2003 at 12:27 PM.
RainMaker is offline   Reply With Quote
Old 05-30-2003, 04:16 AM   #2
Member (12 bit)
 
fatboyjim's Avatar
 
Join Date: Feb 2001
Location: UK
Posts: 2,469
Rain Maker, you shouldn't have to fiddle with all of this just to get vBulletin up and running (I didn't have to do half as much as this anyway)

As for HEAD and TITLE. These are HTML tags. HEAD tells the browser that the information inside the tags are for Browser information only, for use by search engines perhaps, in the page header. TITLE goes inside the HEAD tag and is displayed in the taskbar and title bar of the window (TITLE tag for this thread is "PC-Media Tech Forums - probkems witg php scripts"

Good luck!

Jim
fatboyjim is offline   Reply With Quote
Old 05-30-2003, 06:33 PM   #3
Member (4 bit)
 
RainMaker's Avatar
 
Join Date: Feb 2003
Location: Townsville Australia
Posts: 14
I shore do have a lot of work to do jim and and i have to nuke my pc today as i found a couple of errors and bugs in it i'm using my laptop do download my wrok. thanks for the help i was not too sgore on the php scripts
RainMaker is offline   Reply With Quote
Reply

Bookmarks

Still Need Help? Type Your Keywords Here:


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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 On
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 08:00 AM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
SEO by vBSEO 3.6.0 PL2