Cytat
Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /www/rts_www/www/index.php:2) in /www/rts_www/www/include/common.php on line 2
Fatal error: Using $this when not in object context in /www/rts_www/www/include/common.php on line 11
Fatal error: Using $this when not in object context in /www/rts_www/www/include/common.php on line 11
W pliku common.php mam taki kod:
<? include("config.php"); $paypal_item = $sitename." Service Monthly Subscription"; $paypal_item_number = $sitename; $mainipn = $siteurl."/ipn.php"; $paypal_ipn = $siteurl."/site_ipn.php"; $paypal_cancel_return = $siteurl."/cancel.php"; $paypal_return = $siteurl."/thanks.php"; $this->min_pass_length=8; $this->max_pass_length=12; $this->chars='abcdefghijklmnopqrstuvwxyz0123456789'; $logfile = "logfile.txt"; $postmode = 1; $invalidcode = "<table cellpadding=4 width=170><tr><td align=center><font size=2><b>Invalid Button Code!</b><p>Run Your Own PayPal Donation Campaigns at <a href=$siteurl/join.php>$sitename</a></font></table>"; $table1 = "<TABLE class=design cellPadding=3 cellSpacing=0 width=100% border='1' BORDERCOLOR='#ffffff' STYLE='border-collapse: collapse'>"; $table2 = "<TABLE class=design cellPadding=3 cellSpacing=0 width=100% border='1' BORDERCOLOR='#ffffff' STYLE='border-collapse: collapse'>"; $table3 = "<TABLE class=design cellPadding=3 cellSpacing=0 width=100% border='1' BORDERCOLOR='#ffffff' STYLE='border-collapse: collapse'>"; @mysql_connect($dbServer, $dbUser, $dbPass) or die("Couldn't connect to database server: " . mysql_error()); function errform($msg, $var = ''){ $posterr = 1; if ($var) $_POST[$var] = ''; } function addreport($user,$site,$status){ } function quickcheck($host,$port){ if (!$running){ return 0; }else { return 1; } } function fullstatus($host){ "http"=>"80", "ssh"=>"22", "ftp"=>"21", "smtp"=>"25", "pop3"=>"110", "mysql"=>"3306"); ?> <p><font face="Arial" size="2"><b>System Status: <?= $host ?></b></font><br>Time: <?= $date ?></p> <font face="Arial" size="2"> <p><table> <tr bgcolor="#5590CC"><td>Status</td><td>Service</td><td>Host</td></tr> <? foreach ($services as $name=>$port){ if (!$running){ $status_color = "red"; $status_sign = "X"; }else { $status_color = "green"; $status_sign = " "; } echo "<tr><td align=center><div align="center" style="font-size: 20pt; border: 2px solid $status_color; color:$status_color;" width="15" height="15">$status_sign</div></td><td>$name</td><td>$host</td></tr>"; } ?> </table></p> <? } function myround($amt,$dec="3"){ if($dec == 2){ }else{ } return $amount; } class fptime{ function fptime(){ return 1; } function mytime($stamp="",$format="m/d/Y"){ } function stamp($mm,$dd,$yy,$hh=0,$min=0,$sec=0){ } function subhours($interval,$mm,$dd,$yy,$hh,$m,$s){ return $this->stamp( $mm,$dd,$yy,($hh-$interval),$m,$s ); } function addhours($interval,$mm,$dd,$yy,$hh,$m,$s){ return $this->stamp( $mm,$dd,$yy,($hh+$interval),$m,$s ); } function subdays($interval,$mm,$dd,$yy){ return $this->stamp($mm,($dd-$interval),$yy); } function adddays($interval,$mm,$dd,$yy,$hh=0,$min=0,$sec=0){ return $this->stamp($mm,($dd+$interval),$yy,$hh,$min,$sec); } function submonths($interval,$mm,$dd,$yy){ return $this->stamp( ($mm-$interval),$dd,$yy ); } function addmonths($interval,$mm,$dd,$yy){ return $this->stamp( ($mm+$interval),$dd,$yy ); } function subyears($interval,$mm,$dd,$yy){ return $this->stamp( $mm,$dd,($yy-$interval) ); } function addyears($interval,$mm,$dd,$yy){ return $this->stamp( $mm,$dd,($yy+$interval) ); } function DateDiff ($interval, $date1,$date2) { // get the number of seconds between the two dates $timedifference = $date2 - $date1; switch ($interval) { case "w": $retval = $timedifference/604800; break; case "d": $retval = $timedifference/86400; break; case "h": $retval = $timedifference/3600; break; case "n": $retval = $timedifference/60; break; case "s": break; } return $retval; } function dateNow($format="%Y%m%d"){ } function dateToday(){ return( $ndate ); } function daysInMonth($month="",$year=""){ $year = $this->dateNow("%Y"); } $month = $this->dateNow("%m"); } if($month == 2) { if($this->isLeapYear($year)) { return 29; } else { return 28; } } elseif($month == 4 or $month == 6 or $month == 9 or $month == 11) { return 30; } else { return 31; } } function isLeapYear($year=""){ $year = $this->dateNow("%Y"); } return false; } return false; } return (($year % 4 == 0 && $year % 100 != 0) || $year % 400 == 0); } } ?>
Nie mam pojęcia o co chodzi :/
Może mi kots pomóc rozwiązać problem?
Pozdrawiam