Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> NukeSentinel(tm)
Author Message
sonicman
Regular
Regular



Joined: Apr 17, 2005
Posts: 64

PostPosted: Mon Jul 18, 2005 6:44 pm Reply with quote

Hello I have nuke 7.5, I installed the patch for 7.5 and nuke sentinel, all my modules seem to work fine except for my advertising module which never loads up and my contact us module, when you enter in your name, email, and comments then hit enter it says error enter your email address, I tried it a few more times and nothing, [ Only registered users can see links on this board! Get registered or login! ] if you would like to see what I am talking about, the only thing that I seen in the patch or sentinel that might affect this is the modules.php, I will look and see if there is any difference between the old file and new file, what could be wrong,,,,

Thanks
 
View user's profile Send private message
sonicman







PostPosted: Mon Jul 18, 2005 7:08 pm Reply with quote

Just an update I got the feedback module working I looked at the old index.php from the old files before I installed the patch and the only thing I saw different was an else statement,,,,,I commented that out and it works, good thing I backed up my site the code is below,,,, Just wondering was that else statement there for a reason????

Code:
<?php


/************************************************************************/
/* PHP-NUKE: Web Portal System                                          */
/* ===========================                                          */
/*                                                                      */
/* Copyright (c) 2002 by Francisco Burzi                                */
/* http://phpnuke.org                                                   */
/*                                                                      */
/* Based on php Addon Feedback 1.0                                      */
/* Copyright (c) 2001 by Jack Kozbial                                   */
/* http://www.InternetIntl.com                                          */
/* [ Only registered users can see links on this board! Get registered or login! ]                                                */
/*                                                                      */
/* This program is free software. You can redistribute it and/or modify */
/* it under the terms of the GNU General Public License as published by */
/* the Free Software Foundation; either version 2 of the License.       */
/************************************************************************/
/*         Additional security & Abstraction layer conversion           */
/*                           2003 chatserv                              */
/*      http://www.nukefixes.com -- http://www.nukeresources.com        */
/************************************************************************/

if ( !defined('MODULE_FILE') )
{
   die("You can't access this file directly...");
}

require_once("mainfile.php");
$module_name = basename(dirname(__FILE__));
get_lang($module_name);

/**********************************/
/* Configuration                  */
/*                                */
/* You can change this:           */
/* $index = 0; (right side off)   */
/**********************************/
$index = 1;
$subject = "$sitename "._FEEDBACK."";
/**********************************/

include("header.php");
$cookie[0] = intval($cookie[0]);
if ($cookie[1] != "") {
   $result = $db->sql_query("SELECT name, username, user_email FROM ".$user_prefix."_users WHERE user_id='".$cookie[0]."'");
   $row = $db->sql_fetchrow($result);
   $db->sql_freeresult($result);
      if ($row['name'] != "") {
         $sender_name = $row['name'];
      } else {
         $sender_name = $row['username'];
      }
   $sender_email = $row['user_email'];
}

//+++++++++++++++++++++++++++++++++++++++++
// This is what I commented out
//else {
   //$sender_email = "";
//}
//+++++++++++++++++++++++++++++++++++++++++


$form_block = "
    <center><font class=\"title\"><b>$sitename: "._FEEDBACKTITLE."</b></font>
    <br><br><font class=\"content\">"._FEEDBACKNOTE."</font>
    <FORM METHOD=\"post\" ACTION=\"modules.php?name=$module_name\">
    <P><strong>"._YOURNAME.":</strong><br>
    <INPUT type=\"text\" NAME=\"sender_name\" VALUE=\"$sender_name\" SIZE=30></p>
    <P><strong>"._YOUREMAIL.":</strong><br>
    <INPUT type=\"text\" NAME=\"sender_email\" VALUE=\"$sender_email\" SIZE=30></p>
    <P><strong>"._MESSAGE.":</strong><br>
    <TEXTAREA NAME=\"message\" COLS=30 ROWS=5 WRAP=virtual>$message</TEXTAREA></p>
    <INPUT type=\"hidden\" name=\"opi\" value=\"ds\">
    <P><INPUT TYPE=\"submit\" NAME=\"submit\" VALUE=\""._SEND."\"></p>
    </FORM></center>
";

OpenTable();
if ($opi != "ds") {
    echo "$form_block";
} elseif ($opi == "ds") {
    if ($sender_name == "") {
   $name_err = "<center><font class=\"option\"><b><i>"._FBENTERNAME."</i></b></font></center><br>";
   $send = "no";
    }
    if ($sender_email == "") {
   $email_err = "<center><font class=\"option\"><b><i>"._FBENTEREMAIL."</i></b></font></center><br>";
   $send = "no";
    }
    if ($message == "") {
       $message_err = "<center><font class=\"option\"><b><i>"._FBENTERMESSAGE."</i></b></font></center><br>";
   $send = "no";
    }
    if ($send != "no") {
   $sender_name = removecrlf($sender_name);
   $sender_email = removecrlf($sender_email);
   $msg = "$sitename\n\n";
   $msg .= ""._SENDERNAME.": $sender_name\n";
   $msg .= ""._SENDEREMAIL.": $sender_email\n";
   $msg .= ""._MESSAGE.": $message\n\n";
   $to = $adminmail;
   $mailheaders = "From: $sender_name <$sender_email>\n";
   $mailheaders .= "Reply-To: $sender_email\n\n";
   mail($to, $subject, $msg, $mailheaders);
   echo "<P><center>"._FBMAILSENT."</center></p>";
   echo "<P><center>"._FBTHANKSFORCONTACT."</center></p>";
    } elseif ($send == "no") {
   OpenTable2();
   echo "$name_err";
   echo "$email_err";
   echo "$message_err";
   CloseTable2();
   echo "<br><br>";
   echo "$form_block"; 
    }
}

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

?>
 
lifesbane
New Member
New Member



Joined: Jul 16, 2005
Posts: 5

PostPosted: Wed Jul 20, 2005 5:07 am Reply with quote

it's nothing to be concerned about. What it did was grab the user email from the database if the user offered feedback but didnt enclose thier email in the space provided or erased the account email that is there by default... as far as I know it was only intended to give admins the ability to follow negative or malicious feeback.
 
View user's profile Send private message
sonicman







PostPosted: Fri Jul 22, 2005 7:26 pm Reply with quote

Well anyways I think I might have found my problem I hope, I uploaded my old banners.php file and the advertising module worked, I then uploaded the same file from the patch and it stopped working again so now I will have to see what the issue is...
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> NukeSentinel(tm)

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
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©