- Readme First! - Read and follow the rules, otherwise your posts will be closed
There are currently, 73 guest(s) and 0 member(s) that are online. You are Anonymous user. You can register for free by clicking here
Nuke Cops :: View topic - GT and Contact Plus [ ]
Author
Message
mikem
Theme Guru
Joined: Jan 13, 2003
Posts: 1582
Location: Corn fields of Indiana
Posted:
Mon Sep 08, 2003 6:56 am
Mesum said:
Quote:
Ok smart a**, try to get yourself some glasses before pick on someone.
Please try to control your language, and name calling.
IACOJ is correct in your removing of the footer copyright by the theme Authors.
Code:
:: subSystem phpbb2 style by azure :: PHP-Nuke theme by www.nukemods.com ::
That is the original Footer copyright info released in that theme with the info that was in the footer. I know because I made the Nuke theme
Please be a little more careful before you jump the gun.
It would also be nice if you could edit your post above
mikem
_________________Getting Started | My Projects
laurel2k
Nuke Soldier
Joined: Aug 21, 2003
Posts: 14
Posted:
Mon Sep 08, 2003 7:51 pm
Mesum,
I tried your index.php file but I am still getting the fatal error.
Thanks,
Jorge
www.diecast-source.com
Mesum
Support Staff
Joined: Mar 11, 2003
Posts: 842
Location: Chicago
Posted:
Mon Sep 08, 2003 8:07 pm
kjcdude
Captain
Joined: Jun 10, 2003
Posts: 441
Location: Southern California
Posted:
Sat Sep 13, 2003 2:44 pm
kjcdude
Captain
Joined: Jun 10, 2003
Posts: 441
Location: Southern California
Posted:
Sat Sep 13, 2003 2:53 pm
kjcdude
Captain
Joined: Jun 10, 2003
Posts: 441
Location: Southern California
Posted:
Sat Sep 13, 2003 2:58 pm
kjcdude
Captain
Joined: Jun 10, 2003
Posts: 441
Location: Southern California
Posted:
Tue Sep 16, 2003 7:00 pm
My friend worked on it for a while and came up with the following
Code:
<?php
/************************************************************************/
/* PHP-NUKE: Web Portal System */
/* =========================== */
/* */
/* Copyright (c) 2002 by Francisco Burzi */
/* http://phpnuke.org */
/* */
/* Contact Plus V2.2 for Nuke 6.5 */
/* Copyright (c) 2002 by Shawn Archer */
/* http://www.NukeStyles.com */
/* */
/* 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. */
/************************************************************************/
if (!eregi("modules.php", $_SERVER['PHP_SELF'])) {
die ("You can't access this file directly...");
}
require_once("mainfile.php");
$module_name = basename(dirname(__FILE__));
get_lang($module_name);
$pagetitle = "- "._CONTACTUS."";
$index = 1;
require_once("db/db.php");
function ns_info() {
global $module_name, $sitename, $prefix, $dbi;
$result = sql_query("select address from ".$prefix."_ns_contact_add", $dbi);
list($address) = sql_fetch_array($result, $dbi);
$address = FixQuotes(nl2br($address));
echo "<table border=\"0\" cellpadding=\"3\" cellspacing=\"0\" align=\"center\">";
echo "<tr><td align=\"left\">";
echo "$address";
echo "</td></tr></table><br>";
}
function ns_phone() {
global $module_name, $sitename, $prefix, $dbi;
echo "<table border=\"0\" cellpadding=\"1\" cellspacing=\"0\" align=\"center\">";
$result = sql_query("select pid, phone_name, phone_num from ".$prefix."_ns_contact_phone order by phone_name", $dbi);
while(list($pid, $phone_name, $phone_num) = sql_fetch_array($result, $dbi)) {
echo "<tr><td align=\"right\">";
echo "<font class=\"content\">$phone_name:</td>";
echo "<td align=\"left\">$phone_num</td></tr>";
}
echo "</table><br><br>";
}
function ns_form() {
global $module_name, $sitename, $prefix, $dbi;
include("header.php");
OpenTable();
echo "<center><font class=\"title\">"._CONTACTUS."</font></center>";
CloseTable();
OpenTable();
$result_s = sql_query("select show_add from ".$prefix."_ns_contact_show", $dbi);
list($show_add) = sql_fetch_array($result_s, $dbi);
if ($show_add == 1) {
echo "<br><br><center><font class=\"title\"><u>"._ADDRESSINFO."</u></font></center><br>";
ns_info();
echo "<hr>";
}
$result_p = sql_query("SELECT * FROM ".$prefix."_ns_contact_phone", $dbi);
$num = sql_num_rows($result_p, $dbi);
if ($num > 0) {
echo "<br><br><center><font class=\"title\"><u>"._PHONEINFO."</u></font></center><br>";
ns_phone();
echo "<hr>";
}
echo "<br><center><font class=\"title\">"._FORMHEADER." $sitename</font></center><br><br>";
if (is_user($user)) {
$result_ui = sql_query("select name, uname, email from ".$user_prefix."_users where uname='$cookie[1]'", $dbi);
list($yn, $yun, $ye) = sql_fetch_row($result_ui, $dbi);}
if ($yn != "") { $ns_un = $yn; } else { $ns_un = $yun; }
echo "<form action=\"modules.php?name=$module_name\" method=\"post\"";
echo "name=\"contact_plus\">";
echo "<table border=\"0\" cellpadding=\"5\" cellspacing=\"0\" align=\"center\">";
echo "<tr><td align=\"left\" valign=\"middle\"><font class=\"content\"><b>"._YOURNAME.":</b></font> ";
echo "<font class=\"tiny\">("._OPTIONAL.")</font><br>";
echo "<input name=\"cname\" size=\"35\" value=\"$ns_un\"></td></tr>";
echo "<tr><td align=\"left\" valign=\"middle\">";
echo "<font class=\"content\"><b>"._YOUREMAIL.":</b></font><br>";
echo "<input name=\"from\" size=\"35\" value=\"$ye\"></td></tr>";
echo "<tr><td align=\"left\" valign=\"middle\">";
echo "<font class=\"content\"><b>"._PLEASESELECT.":</b></font><br>";
echo "<select name=\"dpid\">";
echo "<option value=\"\" selected>---------------------------------";
echo "<option value=\"\">";
require_once("db/db.php");
if(!isset($db)) { $db= new sql_db;}
$result = $db->sql_query("select did, dept_name, dept_email from ".$prefix."_ns_contact_dept order by dept_name");
while ($row = $db->sql_fetchrow($result)) {
$did = $row[did];
$dept_name = $row[dept_name];
$dept_email = $row[dept_email];
echo "<option value=\"$did\">$dept_name";
}
echo "<option value=\"\">";
echo "</select></td></tr>";
echo "<tr><td align=\"left\" valign=\"middle\">";
echo "<font class=\"content\"><b>"._YOURMESSAGE.":</b></font><br>";
echo "<textarea cols=\"55\" name=\"message\" rows=\"12\" ></textarea></td></tr>";
echo "<tr><td colspan=\"2\" align=\"center\" valign=\"middle\">";
echo "<input type=\"hidden\" name=\"op\" value=\"ns_send\">";
echo "<input type=\"submit\" name=\"submit\" value=\""._SEND."\">";
echo " <input type=\"reset\" value=\""._CLEAR."\">";
echo "</td></tr></table></form>";
echo "<br>";
Closetable();
include("footer.php");
}
function ns_send($dpid, $cname, $from, $email, $message) {
global $module_name, $sitename, $prefix, $dbi;
include("header.php");
if(ereg("^[_\.0-9a-z-]+@([0-9a-z][0-9a-z-]+\.)+[a-z]{2,6}$",$from)) {
} else {
OpenTable();
echo "<center><font class=\"title\">"._CONTACTUS."</font></center>";
CloseTable();
OpenTable();
echo"<br><center><font class=\"title\">"._INVALIDEMAIL.":<br><br>";
echo"<font color=\"#CC0000\">$from</font><br><br>"._INVALIDEMAIL2."</font>";
echo"<br><br><br><font class=\"title\">"._PLEASEGO."</font>";
echo"<br><br>";
echo"[ <a href=\"javascript:history.go(-1)\">"._BACK."</a> ]</center><br>";
CloseTable();
include ("footer.php");
exit;
}
if ($dpid == "") {
OpenTable();
echo "<center><font class=\"title\">"._CONTACTUS."</font></center>";
CloseTable();
OpenTable();
echo"<br><center><font class=\"title\">"._SELECTDEPARTMENT."<br><br>";
echo""._PLEASEGO3."</font>";
echo"<br><br>";
echo"[ <a href=\"javascript:history.go(-1)\">"._BACK."</a> ]</center><br>";
CloseTable();
include ("footer.php");
exit;
}
if ($message == "") {
OpenTable();
echo "<center><font class=\"title\">"._CONTACTUS."</font></center>";
CloseTable();
OpenTable();
echo"<br><center><font class=\"title\">"._NOMESSAGE."<br><br>";
echo""._PLEASEGO2."</font>";
echo"<br><br>";
echo"[ <a href=\"javascript:history.go(-1)\">"._BACK."</a> ]</center><br>";
CloseTable();
include ("footer.php");
exit;
}
$result = sql_query("select dept_name, dept_email from ".$prefix."_ns_contact_dept where did='$dpid'", $dbi);
list($dept_name, $dept_email)=sql_fetch_row($result, $dbi);
$department = $dept_name;
$department = stripslashes(trim($department));
$subject = $department;
$from = strip_tags(trim($from));
$message = stripslashes(trim($message));
$header = ""._FROM.": "._CONTACTFORM." - $cname <$from>\r\n";
$header .= "\n";
$header .= ""._VISITOR.": $cname <$from>\r\n\n";
$header .= ""._TODEPARTMENT.": $department\r\n\n";
$header .= ""._MESSAGE.":\r\n";
$header .= "\n==============================================================";
@$send=mail($dept_email,$subject,$message,$header);
if ($send == 1) {
OpenTable();
echo "<center><font class=\"title\">"._CONTACTUS."</font></center>";
CloseTable();
OpenTable();
echo "<br>";
echo "<br><div align=\"center\"><font class=\"title\">"._THANKYOUFOR." $sitename</font>";
echo "<br><br>"._EMAILSENT."<br>"._GETBACK."</div><br><br>";
echo "<center>[ <a href=\"index.php\">"._HOME."</a> ] - ";
echo "[ <a href=\"modules.php?name=$module_name\">"._CONTACTFORM."</a> ]</center><br>";
echo "<br>";
CloseTable();
include ("footer.php");
} else {
OpenTable();
echo "<center><font class=\"title\">"._CONTACTUS."</font></center>";
CloseTable();
OpenTable();
echo"<center><font class=\"title\">"._ERROR2."</font>";
echo"<br>"._TRYAGAIN."<br>";
echo"[ <a href=\"modules.php?name=Contact\">"._BACK."</a> ]</center>";
CloseTable();
include ("footer.php");
}
exit();
include("footer.php");
}
switch ($op) {
case "ns_send":
ns_send($dpid, $cname, $from, $email, $message);
break;
default:
ns_form();
break;
}
?>
All it does is outputs a different error and displays the box to type in.
http://abadox.biz/wildcats/modules.php?name=Contact
_________________Diablo Heat | The OC Sucks [b]Hot or Not[/b] | TheOCSucks.com The OC Sucks
kjcdude
Captain
Joined: Jun 10, 2003
Posts: 441
Location: Southern California
Posted:
Fri Sep 26, 2003 10:55 pm
Goto page Previous 1 , 2
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