Home Private Messages Search
CPG Dragonfly™ CMS Dedicated Server & Bandwidth Sponsored by DedicatedNOW
Toggle Content
 
Forums ⇒ DragonflyCMS ⇒ Add-Ons & Blocks :: Archives ⇒ CPG-Nuke League for PR1 (and above) :: Archived


CPG-Nuke League for PR1 (and above) :: Archived
Need help creating a block or add-on, or you have created or modified a block/add-on that works in Dragonfly CMS and it meets the CPG Security Requirements? Do you have feedback about a specific add-on? Here is the place to post. Read the announcements here first!.
Go to page Previous  1, 2
Post new topic    Revive this topic    Printer Friendly Page     Forum Index ⇒  Add-Ons & Blocks

Topic Archived View previous topic :: View next topic  
Author Message
Phoenix
• Many Posts •
• Many Posts •

Offline Offline
Joined: Apr 19, 2004
Posts: 8799
Location: Netizen
PostPosted: Wed Dec 29, 2004 12:36 pm
Post subject: Re: CPG-Nuke League for PR1 (and above)

PHP:
if (!defined('ADMIN_PAGES')) { exit; }
if (!
can_admin()) { die('Access Denied'); }

_________________
DonationsPro for DragonflyCMS, SMF, MyBB, vBulletin

Phoenix's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Back to top
View user's profile Visit poster's website Photo Gallery
fcxbytes
Newbie
Newbie

Offline Offline
Joined: Sep 02, 2004
Posts: 20

PostPosted: Wed Dec 29, 2004 12:51 pm
Post subject: Re: CPG-Nuke League for PR1 (and above)

Good.
And if the file has something like this in the start
PHP:
$module_name="League";
get_lang($module_name);
include_once(
'modules/$module_name/constants.php');
include_once(
'modules/$module_name/util.php');
global
$db;

if (!
defined('ADMIN_PAGES')) { exit; }
if (!
can_admin()) { die('Access Denied'); }
should it be ordered like this?
PHP:

if (!defined('ADMIN_PAGES')) { exit; }
if (!
can_admin()) { die('Access Denied'); }

$module_name="League";
get_lang($module_name);
global
$db;
include_once(
'modules/$module_name/constants.php');
include_once(
'modules/$module_name/util.php');


fcxbytes's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Linux/1.3.27/4.0.22/4.3.1/8.2b-CVS


Last edited by fcxbytes on Wed Dec 29, 2004 12:54 pm; edited 1 time in total
Back to top
View user's profile Visit poster's website MSN Messenger
fcxbytes
Newbie
Newbie

Offline Offline
Joined: Sep 02, 2004
Posts: 20

PostPosted: Wed Dec 29, 2004 12:53 pm
Post subject: Re: CPG-Nuke League for PR1 (and above)

Isn't there also a change about how the global variables work?
I suppose the first block of code I posted is correct then.


fcxbytes's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Linux/1.3.27/4.0.22/4.3.1/8.2b-CVS


Last edited by fcxbytes on Wed Dec 29, 2004 12:57 pm; edited 1 time in total
Back to top
View user's profile Visit poster's website MSN Messenger
Phoenix
• Many Posts •
• Many Posts •

Offline Offline
Joined: Apr 19, 2004
Posts: 8799
Location: Netizen
PostPosted: Wed Dec 29, 2004 12:57 pm
Post subject: Re: CPG-Nuke League for PR1 (and above)

yes - needs to be at the top to prevent the file from working.

_________________
DonationsPro for DragonflyCMS, SMF, MyBB, vBulletin

Phoenix's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Back to top
View user's profile Visit poster's website Photo Gallery
fcxbytes
Newbie
Newbie

Offline Offline
Joined: Sep 02, 2004
Posts: 20

PostPosted: Wed Dec 29, 2004 1:29 pm
Post subject: Re: CPG-Nuke League for PR1 (and above)

I remind that get() should be replaced with $_GET[''].

PHP:
// Is this correct?
while (($rows = $db->sql_fetchrow($result))) {
$name = getTeamName($rows[tid]);
//change to
$name = $_GET['TeamName']($rows[tid]);


fcxbytes's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Linux/1.3.27/4.0.22/4.3.1/8.2b-CVS
Back to top
View user's profile Visit poster's website MSN Messenger
fcxbytes
Newbie
Newbie

Offline Offline
Joined: Sep 02, 2004
Posts: 20

PostPosted: Wed Dec 29, 2004 2:29 pm
Post subject: Re: CPG-Nuke League for PR1 (and above)

I have another question concerning Header("Location: address"); .
I know It should be changed to url_redirect(getlink('address'));

PHP:

// all ok?


fcxbytes's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Linux/1.3.27/4.0.22/4.3.1/8.2b-CVS
Back to top
View user's profile Visit poster's website MSN Messenger
xfsunoles
XHTML Specialist
XHTML Specialist

Offline Offline
Joined: Apr 30, 2004
Posts: 2502
Location: Melbourne, Florida
PostPosted: Wed Dec 29, 2004 7:30 pm
Post subject: Re: CPG-Nuke League for PR1 (and above)

Code::
  url_redirect(adminlink('leagueCreate'));

_________________

Firefox is my Favorite Browser

xfsunoles's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Apache/1.3.34 (Unix)/4.0.25-standard/4.4.1/CVS
Back to top
View user's profile Visit poster's website AIM Address MSN Messenger Yahoo Messenger Photo Gallery
fcxbytes
Newbie
Newbie

Offline Offline
Joined: Sep 02, 2004
Posts: 20

PostPosted: Thu Dec 30, 2004 12:34 am
Post subject: Re: CPG-Nuke League for PR1 (and above)

This is my first (huge) job in php.
So far I managed to port some files...
I'm going to drop league.php file here.

Maybe there's a god out there that is interested in checking out my progress and pointing some errors I may have done.


fcxbytes's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Linux/1.3.27/4.0.22/4.3.1/8.2b-CVS
Back to top
View user's profile Visit poster's website MSN Messenger
RedGerry
Silver Supporter
Silver Supporter

Offline Offline
Joined: Jun 29, 2004
Posts: 480
Location: Fishcross, Scotland
PostPosted: Wed Jan 19, 2005 5:22 pm
Post subject: Re: CPG-Nuke League for PR1 (and above)

I should have an operational version of RG_Sports under Dragonfly in the next couple of weeks.

Questtion? Do I need to submit this to anyone for approval/certification. As far as I can see it meets all the requirements however I'd be happier with someone checking it.

_________________
gerry @ redgerry.com
redgerry.com
clacks.co
123v.com
copseygroup.com

RedGerry's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Suse11.4 - LAMP on zypper - ISPConfig 3
Back to top
View user's profile Visit poster's website MSN Messenger
Display posts from previous:   
Post new topic    Revive this topic    Printer Friendly Page    Forum Index ⇒  Add-Ons & Blocks
Page 2 of 2
All times are GMT
Go to page Previous  1, 2

Archive Revive
Username:
This is an archived topic - your reply will not be appended here.
Instead, a new topic will be generated in the active forum.
The new topic will provide a reference link to this archived topic.
 
   Toggle Content User Info

Welcome Anonymous

Nickname
Password
(Register)

   Toggle Content Last CVS commits
· Fixed .ico Expires header.
· Removed domain name from cookies so subdomains wont access them anymore.
· CSS and JS, case insensitives.
· CSS and JS, send correct HTTP 1.1 headers and fixed issues where themes and...
· Further security class improvements.
· 301 redirects on LEO changes
· Option to force 3xx http status codes
· Validate googlebot.com and google.com crawlers.
· CCBot
· Rss with etag and atom.

читај повеќе...

   Toggle Content Community

Support for DragonflyCMS in a other languages:

Deutsch
Español

   Toggle Content X-links
UltraEdit Browse Happy logo Firefox MySQL PostgreSQL Valid CSS! Valid XHTML 1.0! Unicode Encoded Badge NukeBiz Resources Raven DragonflyCMS Dedicated Now InsideSupport Lampe Berger

You are seeing squares or questionmarks on this page?

All content of this website is copyrighted by the Creative Commons NC-SA
The logos and trademarks used on this site are the property of their respective owners
We are not responsible for comments posted by our users, as they are the property of the poster.
Our server runs on a P3 1.2GHz with 512MB RAM with no accelerators
Support GoPHP5.org
Interactive software released under GNU GPL, Code Credits, Privacy Policy