Author |
Message |
beckett
New Member


Joined: Feb 17, 2004
Posts: 13
|
Posted:
Mon Aug 02, 2004 5:13 pm |
|
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. |
|
|
|
 |
Raven
Site Admin/Owner

Joined: Aug 27, 2002
Posts: 17088
|
Posted:
Mon Aug 02, 2004 7:53 pm |
|
|
|
 |
chatserv
Member Emeritus

Joined: May 02, 2003
Posts: 1389
Location: Puerto Rico
|
Posted:
Mon Aug 02, 2004 9:02 pm |
|
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);
}
|
|
|
|
|
 |
beckett

|
Posted:
Tue Aug 03, 2004 6:15 am |
|
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. |
|
|
|
 |
Raven

|
Posted:
Tue Aug 03, 2004 6:46 am |
|
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  |
|
|
|
 |
BobMarion
Former Admin in Good Standing

Joined: Oct 30, 2002
Posts: 1037
Location: RedNeck Land (known as Kentucky)
|
Posted:
Tue Aug 03, 2004 9:06 am |
|
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. |
_________________ Bob Marion
Codito Ergo Sum
Only registered users can see links on this board! Get registered or login! |
|
|
 |
chatserv

|
Posted:
Tue Aug 03, 2004 9:43 am |
|
2.0 offers enhanced simplicity plus it incorporates descriptions for each function so i'd say it's a must have.  |
|
|
|
 |
pdt
New Member


Joined: Oct 13, 2008
Posts: 3
|
Posted:
Mon Oct 13, 2008 3:22 am |
|
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. |
|
|
|
 |
Raven

|
Posted:
Mon Oct 13, 2008 6:12 am |
|
Simple answer - Put it back. It's there for a purpose. |
|
|
|
 |
pdt

|
Posted:
Mon Oct 13, 2008 7:43 pm |
|
Raven wrote: | Simple answer - Put it back. It's there for a purpose. |
I don't understand. Can you construe detail?
Thanks, |
|
|
|
 |
Raven

|
Posted:
Mon Oct 13, 2008 7:55 pm |
|
Why would you remove it? It needs to be there. |
|
|
|
 |
pdt

|
Posted:
Mon Oct 13, 2008 8:15 pm |
|
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 |
|
|
|
 |
Raven

|
Posted:
Mon Oct 13, 2008 10:02 pm |
|
I don't know how else to say this . Put the code back. Removing it is causing your eror. |
|
|
|
 |
|