Username:    Password:        Click Here To Signup     Forgotten Password
Main Menu
Online
Members: 0

Guests: 25

207.46.x.x download
3.80.x.x forum
40.77.x.x dilbertplus
46.229.x.x forum
46.229.x.x forum
46.229.x.x forum
46.229.x.x forum
46.229.x.x dilbertplus
46.229.x.x forum
46.229.x.x forum
46.229.x.x forum
46.229.x.x forum
46.229.x.x forum
46.229.x.x forum
51.255.x.x forum
54.36.x.x dilbertplus
54.36.x.x forum
54.36.x.x forum
54.36.x.x dilbertplus
54.36.x.x forum
54.36.x.x forum
54.36.x.x dilbertplus
54.36.x.x forum
54.36.x.x forum
54.36.x.x forum

Last Seen

»Stefan Wed 17:17
Gagi2 Tue 04:39
tltneon Wed 17:22
Nouton^ Wed 20:07
mrstipfan Wed 10:54

Newest Members

Forums
Direct Access is not allowed
SAPPER
Sat Jul 18 2009, 08:04PM
Posts: 7
Joined: Sat May 30 2009, 11:05AM
Registered Member #5128
I"m using the stand alone version and this code:

$lgsl_zone_number = 0;
$output = "";
require "lgsl/lgsl_files/lgsl_zone.php";
echo $output;

but when displayed I get " Direct Accecss is not Allowed."

SAPPER
http://syops.com
Website
micro
Sun Jul 19 2009, 05:11AM
Posts: 4
Joined: Wed Jan 28 2009, 07:37AM
Registered Member #4767
$lgsl_zone_number = 0;

change 0 - must be 1,2,3,4,5,6,7,8 etc don't 0
SAPPER
Sun Jul 19 2009, 09:49AM
Posts: 7
Joined: Sat May 30 2009, 11:05AM
Registered Member #5128
Ah, got ya.. below is the code I"m using.

-------------------------------------------------------------------------------------------------
include("./includes/incglobal.php");

$out[body].="
<br>
<center>
<table width='90%' border='0' cellspacing='1' cellpadding='2' bgcolor='#000000'>
<tr bgcolor='$config[altcolora]'>
<td width='100%' background='$config[bg]' valign='center' align='center' colspan='5'><b>Custom Page</b></td>
</tr>
<tr bgcolor='$config[altcolorb]'>
<td width='100%'valign='center' align='center' colspan='5'>$lgsl_zone_number = 1;
$output = "";
require "lgsl/lgsl_files/lgsl_zone.php";
echo $output;</td>
</tr>
</table></center><br /><br /><br /><br />";


include("$config[html]");

-----------------------------------------------------------------------------------------------
ERROR: Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING in /home/syopscp/public_html/servers.php on line 42
-----------------------------------------------------------------------------------------------

Page is http://syopscp.com/servers.php


I'm sure the error I'm receiving now is due to my lack of knowing PHP code so if someone could help me out that would be great.

Thank you,
-Eric
AKA SAPPER

SAPPER
http://syops.com
Website
SAPPER
Sun Jul 19 2009, 10:39AM
Posts: 7
Joined: Sat May 30 2009, 11:05AM
Registered Member #5128
Just wanted to up... I"m not using a CRM for the most part but I guess you could say it is a CRM being it's tied to a DB so that may be my issues. I"m using elite gaming ladders script for my site; syopscp.com they have a custom page which is what I"m trying to add. Basically what I want to do is list the severs to show users what's on line and counts. Below is the page im using.
=============================
<?
/*=======================================================================================================================================*\
|| ##################################################################################################################################### ||
|| # Elite Gaming Ladder v3.x.x # ||
|| # --------------------------------------------------------------------------------------------------------------------------------- # ||
|| # Elite Ladders - Copyright ©2007-2009 XLed Limited. # ||
|| # Protected by International Copyright Law accross 163 countries. # ||
|| # # ||
|| # Pursuant to Title 17, United States Code, the owner of this copyright has filed a valid Certificate of Registration # ||
|| # with the United States Copyright Office. # ||
|| # # ||
|| # A copyrighted work may not be copied, reproduced, distributed or publicly displayed without the consent of the author # ||
|| # or copyright owner. Any unauthorized use of this code or any of its contents, in whole or in part, shall be considered # ||
|| # copyright infringement. It is illegal for anyone to violate any of the rights provided by the copyright laws to the # ||
|| # owner of this copyright. # ||
|| # # ||
|| # Should you infringe this copyright, you may be liable to the owner for relief such as injunction, impounding and disposition # ||
|| # of infringing articles, attorney’s fees, actual damages and any profits resulting from the infringement, or statutory damages # ||
|| # up to $150,000 if the infringement was committed willfully. # ||
|| # # ||
|| # For information regarding the authorized use of any of the contents of this website and code, contact the website owner directly. # ||
|| # # ||
|| # --------------------------------------- Elite Ladders IS NOT FREE SOFTWARE ------------------------------------------------------ # ||
|| # http://www.eliteladders.com # ||
|| # # ||
|| # Full terms and conditions can be found at http://www.eliteladders.com/terms # ||
|| # # ||
|| ##################################################################################################################################### ||
\*=======================================================================================================================================*/
include("./includes/incglobal.php");

$out[body].="
<br>
<center>
<table width='90%' border='0' cellspacing='1' cellpadding='2' bgcolor='#000000'>
<tr bgcolor='$config[altcolora]'>
<td width='100%' background='$config[bg]' valign='center' align='center' colspan='5'><b>Custom Page</b></td>
</tr>
<tr bgcolor='$config[altcolorb]'>
<td width='100%'valign='center' align='center' colspan='5'>Testing Server list.</td>
</tr>
</table></center><br /><br /><br /><br />";

$lgsl_zone_number = 1;
$output = "";
require "lgsl/lgsl_files/lgsl_zone.php";
echo $output;

require "lgsl/lgsl_files/lgsl_class.php";
lgsl_query_cached_all("s");
$total = lgsl_cached_totals();
echo " Servers: {$total['servers']} Players: {$total['players']} Max Players: {$total['playersmax']} ";


include("$config[html]");

?>
===============================
When using the above code I get some results but the rest of my page sql calls fail as you will see when visiting the page http://syopscp.com/servers.php

SAPPER
http://syops.com
Website
Rich
Thu Aug 06 2009, 08:14PM
Posts: 1717
Joined: Wed Nov 26 2003, 04:30PM

Forgot to reply to this, if your putting the lgsl code within another script, the global variables can get confused, so use

global $lgsl_zone_number, $output;
$lgsl_zone_number = 1;
$output = "";
require "lgsl/lgsl_files/lgsl_zone.php";
echo $output;
Website
 

Jump:     Back to top


You are not logged in - Click Here To Signup

Username:    Password:   

Mini Buttons

.... © GreyCube.com - Richard Perry - Powered by e107.org