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)
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.
Author Message
beckett
New Member
New Member


Joined: Feb 17, 2004
Posts: 13

PostPosted: Mon Aug 02, 2004 5:13 pm Reply with quote Back to top

I am using Ravennuke v7.3 and just installed OSC2Nuke. Initially I received this error when I attempt to go into the Admin section of OSC2Nuke:
Fatal error: Call to undefined function: stripos_clone() in /home/online/public_html/modules.php on line 31

When I take out line 31 which is :if (stripos_clone($modstring,"&user=") AND ($name=="Private_Messages" || $name=="Forums" || $name=="Members_List")) header("Location: index.php");., I am able to enter the Admin section and all appears to be working. Will taking out this line have any adverse affects I am not aware of in the future on phpnuke or other modules?? Thanks.
View user's profile Send private message
Raven
Site Admin/Owner


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

PostPosted: Mon Aug 02, 2004 7:53 pm Reply with quote Back to top

See this post for some background
Only registered users can see links on this board!
Get registered or login to the forums!
. I'm contacting Chat to ask him to chime in here.
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
chatserv
The Mouse Is Extension Of Arm


Joined: May 02, 2003
Posts: 1396
Location: Puerto Rico

PostPosted: Mon Aug 02, 2004 9:02 pm Reply with quote Back to top

Your mainfile.php is missing the function, simply add it to mainfile.php right before the ending ?>

Code:
function stripos_clone($haystack, $needle, $offset=0) {
  return strpos(strtoupper($haystack), strtoupper($needle), $offset);
}
View user's profile Send private message Visit poster's website
beckett
New Member
New Member


Joined: Feb 17, 2004
Posts: 13

PostPosted: Tue Aug 03, 2004 6:15 am Reply with quote Back to top

Followed your instruction and no longer get the error. Thanks for the help and your efforts (and time) in making RavenNuke v7.3.

A final question. RavenNuke installs with Sentinel v1.2 and like the simplicity of this version. Is there a necessity for me to upgrade at this time? Does this version continue to offer adequate protection? Thanks again.
View user's profile Send private message
Raven
Site Admin/Owner


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

PostPosted: Tue Aug 03, 2004 6:46 am Reply with quote Back to top

v2.0 offers a very extensive configuration model. While v1.2 does offer adequate protection today, it will not be maintained after v2.0 is released. I would highly recommend that you upgrade once the final version is released. There will be a very detailed manual that will be released also, so that all things hidden shall be made manifest Laughing
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
BobMarion
Former Admin in Good Standing


Joined: Oct 30, 2002
Posts: 1043
Location: RedNeck Land (known as Kentucky)

PostPosted: Tue Aug 03, 2004 9:06 am Reply with quote Back to top

Once the final of 2.0.0 is release all older versions will disappear from NukeSrcipts.net as they will no longer be supported. They have remained in my downloads section only because the 2.0.0 so far have been RC's and not a final.
View user's profile Send private message Send e-mail Visit poster's website
chatserv
The Mouse Is Extension Of Arm


Joined: May 02, 2003
Posts: 1396
Location: Puerto Rico

PostPosted: Tue Aug 03, 2004 9:43 am Reply with quote Back to top

2.0 offers enhanced simplicity plus it incorporates descriptions for each function so i'd say it's a must have. Wink
View user's profile Send private message Visit poster's website
pdt
New Member
New Member


Joined: Oct 13, 2008
Posts: 3

PostPosted: Mon Oct 13, 2008 3:22 am Reply with quote Back to top

Help me!

Fatal error: Call to undefined function stripos_clone() in C:\vntpwebsite\ketqua.vn\mainfile.php on line 11

When I take out line 11 which is :

if (stripos_clone($queryString,'%20union%20') OR stripos_clone($queryString,'/*') OR stripos_clone($queryString,'*/union/*') OR stripos_clone($queryString,'c2nyaxb0')) {
header("Location: index.php");
die();
}

Thanks.
View user's profile Send private message
Raven
Site Admin/Owner


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

PostPosted: Mon Oct 13, 2008 6:12 am Reply with quote Back to top

Simple answer - Put it back. It's there for a purpose.
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
pdt
New Member
New Member


Joined: Oct 13, 2008
Posts: 3

PostPosted: Mon Oct 13, 2008 7:43 pm Reply with quote Back to top

Raven wrote:
Simple answer - Put it back. It's there for a purpose.


I don't understand. Can you construe detail?

Thanks,
View user's profile Send private message
Raven
Site Admin/Owner


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

PostPosted: Mon Oct 13, 2008 7:55 pm Reply with quote Back to top

Why would you remove it? It needs to be there.
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
pdt
New Member
New Member


Joined: Oct 13, 2008
Posts: 3

PostPosted: Mon Oct 13, 2008 8:15 pm Reply with quote Back to top

After remove it, error displayed

sql_query($sql_f); $num_f = $db->sql_numrows($result_f); if ($num_f != 0) { echo "
" ."" ."
" ." "._BBFORUM_NEWTOPICS_IN."
" .""; while ($row_f = $db->sql_fetchrow($result_f)) { $topic_last_post_id = $row_f[topic_last_post_id]; $topic_title = $row_f[topic_title]; $sql_f2 = "SELECT FROM_UNIXTIME(post_time,'%H:%i - %d.%m.%Y') as post_time FROM ".$prefix."_bbposts where post_id='$topic_last_post_id'"; $result_f2 = $db->sql_query($sql_f2); $row_f2 = $db->sql_fetchrow($result_f2); $post_time = $row_f2[post_time]; $topic_title = preg_replace("!(\[(.*?)\])!ise","", $topic_title); $topic_title = substr($topic_title,0,100); $sql_f3 = "SELECT post_text FROM ".$prefix."_bbposts_text where post_id='$topic_last_post_id'"; $result_f3 = $db->sql_query($sql_f3); $row_f3 = $db->sql_fetchrow($result_f3); $post_text_f = $row_f3[post_text]; $post_text_f = preg_replace("!(\[(.*?)\])!ise","", $post_text_f); $post_text_f = substr($post_text_f,0,100); $arrow = ""; $title_f = "$topic_title"; $post_time_f = "$post_time"; echo ""; } echo "
$arrow $title_f $post_time_f

"; } } else { @chmod("".$themepath."includes/data/news_start.php", 0777); @$file = fopen("".$themepath."includes/data/news_start.php", "w"); $content = "\n"; @$writefile = fwrite($file, $content); } } function removecrlf($str) { return strtr($str, "\015\012", ' '); } function stripos_clone($haystack, $needle, $offset=0) { return strpos(strtoupper($haystack), strtoupper($needle), $offset); } if ($disable_site) { if (!eregi("admin.php", $_SERVER['SCRIPT_NAME']) && !is_admin($admin) && $name!= "Your_Account") { include("header.php"); OpenTable(); echo"
"._CLOSESITE."
\n$disable_message\n"; CloseTable(); include("footer.php"); die(); } } ?>
Fatal error: Call to undefined function stripos_clone() in C:\vntpwebsite\ketqua.vn\mainfile.php on line 510
View user's profile Send private message
Raven
Site Admin/Owner


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

PostPosted: Mon Oct 13, 2008 10:02 pm Reply with quote Back to top

I don't know how else to say this Wink. Put the code back. Removing it is causing your eror.
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
Display posts from previous:       
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.

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