PHP Web Host - Quality Web Hosting For All PHP Applications Free RavenNuke(tm) Add Ons
  Login or Register
 • Home • Downloads • Your Account • Forums • 

View next topic
View previous topic


Google
 
Web RavenPHPScripts (This Site)
Post new topic   Reply to topic
Author Message
unicornio
Involved
Involved


Joined: Aug 13, 2009
Posts: 432

PostPosted: Wed Jan 20, 2010 6:19 pm Reply with quote Back to top

There is something I dont understand from this Tag Module. Can u please tell me if this is safe to run and what is the purpose of this one. Is it calling another site?

Code:
<?php
//Updated with new abstraction by Unicornio, Enjoy the new Module Nuke Easy Tags 1.0
if (!defined('MODULE_FILE')) {
    die ("You can't access this file directly...");
}

define('INDEX_FILE', true);
$index = 1;
require_once("mainfile.php");


include("header.php");

OpenTable();
echo '<td width=\"100%\"  bgcolor=\"#D1D1D1\">';
 echo "<p>\n";
echo "<center><img border=\"0\" src=\"modules/Nuke_Easy_Tags/images/cloud.jpg\" width=\"457\" height=\"220\"></p>\n";

function unhtmlspecialchars ($string) {
        $string = str_replace ( '&amp;', '&', $string );
        $string = str_replace ( '$', '\'', $string );
        $string = str_replace ( '&quot;', '\"', $string );
        $string = str_replace ( '&lt;', '<', $string );
        $string = str_replace ( '&gt;', '>', $string );
       
        return $string;
}


function otoTag($tag,$link,$en_kucuk=10,$en_buyuk=28) {
//$renk='#'.dechex(rand(1,16)).dechex(rand(16,3)).dechex(rand(3,16)).dechex(rand(1,1)).dechex(rand(3,1)).dechex(rand(1,2));
$renk='#'.dechex(rand(1,16)).dechex(rand(1,16)).dechex(rand(0,16)).dechex(rand(0,16)).dechex(rand(0,16)).dechex(rand(0,16));
$boy=rand($en_kucuk,$en_buyuk);
echo '<a href="'.$link.'"
style="font-size: ' . $boy . 'px;color:'.$renk.'"
tag="' . $tag . '">' . $tag . '</a> ';

}


$sorgu=$db->sql_query("SELECT cid, tag FROM ".$prefix."_tags ORDER BY rand() limit 600");
while ($sonuc=$db->sql_fetchrow($sorgu))
     {
echo otoTag($sonuc[tag],'modules.php?name=Tags&amp;op=list&amp;tag='.$sonuc[tag]);
}
 
   
$sorgu=$db->sql_query("SELECT word_id, word_text FROM ".$prefix."_bbsearch_wordlist order by RAND() limit 300");
while ($sonuc=$db->sql_fetchrow($sorgu))
     {
echo otoTag($sonuc[word_text],'forums.html&file=tag&k_id='.$sonuc[word_id]);
}

$sorgu=$db->sql_query("SELECT id_subcatg,subcatg FROM ".$prefix."_ads_subcatg order by RAND() limit 200");
while ($sonuc=$db->sql_fetchrow($sorgu))
     {
echo otoTag($sonuc[subcatg],'modules.php?name=Tags&amp;op=list&amp;tag='.$sonuc[subcatg]);
}
$sorgu=$db->sql_query("SELECT aid,title FROM ".$prefix."_cpg_albums order by RAND() limit 200");
while ($sonuc=$db->sql_fetchrow($sorgu))
     {
echo otoTag($sonuc[title],'modules.php?name=Tags&amp;op=list&amp;tag='.$sonuc[title]);
}

$sorgu=$db->sql_query("SELECT categ_id,categ_title FROM ".$prefix."_multiheadlines_categ order by RAND() limit 200");
while ($sonuc=$db->sql_fetchrow($sorgu))
     {
echo otoTag($sonuc[categ_title],'modules.php?name=Tags&amp;op=list&amp;tag='.$sonuc[categ_title]);
}

$sorgu=$db->sql_query("SELECT id,categoria FROM ".$prefix."_nuketube_categorias order by RAND() limit 200");
while ($sonuc=$db->sql_fetchrow($sorgu))
     {
echo otoTag($sonuc[categoria],'modules.php?name=Tags&amp;op=list&amp;tag='.$sonuc[categoria]);
}


 
 
CloseTable();
include("footer.php");
?>


Last edited by unicornio on Thu Jan 21, 2010 1:56 pm; edited 2 times in total
View user's profile Send private message
Raven
Site Admin/Owner


Joined: Aug 27, 2002
Posts: 16987
Location: Kansas

PostPosted: Wed Jan 20, 2010 8:47 pm Reply with quote Back to top

What part don't you understand? What makes you think it's calling another site? What is causing you to ask this in the Security Issues forum?

The comments at the top state the (supposed) purpose:
// Create subfolder in 'modules' folder of PHP-Nuke root directory and place generated file in it
// e.g. 'PhpNuke-root-dir\modules\your-module\index.php'


I am not trying to be a smart-a** - really. I just don't understand how you obtained a script that stated the purpose and then you ask for outside verification if it's safe to run. Did you d/l it from a reliable site? Does the site have a forum that discusses the script?
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
unicornio
Involved
Involved


Joined: Aug 13, 2009
Posts: 432

PostPosted: Thu Jan 21, 2010 2:44 am Reply with quote Back to top

I ask you this in the secutity forum because of the php warning error I get from mysql_fetch_array. If you run the script u will notice about spanish tags so I was thinking of other things but actually it is not my script. I am helping a friend of mine and I wanted to be sure everything is ok. I am not so familiar with Tags script. IF you think this post should be moved you have the right to do it. Thanks in advance for your reply.
View user's profile Send private message
montego
Site Admin


Joined: Aug 29, 2004
Posts: 9136
Location: Arizona

PostPosted: Thu Jan 21, 2010 7:33 am Reply with quote Back to top

unicornio, what is the exact error you are receiving? (remove any path information before you post)
View user's profile Send private message Visit poster's website
unicornio
Involved
Involved


Joined: Aug 13, 2009
Posts: 432

PostPosted: Thu Jan 21, 2010 10:09 am Reply with quote Back to top

The script has been updated by me with new abstraction codes and it is working find. Create your own folder and activate the module. Enjoy. Wink
View user's profile Send private message
montego
Site Admin


Joined: Aug 29, 2004
Posts: 9136
Location: Arizona

PostPosted: Sat Jan 23, 2010 2:28 pm Reply with quote Back to top

ah, ok, glad you got it figured out.
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
Forums ©
 

All logos and trademarks in this site are property of their respective owner.
The comments are property of their posters, all the rest © 2002-2011 by Raven

You can syndicate our news using the file xml

CSE HTML Validator Helped Clean up This Page! [Valid RSS] valid RSS 2.0 Valid robots.txt Stop Spam Harvesters, Join Project Honey Pot

Website engines core code is © copyright by PHP-Nuke but has been heavily patched and modified by myself and others.
PHP-Nuke is a free software released under the GNU/GPL.


:: fisubice phpbb2 style by Daz :: PHP-Nuke theme by www.nukemods.com ::
:: fisubice Theme Modified by the RavenNuke™ Team ::

:: W3C CSS Compliance Validation :: W3C HTML 4.01 Transitional Compliance Validation ::

zerosum