|  
 Przedszkolak
 
  
 
 Postów: 15
 Data rejestracji: 13.01.2007 15:58
 
 ZBANOWANY:
 Dożywotnio
 
 
 | Witajcie, 
 mam oto powa?ny problem z themem z-black.
 
 Otóz dzia?a on ,ale nie tak jak ma dzia?? czyli jak ju? go wrzuci?em na serwa i jak go w??czam to pokazuje mi u góry (nad logiem) tam gdzie si? loguje i tam gdzie powinien by? wyswietlany czas o to:
 
 
 Warning: render_header(FUSION_THEMElogin.php) [function.render-header]: failed to open stream: No such file or directory in /var/www/sites/yoyo.pl/c/s/cs-clansite/themes/z-Black/theme.php on line 19
 Warning: render_header() [function.include]: Failed opening 'FUSION_THEMElogin.php' for inclusion (include_path='.:/usr/share/php:/usr/share/pear') in /var/www/sites/yoyo.pl/c/s/cs-clansite/themes/z-Black/theme.php on line 19.
 
 Mój theme to
 
 
 <?// z-Black by zszywak (http://z-themes.prv.pl)
 // theme settings
 $body_text = "#000000";
 $body_bg = "#243D53";
 $theme_width = "100%";
 $theme_width_l = "180px";
 $theme_width_r = "180px";
 
 function render_header($header_content) {
 
 global $theme_width,$settings,$userdata;
 
 echo "<script type='text/javascript' src='".FUSION_THEME."date1.js'></script>";
 echo "<table align='center' width='$theme_width' cellspacing='0' cellpadding='0' style='border:0px #444 solid;'>
 <tr>
 <td>\n";
 echo "<table width='100%' cellspacing='0' cellpadding='0' style='border-left:2px #fff ridge;border-top: 2px #fff ridge;border-right: 2px #fff ridge'>\n<tr>\n<td class='header2' height='30px'>\n";
 include FUSION_THEME."login.php";
 echo"
 <td class='header2'>
 <form name='clock' onSubmit='0'>
 <input type='text' name='face' class='date' value=''>
 </form>
 <script type='text/javascript' language='javascript'>
 startclock2()
 </script>
 </td>
 ";
 echo "</tr>
 </table>
 </td>
 </tr>
 <tr>
 <td class='header'>
 $header_content</td>
 </tr>
 <tr><td>\n";
 
 echo "<table width='100%' cellspacing='0' cellpadding='0' style='border-left:2px #fff ridge;border-bottom:2px #fff ridge;border-top: 2px #fff ridge;border-right: 2px #fff ridge'>
 \n<tr>\n";
 $result = dbquery("SELECT * FROM ".FUSION_PREFIX."site_links WHERE link_visibility<='".iUSER."' AND link_position>='2' ORDER BY link_order");
 if (dbrows($result) != 0) {
 echo "<td class='header2'><table cellspacing='5' cellpadding='3' border='0'><tr>\n";
 $i = 1;
 while($data = dbarray($result)) {
 if ($data['link_url']!="---") {
 if (strstr($data['link_url'], "http://") || strstr($data['link_url'], "https://")) {
 echo "<td class='navbar' style='cursor: hand;' onClick=\"window.location='".$data['link_url']."'\" onMouseover=\"this.className='navbar-over'\" onMouseout=\"this.className='navbar'\">".$data['link_name']."</td>";
 } else {
 echo "<td class='navbar' style='cursor: hand;' onClick=\"window.location='".FUSION_BASE.$data['link_url']."'\" onMouseover=\"this.className='navbar-over'\" onMouseout=\"this.className='navbar'\">".$data['link_name']."</td>";
 }
 }
 if ($i != dbrows($result)) { echo "\n"; } else { echo "\n"; } $i++;
 }
 echo "</tr></table></td>\n";
 }
 echo "<td align='right' class='header3'>".ucwords(showdate("%A, %B %d, %Y", time()))."</td>
 </tr>
 </table></td></tr><tr><td>\n";
 
 echo "<table width='100%' cellspacing='0' cellpadding='0'>\n<tr>\n";
 
 }
 
 function render_footer($license=false) {
 
 global $theme_width,$settings;
 
 echo "</tr>\n</table>\n";
 
 echo "</td></tr><tr><td>
 <table cellpadding='0' cellspacing='0' width='100%'>
 <tr>
 <td class='footer'>".stripslashes($settings['footer'])."</td>
 </tr>
 <tr>
 <td>
 <table align='center' cellpadding='0' cellspacing='0' height='32px' width='100%' class='footer2'>
 <td align='center' width='180px' height='32px' class='footer-left'>
 z-Black Theme by <a href='http://z-themes.prv.pl' target='blank' class='side'>zszywak</a>
 </td>
 <td align='center' height='32px' class='footer-mid'>";
 if ($license == false) {
 echo "Powered by <a href='http://www.php-fusion.co.uk' class='side'>PHP-Fusion</a> v".
 sprintf("%.2f", $settings['version']/100)." © 2003-2004\n";
 }
 echo "</td>
 <td align='center' width='180px' height='32px' class='footer-right'>
 ".$settings['counter']." ".($settings['counter'] == 1 ? LAN_140."<br><br>\n" : LAN_141."\n");
 echo "</td>
 </tr>
 </table>
 </td></tr></table>\n";
 
 }
 
 function render_news($subject, $news, $info) {
 
 global $settings;
 
 echo "<table width='100%' cellpadding='0' cellspacing='1' class='border'>
 <tr>
 <td class='caption'>$subject</td>
 </tr>
 <tr>
 <td class='main-body'>
 $news
 </td>
 </tr>
 <tr>
 <td>
 <table width='100%' cellpadding='0' cellspacing='0'>
 <tr>
 <td class='infobar' align='left'>
 ".LAN_40."<a href='profile.php?lookup=".$info['user_id']."' class='infobar2'>".$info['user_name']."</a>
 ".LAN_41.showdate("longdate", $info['news_date'])."
 </td>
 <td class='infobar' align='right'>
 ".($info['news_ext'] == "y" ? "<a href='news.php?readmore=".$info['news_id']."' class='infobar2'>".LAN_42."</a> ·\n" : "")."
 <a href='news.php?readmore=".$info['news_id']."' class='infobar2'>".$info['news_comments'].LAN_43."</a> ·
 ".$info['news_reads'].LAN_44."
 <a href='print.php?type=N&item_id=".$info['news_id']."'><img src='".FUSION_THEME."images/printer.gif' alt='".LAN_45."' border='0' style='vertical-align:middle;'></a>
 </td>
 </tr>
 </table>
 </td>
 </tr>
 </table>\n";
 
 }
 
 function render_article($subject, $article, $info) {
 
 global $settings;
 
 echo "<table width='100%' cellpadding='0' cellspacing='1' class='border'>
 <tr>
 <td class='caption'>$subject</td>
 </tr>
 <tr>
 <td class='main-body'>\n";
 echo ($info['article_breaks'] == "y" ? nl2br($article) : $article)."
 </td>
 </tr>
 <tr>
 <td>
 <table width='100%' cellpadding='0' cellspacing='0'>
 <tr>
 <td class='infobar' align='left'>
 ".LAN_40."<a href='profile.php?lookup=".$info['user_id']."'>".$info['user_name']."</a>
 ".LAN_41.showdate("longdate", $info['article_date'])."</td>
 <td class='infobar' align='right'>
 <a href='articlecomments.php?article_id=".$info['article_id']."'>".$info['article_comments'].LAN_43."</a> ·
 ".$info['article_reads'].LAN_44."
 <a href='print.php?type=A&item_id=".$info['article_id']."'><img src='".FUSION_THEME."images/printer.gif' alt='".LAN_45."' border='0' style='vertical-align:middle;'></a>
 </td>
 </tr>
 </table>
 </td>
 </tr>
 </table>\n";
 
 }
 
 function opentable($title) {
 
 echo "<table width='100%' cellpadding='0' cellspacing='1' class='border'>
 <tr>
 <td class='caption'>$title</td>
 </tr>
 <tr>
 <td class='main-body'>\n";
 
 }
 
 function closetable() {
 
 echo "</td>
 </tr>
 </table>\n";
 
 }
 
 function openside($title) {
 
 echo "<table width='100%' cellpadding='0' cellspacing='1' class='border'>
 <tr>
 <td class='side-caption'>$title</td>
 </tr>
 <tr>
 <td class='side-body'>\n";
 
 }
 
 function closeside() {
 
 echo "</td>
 </tr>
 </table>\n";
 
 }
 
 function opensidex($title,$open="on") {
 
 $box_img = ($open=="on" ? "off" : "on");
 echo "<table width='100%' cellpadding='0' cellspacing='1' class='border'>
 <tr>
 <td>
 <table width='100%' cellpadding='0' cellspacing='0'>
 <tr>
 <td class='side-captionl'>$title</td>
 <td class='side-captionr' align='right'>
 <img onclick=\"javascript:flipBox('$title')\" name='b_$title' alt='$box_img' border='0' src='".FUSION_THEME."images/panel_$box_img.gif'>
 </td>
 </tr>
 </table>
 </td>
 </tr>
 <tr>
 <td class='side-body'>
 <div id='box_$title'".($open=="off" ? "style='display:none'" : "").">\n";
 
 }
 
 function closesidex() {
 
 echo "</div>
 </td>
 </tr>
 </table>\n";
 
 }
 
 function tablebreak() {
 
 echo "<table width='100%' cellspacing='0' cellpadding='0'>
 <tr><td height='10'></td></tr>
 </table>\n";
 
 }
 ?>
 [/quote]
 
 A moj style.css to
 
 [quote]a { color:#F6633F; text-decoration:none; font-size: 10px; font-weight: bold; }
 a:hover { color:#7D7D7D; text-decoration:underline; font-size:10px; font-weight: bold; }
 
 a.infobar2  { color:#fff; text-decoration:none; font-size: 10px; font-weight: bold; }
 a:hover.infobar2  { color:#FFF00F; text-decoration:underline; font-size:10px; font-weight: bold; }
 
 a.side { color:#FCC00F; text-decoration:none; font-size: 10px; font-weight: bold; }
 a:hover.side { color:#FFF00F; text-decoration:underline; font-size:10px; font-weight: bold; }
 
 a.white { color:#FCC00F; text-decoration:none; }
 a:hover.white { color:#FFF00F; text-decoration:underline; }
 
 body {
 color: #000;
 background-color: #000000;
 font-family:Verdana,Tahoma,Arial,Sans-Serif; font-size:11px;
 scrollbar-face-color:#000; scrollbar-shadow-color:#000000;
 scrollbar-highlight-color:#E1E1E1; scrollbar-3dlight-color:#A0A0A0;
 scrollbar-darkshadow-color:#A0A0A0; scrollbar-track-color:#FFFFFF;
 scrollbar-arrow-color:#fff;
 }
 
 form { margin:0px 0px 0px 0px; }
 
 hr { height:1px; color:#bbb }
 
 hr.side-hr { height:1px; color:#bbb }
 td { font-family:Verdana,Tahoma,Arial,Sans-Serif; font-size:11px; }
 
 pre { font-family:Verdana,Tahoma,Arial,Sans-Serif; font-size:10px; }
 
 .alt { color:#666; }
 
 .header {
 font-family:Verdana,Tahoma,Arial,Sans-Serif;
 font-size:10px;
 background-image: url(images/header1.jpg);
 
 color:#FFFFFF;
 border-top:2px #fff ridge;
 border-left: 2px #fff ridge;
 border-bottom: 0px #fff ridge;
 border-right: 2px #fff ridge;
 padding:0px;
 }
 
 
 .header2 {
 font-family:Verdana,Tahoma,Arial,Sans-Serif;
 font-size:11px;
 color:#000000; background-image: url(images/header2.jpg);
 padding:0px 0px 0px 0px;
 }
 .navbar {
 font-family:Verdana,Tahoma,Arial,Sans-Serif;
 font-size:11px;
 color: #E1E1E1;
 border: 1px ridge #FFF;
 padding:1px 1px 1px 1px;
 }
 .navbar-over {
 font-family:Verdana,Tahoma,Arial,Sans-Serif;
 font-size:11px;
 color:#FCC00F;
 background-color: #000;
 border: 1px ridge #FCC00F;
 padding:1px 1px 1px 1px;
 }
 
 .header3 {
 font-family:Verdana,Tahoma,Arial,Sans-Serif;
 font-size:11px;
 color:#fff;
 background-image: url(images/header2.jpg);
 padding:4px 4px 5px 4px;
 }
 
 .footer {
 font-family:Verdana,Tahoma,Arial,Sans-Serif;
 font-size:10px;
 color:#fff;
 background-image: url(images/footer.jpg);
 
 border-top:2px #fff ridge;
 border-left: 2px #fff ridge;
 border-right: 2px #fff ridge;
 padding:10px;
 }
 
 .footer2 {
 font-family:Verdana,Tahoma,Arial,Sans-Serif;
 font-size:10px;
 color:white;
 padding:0px;
 border-top:2px #fff ridge;
 border-bottom:2px #fff ridge;
 border-left: 2px #fff ridge;
 border-right: 2px #fff ridge;
 
 }
 .footer-left {
 background-image: url(images/panel.jpg);
 backgorund-repeat: repeat-y;
 color: #fff;
 }
 .footer-right {
 background-image: url(images/panel2.jpg);
 backgorund-repeat: repeat-y;
 color: #fff;
 }
 
 .footer-mid {
 background-color:#808080;
 color: #fff;
 }
 
 
 .button {
 font-family:Tahoma,Arial,Verdana,Sans-Serif;
 font-size:10px;
 font-weight: bold;
 color:#fff;
 background-color: black;
 
 padding:0px 0px 0px 0px;
 border:2px white ridge;
 margin-top:0px;
 }
 
 .textbox {
 font-family:Verdana,Tahoma,Arial,Sans-Serif;
 font-size:10px;
 color:#000; background-color:#E5E5E5;
 border:1px #000000 solid;
 }
 .textbox2 {
 font-family:Verdana,Tahoma,Arial,Sans-Serif;
 font-size:10px;
 color:#fff;background-color:#000;
 border:2px #FFF ridge;
 }
 
 .checkbox2 {
 width: 15px;
 height: 15px;
 color:#FFCC00;
 background-color:#CCFFFF;
 border:2px #FFF ridge;
 }
 .date {
 font-family:Tahoma,Arial,Verdana,Sans-Serif;
 font-size:9px;
 font-weight:bold;
 text-align: center;
 color:#fff;background-color:#000;
 height:18px;
 width: 80px;
 border:2px #FFF ridge;
 }
 
 .main-bg {padding:10px;}
 
 .side-body {
 color: #E1E1E1;
 font-size:10px;
 border-top:0px #636363 solid;
 border-bottom:0px #636363 solid;
 border-left: 0px #636363 solid;
 border-right: 0px #636363 solid;
 
 }
 .side-border-left { padding:0px 0px 0px 0px;
 color:#333; background-image: url(images/panel.jpg);
 background-repeat: repeat-y;
 background-color:#FFFFFF;
 border-left: 2px #fff ridge;
 border-right:2px #fff ridge;
 }
 .side-border-right {padding:0px 0px 0px 0px;
 color:#333; background-image: url(images/panel2.jpg);
 background-repeat: repeat-y;
 background-color:#FFFFFF;
 border-left: 2px #fff ridge;
 border-right: 2px #fff ridge;
 }
 
 .main-body {
 font-size:11px;
 color:#000;
 background-color:#E2E2E2;
 backgound-repeat: repeat-y;
 padding:3px 4px 3px 4px;
 border-left: 2px #fff ridge;
 border-right: 2px #fff ridge;
 border-top: 2px #fff ridge;
 border-bottom:2px #fff ridge;
 }
 
 
 
 .border {border:0px #243D53 solid; }
 
 .infobar {
 font-size:9px;
 color:#E1E1E1;
 padding:0px 0px 0px 0px;
 
 }
 
 .caption {
 font-family:Verdana,Tahoma,Arial,Sans-Serif;
 font-size:11px;
 font-weight: bold;
 color:#fff;
 
 padding:2px 2px 2px 2px;
 }
 
 .side-caption {
 font-family:Verdana,Tahoma,Arial,Sans-Serif;
 font-size:11px;
 font-weight: bold;
 color:#fff;
 background-image: url(images/s-caption.jpg);
 background-repeat: repeat-x;
 border-left: 1px #fff solid;
 border-right: 1px #fff solid;
 border-top: 1px #fff solid;
 border-bottom: 1px #fff solid;
 padding:2px 2px 2px 2px;
 }
 .side-captionl {
 font-family:Verdana,Tahoma,Arial,Sans-Serif;
 font-size:11px;
 font-weight: bold;
 color:#FFF;
 background-image: url(images/header2.jpg);
 background-repeat: repeat-x;
 border-left: 1px #fff solid;
 border-top: 1px #fff solid;
 border-bottom: 1px #fff solid;
 padding:2px 2px 2px 2px;
 }
 .side-captionr {
 font-family:Verdana,Tahoma,Arial,Sans-Serif;
 font-size:11px;
 font-weight: bold;
 color:#fff;
 background-image: url(images/header2.jpg);
 background-repeat: repeat-x;
 border-right: 1px #fff solid;
 border-top: 1px #fff solid;
 border-bottom: 1px #fff solid;
 padding:2px 2px 2px 2px;
 }
 
 .tbl-border { background-color:#000000;  }
 .tbl { font-size:11px; padding:3px 4px 3px 4px; }
 .tbl1 {   font-size:11px; color:#000; background-color:#fff; padding:4px; }
 .tbl2 { font-size:11px; color:#000; background-color:#E1E1E1; padding:4px; }
 
 .forum-caption {
 font-size:11px;
 font-weight: bold;
 color:#FFFFFF; background-color:#A0A0A0;
 height:20px;
 padding:0px 4px 2px 4px;
 }
 
 .quote {
 color:#000; background-color:#FFFFFF;
 padding:2px;
 margin:0px 20px 0px 20px;
 border:1px #000000 solid;
 }
 
 .poll { height:12px; border:1px #000 solid; }
 
 .comment-name { font-weight:bold; color:#113355; }
 
 .shoutboxname {color:#E1E1E1; }
 .shoutbox { color:#E0E0E0; }
 .shoutboxdate { font-size:9px; color:##E1E1E1; text-align:right; }
 
 .small { font-size:10px; font-weight:normal; }
 .small2 { font-size:10px; font-weight:normal; color:#000000; }
 .side-small { font-size:10px; font-weight:normal; color:#333; }
 .side-label {padding:2px; color:#fff;letter-spacing: 2px;}
 
 .gallery { padding: 16px 0px 8px 0px; }
 .gallery img { border: 1px #448DB2 solid ; filter: gray; }
 .gallery:hover img { border: 1px solid #D1E6F7; filter: none; }
 img.activegallery { border: 1px solid #9FFCC9;)
 [/quote]
 
 a mój login php to
 
 [quote]<?php
 /*--------------------------------------------+
 | PHP-Fusion 5 - Content Management System    |
 |---------------------------------------------|
 | author: Nick Jones (Digitanium) © 2002-2005 |
 | web: http://www.php-fusion.co.uk            |
 | email:                 |
 |---------------------------------------------|
 | Released under the terms and conditions of  |
 | the GNU General Public License (Version 2)  |
 +--------------------------------------------*/
 
 if (!defined("IN_FUSION")) { header("Location:../../index.php"); exit; }
 
 
 if (iMEMBER) {
 echo "<table width='100%' height='20px' border='0' cellspacing='0' cellpadding='0'>
 <tr><td style='color: #fff;'>";
 echo "<b style='color: #fff;'>Witaj ".$userdata['user_name']." </b>";
 $msg_count = dbcount("(message_id)", "messages", "message_to='".$userdata['user_id']."' AND message_read='0'");
 echo "<img src='".FUSION_THEME."images/bullet.gif'> <a href='".FUSION_BASE."messages.php' class='white'>".LAN_81."</a> ";
 
 echo "<img src='".FUSION_THEME."images/bullet.gif'> <a href='".FUSION_BASE."edit_profile.php' class='white'>".LAN_80."</a>
 <img src='".FUSION_THEME."images/bullet.gif'> <a href='".FUSION_BASE."members.php' class='white'>".LAN_82."</a>\n";
 
 if (iADMIN) {
 echo "<img src='".FUSION_THEME."images/bullet.gif'> <a href='".FUSION_ADMIN."index.php' class='white'>".LAN_83."</a>\n";
 }
 echo "<img src='".FUSION_THEME."images/bullet.gif'> <a href='".FUSION_BASE."index.php?logout=yes' class='white'>".LAN_84."</a>\n";
 if ($msg_count) echo "<img src='".FUSION_THEME."images/bullet.gif'> <b><a href='".FUSION_BASE."messages.php' class='infobar2'>".sprintf(LAN_85, $msg_count).($msg_count == 1 ? LAN_86 : LAN_87)."</a></b>\n";
 echo "</td></tr></table>";
 } else {
 
 echo "<table width='100%' height='20px' border='0' cellspacing='0' cellpadding='0'>
 <tr><td style='color: #fff;'>
 <div align='left'>".(isset($loginerror) ? $loginerror : "")."
 <form name='loginform' method='post' action='".FUSION_SELF."'>
 ".LAN_61."
 <input type='text' name='user_name' class='textbox2' style='width:60px;'>
 ".LAN_62."
 <input type='password' name='user_pass' class='textbox2' style='width:60px;'>
 <input type='submit' name='login' value='".LAN_64."' class='button'>
 <input type='checkbox' class='checkbox2' name='remember_me' value='y'> ".LAN_63."
 </form></div></td><td style='color: #fff;'><div align='center'>\n";
 if ($settings['enable_registration']) {
 echo "<img src='".FUSION_THEME."images/bullet.gif'> <a href='".FUSION_BASE."register.php' class='white'>".LAN_65."</a>\n";
 }
 echo "<img src='".FUSION_THEME."images/bullet.gif'> <a href='".FUSION_BASE."lostpassword.php' class='white'>".LAN_66."</a>
 </div></td></tr></table>\n";
 }
 ?>
 [/quote]
 
 A mój date.js to
 
 [quote]// Uknown author of this script
 function goback(){
 alert("Na razie!");
 history.go(-1);
 }
 
 function gettheDate() {
 Todays = new Date();
 TheDate = "" + Todays.getDate() +" - "+ (Todays.getMonth()+ 1) + " - " +
 Todays.getYear()
 document.clock.date.value = TheDate;
 }
 
 var timerID = null;
 var timerRunning = false;
 function stopclock (){
 if(timerRunning)
 clearTimeout(timerID);
 timerRunning = false;
 }
 
 function startclock2 () {
 // Make sure the clock is stopped
 stopclock();
 
 showtime();
 }
 
 function showtime () {
 var now = new Date();
 var hours = now.getHours();
 var minutes = now.getMinutes();
 var seconds = now.getSeconds()
 var timeValue = "" + ((hours >12) ? hours -12 :hours)
 timeValue += ((minutes < 10) ? ":0" : ":") + minutes
 timeValue += ((seconds < 10) ? ":0" : ":") + seconds
 timeValue += (hours >= 12) ? " P.M." : " A.M."
 document.clock.face.value = timeValue;
 timerID = setTimeout("showtime()",1000);
 timerRunning = true;
 }
 
 
 Prosz? o pomoc!!!!
 Edytowane przez Pieka dnia 14.01.2007 12:40:35
 |