Author |
Thread Statistics | Show CCP posts - 1 post(s) |

perry2
|
Posted - 2008.01.20 12:18:00 -
[1]
I found an error in pos-transaction.php when i try to change direction of silo in input:
Old: case 'Input': //Case to direction of the silo if ($_SESSION['access'] >= "2" || $_POST['owner_id']==$_SESSION['id']) { //Update material_id in silo.info with new ammount $sql = 'UPDATE `'.TBL_PREFIX.'silo_info` SET `status` = \'0\' WHERE `silo_info`.`silo_id` = '.my_escape($_POST['silo_id']).' LIMIT 1;'; mysql_query($sql); redirect("editsilo.php?i=" . $_REQUEST['silo_id']); } else { redirect('failure.php'); } break;
New change:
case 'Input': //Case to direction of the silo if ($_SESSION['access'] >= "2" || $_POST['owner_id']==$_SESSION['id']) { //Update material_id in silo.info with new ammount $sql = 'UPDATE `'.TBL_PREFIX.'silo_info` SET `status` = \'0\' WHERE `'.TBL_PREFIX.'silo_info`.`silo_id` = '.my_escape($_POST['silo_id']).' LIMIT $ mysql_query($sql); redirect("editsilo.php?i=" . $_REQUEST['silo_id']); } else { redirect('failure.php'); } break;
|

perry2
|
Posted - 2008.01.20 13:14:00 -
[2]
Same error for update amount of silo:
Old: case 'Update Silo': //Case to modify amount of material in silo if ($_SESSION['access'] >= "2" || $_POST['owner_id']==$_SESSION['id']) { //Update materia_amount in silo.info with new ammount $sql = 'UPDATE `'.TBL_PREFIX.'silo_info` SET `material_ammount` = \''.my_escape($_POST['material_amount']).'\' WHERE `silo_info`.`silo_id` = '.my_escape($_POST['silo_id']).' LIMIT 1;';
New:
case 'Update Silo': //Case to modify amount of material in silo if ($_SESSION['access'] >= "2" || $_POST['owner_id']==$_SESSION['id']) { //Update materia_amount in silo.info with new ammount $sql = 'UPDATE `'.TBL_PREFIX.'silo_info` SET `material_ammount` = \''.my_escape($_POST['material_amount']).'\' WHERE `'.TBL_PREFIX.'silo_info`.`silo_id` = '.my_escape($_POST['silo_id']).' LIMIT 1;';
|

perry2
|
Posted - 2008.01.22 10:58:00 -
[3]
Originally by: Kartock Maar Edited by: Kartock Maar on 22/01/2008 01:50:03 arse error: syntax error, unexpected ':' in /****/*****/public_html/postrac/install/config.php on line 10
What is the syntax that should be used on this line ..I assume it is the redirect line. Not a PHP expert by any stretch of the imagination. Thanks. for you help
Figured it out.
Can u post your config.php?
|

perry2
|
Posted - 2008.01.22 11:35:00 -
[4]
In the fuel calculator dont display isotopes that tower needs. It's due at line 175 of fuel_calculator.php.
This line needs an "s" $required_isotope = $row['isotope'];
This works $required_isotope = $row['isotopes'];
|

perry2
|
Posted - 2008.01.23 00:40:00 -
[5]
Originally by: Kartock Maar
Originally by: perry2
Originally by: Kartock Maar Edited by: Kartock Maar on 22/01/2008 01:50:03 arse error: syntax error, unexpected ':' in /****/*****/public_html/postrac/install/config.php on line 10
What is the syntax that should be used on this line ..I assume it is the redirect line. Not a PHP expert by any stretch of the imagination. Thanks. for you help
Figured it out.
Can u post your config.php?
<?php /* --- Database connection inforamations ---*/
define('SQL_HOST','localhost'); define('SQL_USER','harbi3_postrac'); define('SQL_PASS','postrac'); define('SQL_DB','harbi3_postrac'); define('TBL_PREFIX', 'harbi3_');
define('REDIRECT_PATH', 'http://'.$_SERVER['HTTP_HOST'].'/postrac/');
$conn = mysql_connect(SQL_HOST, SQL_USER, SQL_PASS) or die('Could not connect to the database; ' . mysql_error()); mysql_select_db(SQL_DB, $conn) or die('Could not select database; ' . mysql_error()); /* --- Pos tracker variables ---*/
$absolocation = 1; #Turns absolute tower location on/off
$minimal_fuel = 48; # Minimal fuel that should be kept in the towers at any time $critical_fuel = 24; # Critical fuel level
$minimal_fuel_font_color = "#E5F212" ; # $critical_fuel_text_color = "#E5F212" ; # $owner_text_color = "#FFFFFF" ; # $edited_text_color = "#FFFFFF" ; #
$minimal_fuel_background_color = "#770000" ; # $critical_fuel_background_color = "#FF0000" ; # $owner_background_color = "#001642" ; # $edited_background_color = "#F13600" ; #
?> I will change all the database information.
Sorry, but i dont find where error is. 
|
|
|