ltwCalendar
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Codewalkers ForumsProjectsltwCalendar

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Codewalkers Forums Sponsor:
You don't need a fax machine to get faxes. Get a fax-to-email fax number from CallWave. Try it free.
  #1  
Old February 2nd, 2007, 09:13 PM
jtjohnston jtjohnston is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Quebec, Canada
Posts: 4 jtjohnston User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
include security

I'm sure this is a security protocol problem I can switch off. My installation works:
http://www.stfrancisdistrict.qc.ca/calendar/calendar.php
But when I try to include it on:
http://www.stfrancisdistrict.qc.ca/index.html nothing happens.
include("/home/***/calendar/calendar.php");
Where is the switch?

Reply With Quote
  #2  
Old February 2nd, 2007, 09:40 PM
jtjohnston jtjohnston is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Quebec, Canada
Posts: 4 jtjohnston User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
RE: include security

To follow it up, I can get the calendar to display, but any other PHP I try to run after it does not display. It is as if your code kills any further instance of PHP.
http://www.stfrancisdistrict.qc.ca/

If I include something before, I get these errors in Apache.

[Fri Feb 2 17:09:21 2007] [error] PHP Warning: Cannot modify header information - headers already sent by (output started at /home/***/public_html/calendar/items.php:24) in /home/***/public_html/calendar/private/ltwdisplaymonth.php on line 142
[Fri Feb 2 17:09:21 2007] [error] PHP Warning: Cannot modify header information - headers already sent by (output started at /home/***/public_html/calendar/items.php:24) in /home/***/public_html/calendar/private/ltwdisplaymonth.php on line 143
[Fri Feb 2 17:09:21 2007] [error] PHP Warning: Cannot modify header information - headers already sent by (output started at /home/***/public_html/calendar/items.php:24) in /home/***/public_html/calendar/private/ltw_header.php on line 9
[Fri Feb 2 17:09:21 2007] [error] PHP Warning: Cannot modify header information - headers already sent by (output started at /home/***/public_html/calendar/items.php:24) in /home/***/public_html/calendar/private/ltw_header.php on line 10

I created item.php to do this:

<?php

$myconnection = mysql_connect($server,$user,$pass);
mysql_select_db($db,$myconnection);

$now = strtotime('yesterday');
$future = strtotime('+ 30 days');

$sql = "select * from `jtjohnston_stfrancis`.`events` order by `event_date`";
#echo $sql."<br>".$now."<br>".$future;

$news = mysql_query($sql) or die(print mysql_error());

while ($mydata = mysql_fetch_object($news))
{
$updated = strtotime($mydata->event_date);
if (($updated >= $now) and ($updated <= $future))
{
echo "<b>$mydata->name</b> (".date("l, F j, Y", strtotime($mydata->event_date)).")<br>.$mydata->event_date ($mydata->start_time))n<blockquote>".nl2br($mydata->description)."n<br>$mydata->location</blockquote><hr size=1>n";
}
}
mysql_close($myconnection);
?>

Reply With Quote
  #3  
Old February 2nd, 2007, 10:00 PM
jtjohnston jtjohnston is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Quebec, Canada
Posts: 4 jtjohnston User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
RE: include security

I figure there is a die command in here. I have fixed the header problem by commenting yours out.
I don't want to comment out die commands, unless I have to.

Reply With Quote
  #4  
Old February 2nd, 2007, 11:03 PM
jtjohnston jtjohnston is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Quebec, Canada
Posts: 4 jtjohnston User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
RE: include security

Problem fixed. it was your html. This line in ltwfooter.php must finish with "-->"

<!-- Close the table cell & row it is in -->

Reply With Quote
  #5  
Old February 3rd, 2007, 08:18 AM
Frazz Frazz is offline
The Frazzman
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Melbourne, Victoria, Australia
Posts: 126 Frazz User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 6 h 54 m 58 sec
Reputation Power: 2
RE: include security

WHAT IS GOING ON HERE?!

*CONFUSED FACE*

Reply With Quote
Reply

Viewing: Codewalkers ForumsProjectsltwCalendar > include security


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

 Free IT White Papers!
 
Accelerating Trading Partner Performance
One in five. That's how many partner transactions have at least one error. That is an amazing statistic, particularly given the extraordinary leaps in innovation across the global supply chain during the past two decades. Download this white paper to learn more.

 
Competing on Analytics
This Tech Analysis is designed to help identify characteristics shared by analytics competitors, and includes information about 32 organizations that have made a commitment to quantitative, fact-based analysis.

 
Cost Effective Scaling with Virtualization and Coyote Point Systems
An overview of the industry trend toward virtualization, how server consolidation has increased the importance of application uptime and the steps being taken to integrate load balancing technology with virtualized servers.

 
Five Checkpoints to Implementing IP Telephony
Implementation planning for IP PBX software and IP telephony has become vital as businesses replace discontinued legacy PBX phone systems. This informative whitepaper outlines five &quot;checkpoints&quot; for any implementation plan that will help make IP communications a successful proposition.

 
Hosted Email Security: Staying Ahead of New Threats
In the last two years, email has become a fierce battleground between the nefarious forces of spam and malware, and the heroes of messaging protection. The spam volumes increased alarmingly every month, bringing clever new forms of phishing and virus propagation attacks.

 

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway