Nukelan as we know it has absolutely no support for its software. Not only that, it doesnt even have any friggin documentation. And it is the only software on the web that is useful for making secure transactions and Lan Party registrations through your nuke site.
Couple of days ago. And i no hitwalker will remember this. I had some problems with site paths. Now everything is fine. Its not showing any errors. (i checked with error messages on) the problem how ever now....
Only registered users can see links on this board! Get registered or login to the forums!
...is that the seating chart won't work. I m guessing its rn's ol's security patches stopping it but i dont know. I am at a point where suicide is definately necesary. Can someone show me the light here?
well, I installed this and I have found the issue with that page. By viewing the source where the missing image is I have found this
Code:
<b>Fatal error</b>: Call to undefined function: current_security_level() in <b>/home/****/public_html/modules/Nukelan/seating_chart.php</b> on line <b>119</b><br />
now, I do not know how to fix it but perhaps someone else will.
Here is the code from lines 100 to 125
Code:
$colors["cell_background"] = "#000000";
$colors["cell_alternate"] = "#000000";
$colors["text"] = "#ffffff";
$colors["blended_text"] = "#444444";
$colors["graphs"] = $colors["primary"];
$uresult = mysql_query("SELECT * FROM nukelan_signedup WHERE lan_uid='$uid' AND lan_id='$pid'");
$urow = mysql_fetch_array($uresult);
$tresult = mysql_query("SELECT * FROM nukelan_seat_objects WHERE id='$urow[room_loc]' AND room_id='$roomid'");
$useat = mysql_fetch_array($tresult);
if(@mysql_num_rows(@mysql_query("SELECT * FROM nukelan_seat_rooms WHERE id='$roomid'"))) {
Only registered users can see links on this board! Get registered or login to the forums!
// http://www.nukelan.com
// =====================================================================
// Special thanks to:
// Contra - for integrating the Multipay and IPN option into Nukelan.
// you the man
// =====================================================================
// LICENSE
//
// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public License (GPL)
// as published by the Free Software Foundation; either version 2
// of the License, or (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// To read the license please visit http://www.gnu.org/copyleft/gpl.html
// ----------------------------------------------------------------------
if(!eregi("modules.php", $_SERVER['PHP_SELF'])){
die("You can't access this file directly...");
}
OpenTable();
$lan = mysql_fetch_array(mysql_query("SELECT * FROM nukelan_parties WHERE party_id='$pid'"));
echo "<center> :: <a href=\"modules.php?op=modload&name=$ModName&file=index&lanop=show_party&party_id=$lan[party_id]\">"._NLEVENTINFO."</a> :";
// if tournaments for this LAN
if (mysql_num_rows(mysql_query("SELECT * FROM nukelan_tournaments WHERE config_id='$lan[party_id]'"))) {
echo ": <a href=\"modules.php?op=modload&name=$ModName&file=tourneys&lanop=show_list&pid=$lan[party_id]\">"._NLTOURNAMENTS."</a> :";
}
// if Prizes for this LAN
if (mysql_num_rows(mysql_query("SELECT * FROM nukelan_prizes WHERE config_id='$lan[party_id]'"))) {
echo ": <a href=\"modules.php?op=modload&name=$ModName&file=prizes&lanop=show_prizes&party=$lan[party_id]\">"._NLPRIZES."</a> :";
}
// if lodgin for this LAN
if (mysql_num_rows(mysql_query("SELECT * FROM nukelan_lodging WHERE config_id='$lan[party_id]'"))) {
echo ": <a href=\"modules.php?op=modload&name=$ModName&file=lodging&lanop=show_lodges&pid=$lan[party_id]\">"._NLLODGING."</a> :";
}
// if Seating Chart for this LAN
if ($lan['schart'] > 0) {
echo ": <a href=\"modules.php?op=modload&name=$ModName&file=seating_chart&seat=showChart&pid=$lan[party_id]\">"._NLSEATINGCHART."</a> :";
}
// if LAN has sponsors
if (mysql_num_rows(mysql_query("SELECT * FROM nukelan_sponsors_parties WHERE party_id='$lan[party_id]'"))) {
echo ": <a href=\"modules.php?op=modload&name=$ModName&file=sponsors&pid=$lan[party_id]\">"._NLPARTYSPONSORS."</a> :";
}
echo ": <a href=\"modules.php?op=modload&name=$ModName&file=profile&pid=$lan[party_id]\">"._NLPROFILE."</a> ::</center>";
CloseTable();
echo "<br>";
OpenTable();
function object_exists($tableID) {
if(@mysql_num_rows(@mysql_query("SELECT * FROM nukelan_seat_objects WHERE id=" . $tableID))) return 1;
else return 0;
}
$row = @mysql_fetch_array(@mysql_query("SELECT * FROM nukelan_signedup WHERE lan_uid='" . $_COOKIE["userid"] . "' AND lan_id='$pid'"));
$party = @mysql_fetch_array(@mysql_query("SELECT * FROM nukelan_parties WHERE party_id='$pid'"));
$roomid = "$party[schart]";
function showseats($pid,$row,$party,$roomid) {
global $uid, $ModName;
$colors["background"] = "#000000";
$colors["primary"] = "#00ff00";
$colors["secondary"] = "#009900";
$colors["border"] = "#00ff00";
$colors["cell_title"] = "#111111";
$colors["cell_background"] = "#000000";
$colors["cell_alternate"] = "#000000";
$colors["text"] = "#ffffff";
$colors["blended_text"] = "#444444";
$colors["graphs"] = $colors["primary"];
$colors["cell_background"] = "#000000";
$colors["cell_alternate"] = "#000000";
$colors["text"] = "#ffffff";
$colors["blended_text"] = "#444444";
$colors["graphs"] = $colors["primary"];
$uresult = mysql_query("SELECT * FROM nukelan_signedup WHERE lan_uid='$uid' AND lan_id='$pid'");
$urow = mysql_fetch_array($uresult);
$tresult = mysql_query("SELECT * FROM nukelan_seat_objects WHERE id='$urow[room_loc]' AND room_id='$roomid'");
$useat = mysql_fetch_array($tresult);
if(@mysql_num_rows(@mysql_query("SELECT * FROM nukelan_seat_rooms WHERE id='$roomid'"))) {
echo "</tr></table>\n";
}
function sitting($pid,$uid,$rloc,$action) {
if ($uid <= 1) die (""._NLREGISTERFORSEAT."");
$result = mysql_query("SELECT * FROM nukelan_seat_objects WHERE id='$rloc'");
$row = mysql_fetch_array($result);
$num_here = mysql_num_rows(mysql_query("SELECT * FROM nukelan_signedup WHERE lan_id='$pid' AND room_loc='$rloc'"));
switch ($action) {
case 'stand':
if (!mysql_query("UPDATE nukelan_signedup SET room_loc=NULL WHERE lan_uid='$uid' AND lan_id='$pid'")) echo "font size=2 color=red><b>"._NLCANNOTSTANDUP."</b></font>";
//else echo"<h2>You do not have a reserved seat</h2>";
break;
default:
if ($num_here >= $row['capacity']) echo "<font size=2 color=red><b>"._NLTABLEFULL."</b></font>";
elseif (!mysql_query("UPDATE nukelan_signedup SET room_loc='$rloc' WHERE lan_uid='$uid' AND lan_id='$pid'")) echo "<font size=2 color=red><b>"._NLCANNOTSITHERE."</b></font>";
//else echo "<h2>You have reserved a seat at table: $row[name]</h2>";
break;
}
}
switch ($lanop) {
case 'userSit':
sitting($pid,$uid,$rloc, '');
mysql_query("DELETE FROM nukelan_map_temp WHERE uid='$uid'");
mysql_query("INSERT INTO nukelan_map_temp SET uid='$uid', room_id='$roomid'");
showseats($pid,$row,$party,$roomid);
break;
case 'userStand':
sitting($pid,$uid,$rloc,'stand');
mysql_query("DELETE FROM nukelan_map_temp WHERE uid='$uid'");
mysql_query("INSERT INTO nukelan_map_temp SET uid='$uid', room_id='$roomid'");
showseats($pid,$row,$party,$roomid);
break;
case 'showChart':
mysql_query("DELETE FROM nukelan_map_temp WHERE uid='$uid'");
mysql_query("INSERT INTO nukelan_map_temp SET uid='$uid', room_id='$roomid'");
showseats($pid,$row,$party,$roomid);
break;
default:
mysql_query("DELETE FROM nukelan_map_temp WHERE uid='$uid'");
mysql_query("INSERT INTO nukelan_map_temp SET uid='$uid', room_id='$roomid'");
showseats($pid,$row,$party,$roomid);
break;
}
echo "</table>";
CloseTable();
include ("footer.php");
?>
this is the error that i get
Parse error: parse error, unexpected T_ELSE in /home/****/public_html/modules/Nukelan/seating_chart.php on line 167
The error you’re getting happens for different reasons. If you have already set up the seating room and given it dimensions (for a 20 foot by 20 foot room, I’d use 20x20) then the database should have enough info to make the image.
Since the image isn’t being created, we can assume one of two things. Either A: the GD Library (gdlib) isn’t installed or configured on your web server. Or B: for some odd reason the code isn’t executing properly. If error reporting was turned on, we could get a closer look at the problem by going to
http://www.digitaldistrict.net/modules/Nukelan/seating_image.php?c=0&grid=0&roomid=1 but that doesn’t yield anything so I have to assume that not all errors are being printed for the time being.
In most cases, the seating chart doesn’t show because the GDLib isn’t installed, but if it is installed and the error is pointing at something else, I can try to be of some help.
Peace!
Brooks
(artemis)
and error reporting has been on since my very first post in this thread btw.
Joined: Feb 21, 2006 Posts: 1497 Location: In front of a screen....HELP! lol
Posted:
Wed Jul 05, 2006 9:28 am
time to debug the script then.
After looking at the code, This was not ported to nuke the way (inmy opinion) It should be. The code creates its own mysql link, includes are set to the wrong file link, Those are in my first 5 minutes of looking at this:
this is what it was:
Only registered users can see links on this board! Get registered or login to the forums!
//
Only registered users can see links on this board! Get registered or login to the forums!
// =====================================================================
// Special thanks to:
// Contra - for integrating the Multipay and IPN option into Nukelan.
// you the man
// =====================================================================
// LICENSE
//
// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public License (GPL)
// as published by the Free Software Foundation; either version 2
// of the License, or (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// To read the license please visit
Only registered users can see links on this board! Get registered or login to the forums!
omg guy you wont believe this but this thing randomly started working..
Only registered users can see links on this board! Get registered or login to the forums!
YESS!!!
acctaully his happened when i replaced seating_image.php file with the one i actaully got. when i go here.
Only registered users can see links on this board! Get registered or login to the forums!
i still get 3 errors but this thing works now... i have no clue why and how. if someone has an explaination please let me know.
Thanks hitwalker, jaded, darklord for your time and skillz i really appreciate it.
EDIT: I take back everything i said above except the last line. The thing shows up but when you hit sit down here it wont well.. make u sit down. wow this is a lot of pain.
EDIT: ok i m so confused. i cant sit down... while other people can.. this is wierd.
LAST EDIT: ok everything is fine sorry for repeatedly pasting messages. Thanks everyone.
View next topic View previous topic
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum