Montego Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic
Author Message
hicux
Newbie
Newbie



Joined: Jan 30, 2009
Posts: 92
Location: NL

PostPosted: Sat Nov 16, 2013 7:54 pm Reply with quote

Hi Montego,

I wonder why I always see this useless code almost everywhere in nuke.

Example:

In admin/modules/Downloads/public/getit.php

Code:
                  $ThemeSel = get_theme();
                  if (file_exists('themes/' . $ThemeSel . '/images/downloads/code_bg.png')) {
                     $imgpath = 'themes/' . $ThemeSel . '/images';
                  } else {
                     $imgpath = 'images';
                  }


in gfx.php too

Code:
$ThemeSel = get_theme();
if (file_exists('themes/' . $ThemeSel . '/images/code_bg.png')) {
   $codeimg = 'themes/' . $ThemeSel . '/images/code_bg.png';
   include_once 'themes/' . $ThemeSel . '/theme.php';


If I read properly this above means if the images is not there then use another path. We all know there is not images there.

Shocked
 
View user's profile Send private message Visit poster's website
nuken
Newbie
Newbie



Joined: Mar 12, 2007
Posts: 24

PostPosted: Sun Nov 17, 2013 12:35 am Reply with quote

That code is there for non ravennuke old captcha graphic. Backwards compatibility of phpnuke.

_________________
Tricked Out News 
View user's profile Send private message
hicux
Newbie
Newbie



Joined: Jan 30, 2009
Posts: 92
Location: NL

PostPosted: Sun Nov 17, 2013 5:48 am Reply with quote

Thanks nuken, now I know this is about compatibility.
 
View user's profile Send private message Visit poster's website
Display posts from previous:       
Post new topic   Reply to topic

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


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 4 Hours
 
Forums ©
linear-bunch
linear-bunch