Posted: Fri Dec 21, 2007 2:02 pm Post subject: Custom Head question
I already have a custom_head:
<?php
// Custom head section to include the ESCal CSS
$CSS=1; require ("calendar/calendar.php");
// Start Who is where / Début Qui est ou
$content = "";
global $user, $cookie, $prefix, $user_prefix, $dbi, $anonymous,$name,$REQUEST_URI;
cookiedecode($user);
$ip = getenv("REMOTE_ADDR");
$wiw_username = $cookie[1];
if (!isset($wiw_username)) {
$wiw_username = "$ip";
$guest = 1;
}
$past = time()-900;
sql_query("DELETE FROM $prefix"._whoiswhere." WHERE time < $past", $dbi);
$result = sql_query("SELECT time FROM $prefix"._whoiswhere." WHERE username='$wiw_username'", $dbi);
$ctime = time();
if ($row = sql_fetch_array($result, $dbi)) {
sql_query("UPDATE $prefix"._whoiswhere." SET username='$wiw_username', time='$ctime', host_addr='$ip', guest='$guest',module='$name',url='$REQUEST_URI' WHERE username='$wiw_username'", $dbi);
} else {
sql_query("INSERT INTO $prefix"._whoiswhere." (username, time, host_addr, guest,module,url) VALUES ('$wiw_username', '$ctime', '$ip', '$guest','$name','$REQUEST_URI')", $dbi);
}
// End Who is where / Fin Qui est ou
?>
Please tell me what should I do with the custom_head included with my feed Nukefeed?
if(!defined('ADMIN_FILE') and !defined('MODULE_FILE'))
{
header('Location: ../../index.php');
die();
}
Posted: Fri Dec 21, 2007 3:25 pm Post subject: Re: Custom Head question
Thank you.. I am all set with that now. This is just wonderful! Exactly what I needed. Now one more question, please...
I have a module web links and module web links2.
I copied the web links in content area and recreated it with adding the "2" I changed it ...seems fine. Except when I go to create as new feed it doesn't come up in my choices. What may I have missed? Do you have any thoughts?
Posted: Fri Dec 21, 2007 3:54 pm Post subject: Re: Custom Head question
ok. I have a much much bigger problem noe. Everything looked great. I was in admin. and activated the feed for user. Now I get every link in webpage redirected to http://www.ourfrugalwinningcircle.net/index.php
Posted: Fri Dec 21, 2007 11:03 pm Post subject: Re: Custom Head question
Ok I deleted all FEED in cpanel. Restored Database lost a weeks worth of work. I put Feed back into system. All worked great. I then put block on left side. Block tripped whole system again. Now back to same problem bad redirect. Any thoughts? (beside not to include block... lol
Posted: Fri Dec 21, 2007 11:36 pm Post subject: Re: Custom Head question
<?php
// Custom head section to include the ESCal CSS
$CSS=1; require ("calendar/calendar.php");
// Start Who is where / Début Qui est ou
$content = "";
global $user, $cookie, $prefix, $user_prefix, $dbi, $anonymous,$name,$REQUEST_URI;
cookiedecode($user);
$ip = getenv("REMOTE_ADDR");
$wiw_username = $cookie[1];
if (!isset($wiw_username)) {
$wiw_username = "$ip";
$guest = 1;
}
$past = time()-900;
sql_query("DELETE FROM $prefix"._whoiswhere." WHERE time < $past", $dbi);
$result = sql_query("SELECT time FROM $prefix"._whoiswhere." WHERE username='$wiw_username'", $dbi);
$ctime = time();
if ($row = sql_fetch_array($result, $dbi)) {
sql_query("UPDATE $prefix"._whoiswhere." SET username='$wiw_username', time='$ctime', host_addr='$ip', guest='$guest',module='$name',url='$REQUEST_URI' WHERE username='$wiw_username'", $dbi);
} else {
sql_query("INSERT INTO $prefix"._whoiswhere." (username, time, host_addr, guest,module,url) VALUES ('$wiw_username', '$ctime', '$ip', '$guest','$name','$REQUEST_URI')", $dbi);
}
// End Who is where / Fin Qui est ou
?>
I took out includes to see if that would make it work. I have not added it yet:
$name = $_GET['name'];
$name = trim($name);
if (isset($name)) {
if (eregi("http\:\/\/", $name)) {
die("Hi and Bye");
See, I had wonderful help from a Nuke guy before. He helped me customize my site. I am afraid to use patch, because there is so much customized I don't want to hurt programming. I do see there are a few things labled "update"
Anyways, the define('MODULE_FILE', true); was in there...
Last edited by SharisseB on Sun Dec 23, 2007 7:13 am; edited 1 time in total
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 cannot attach files in this forum You cannot download files in this forum