View Single Post
  #1   Spotlight this post!  
Unread 01-03-2006, 09:59
Ethulin Ethulin is offline
Too many hats to count
AKA: Erik Thulin
FRC #0492 (Titan Robotics)
Team Role: Leadership
 
Join Date: Mar 2005
Rookie Year: 2003
Location: Seattle
Posts: 245
Ethulin has much to be proud ofEthulin has much to be proud ofEthulin has much to be proud ofEthulin has much to be proud ofEthulin has much to be proud ofEthulin has much to be proud ofEthulin has much to be proud ofEthulin has much to be proud of
Send a message via AIM to Ethulin
Re: STAMP version 1.0 (NOT BETA) is out for week 1!

It appears there may be an issue with the "database_setup.php" file.

If you can do a little code hacking you CAN make the STAMP app fully functional. Open "database_setup.php" and replace
PHP Code:
<?
include 'stamp_includes.php';
connectToDatabase();

//only allow if accounts have not been made yet
    
$result mysql_query("SELECT * FROM user")
                or die (
"Query error: ".mysql_error());
    
$rows mysql_num_rows($result);
    if (
$rows 0) {
        die(
"This page is not accessible after accounts have been made.");
    }
?>
with
PHP Code:
<?
include 'stamp_includes.php';
?>
Then run "database_setup.php" and create your first account. After that change "database_setup.php" BACK to the original. Then wah-la, you have a fully functional STAMP install.

We will have a 1.0.1 release out ASAP with a fix for this so you don't have to hack it up.
__________________
2003 Pacific Northwest Regional Website Award || 2003 Pacific Northwest Regional Finalist || 2003 Pacific Northwest Regional Engineering Inspiration Award || 2004 Pacific Northwest Website Award || 2004 Pacific Northwest Regional Champions (#1 seed) || 2004 Galileo Semi-Finalist || 2005 Pacific Northwest Regional General Motors Industiral Design Award || 2005 Pacific Northwest Regional Champions (#1 seed) || 2005 Galileo Finalist || 2006 Pacific Northwest Regional Chairman's
Stamp Scouting || Titan Robotics

Last edited by Ethulin : 01-03-2006 at 10:09.