HexString Posted August 21, 2006 Report Posted August 21, 2006 Va rog mult ajtia care stiu bine php .. salvati-ma si reparatimi greselile din urmatorul php <?php/************************************************************//* IMPORTANT NOTE FOR THEMES DEVELOPERS!           *//*                              *//* When you start cKidsAndToysng your theme, if you want to   *//* distribute it, please double check it to fit the HTML   *//* 4.01 Transitional Standard. You can use the W3 validator *//* located at [url]http://validator.w3.org[/url]            *//* If you don't know where to start with your theme, just  *//* start mKidsAndToysfying this theme, it's validate and is cool*//************************************************************//************************************************************//* Theme Colors Definition                  *//*                              *//* Define colors for your web site. $bgcolor2 is generaly  *//* used for the tables border as you can see on OpenTable() *//* function, $bgcolor1 is for the table background and the  *//* other two bgcolor variables follows the same criteria.  *//* $texcolor1 and 2 are for tables internal texts      *//************************************************************/global $loonr, $prefix, $db, $kokku;$kokku = $db->sql_numrows($db->sql_query("select * from ".$prefix."_stories LIMIT 0, 30 "));$bgcolor1 = "#2D6386";$bgcolor2 = "#2D6386";$bgcolor3 = "#2D6386";$bgcolor4 = "#2D6386";$textcolor1 = "#000000";$textcolor2 = "#000000";if ($loonr == "") {   $loonr = "0";}include("themes/KidsAndToys/tables.php");/************************************************************//* Function themeheader()                  *//*                              *//* Control the header for your site. You need to define the *//* BODY tag and in some part of the code call the blocks   *//* function for left side with: blocks(left);        *//************************************************************/function themeheader() {   global $user, $banners, $sitename, $slogan, $cookie, $prefix, $db;   cookiedecode($user);   $username = $cookie[1];   if ($username == "") {     $username = "Anonymous";   }   echo "<body bgcolor="#FFFFFF" text="#000000"  leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">";   if ($banners) { include("banners.php");   }   $topics_list = "<select name="topic" onChange='submit()'>n";   $topics_list .= "<option value="">All Topics</option>n";   $toplist = $db->sql_query("select topicid, topictext from ".$prefix."_topics order by topictext");   while(list($topicid, $topics) = $db->sql_fetchrow($toplist)) { $topicid = intval($topicid);   if ($topicid==$topic) { $sel = "selected "; } $topics_list .= "<option $sel value="$topicid">$topics</option>n"; $sel = "";   }   if ($username == "Anonymous") { $theuser = "<a href="modules.php?name=Your_Account">Create an account";   } else { $theuser = "Welcome $username!";   }   $public_msg = public_message();   $tmpl_file = "themes/KidsAndToys/header.html";   $thefile = implode("", file($tmpl_file));   $thefile = addslashes($thefile);   $thefile = "$r_file="".$thefile."";";   eval($thefile);   print $r_file;   blocks(left);   $tmpl_file = "themes/KidsAndToys/left_center.html";   $thefile = implode("", file($tmpl_file));   $thefile = addslashes($thefile);   $thefile = "$r_file="".$thefile."";";   eval($thefile);   print $r_file;}/************************************************************//* Function themefooter()                  *//*                              *//* Control the footer for your site. You don't need to    *//* close BODY and HTML tags at the end. In some part call  *//* the function for right blocks with: blocks(right);    *//* Also, $index variable need to be global and is used to  *//* determine if the page your're viewing is the Homepage or *//* and internal one.                     *//************************************************************/function themefooter() {   global $index, $foot1, $foot2, $foot3, $foot4;   if ($index == 1) { $tmpl_file = "themes/KidsAndToys/center_right.html"; $thefile = implode("", file($tmpl_file)); $thefile = addslashes($thefile); $thefile = "$r_file="".$thefile."";"; eval($thefile); print $r_file; blocks(right);   }   $footer_message = "<font color="white">$foot1$foot2$foot3$foot4</font>";   $tmpl_file = "themes/KidsAndToys/footer.html";   $thefile = implode("", file($tmpl_file));   $thefile = addslashes($thefile);   $thefile = "$r_file="".$thefile."";";   eval($thefile);   print $r_file;}/************************************************************//* Function themeindex()                   *//*                              *//* This function format the stories on the Homepage     *//************************************************************/function themeindex ($aid, $informant, $time, $title, $counter, $topic, $thetext, $notes, $morelink, $topicname, $topicimage, $topictext) {   global $anonymous, $tipath, $cookie, $loonr, $vasak, $parem, $kokku, $storyhome, $storynum;   $ThemeSel = get_theme();   if (file_exists("themes/$ThemeSel/images/topics/$topicimage")) { $t_image = "themes/$ThemeSel/images/topics/$topicimage";   } else { $t_image = "$tipath$topicimage";   }   $loonr = ($loonr+1);   if (isset($cookie[3])) { $storynum = $cookie[3];   } else { $storynum = $storyhome;   }   $ridaaa1 = round($loonr/2);   if ($notes != "") { $notes = "[b]"._NOTE."[/b] [i]$notes[/i]n";   } else { $notes = "";   }   if ("$aid" == "$informant") { $content = "$thetext$notesn";   } else { if($informant != "") {   $content = "[url="modules.php?name=Your_Account&op=userinfo&username=$informant"]$informant[/url] "; } else {   $content = "$anonymous "; } $content .= ""._WRITES." [i]"$thetext"[/i]$notesn";   }   $posted = ""._POSTEDBY." ";   $posted .= get_author($aid);   $posted .= " "._ON." $time $timezone ($counter "._READS.")";   if (($ridaaa1*2) != $loonr) { $tmpl_file = "themes/KidsAndToys/story_home.html"; $thefile = implode("", file($tmpl_file)); $thefile = addslashes($thefile); $thefile = "$r_file="".$thefile."";"; eval($thefile); $vasak .= "$r_file";   } else { $tmpl_file = "themes/KidsAndToys/story_home.html"; $thefile = implode("", file($tmpl_file)); $thefile = addslashes($thefile); $thefile = "$r_file="".$thefile."";"; eval($thefile); $parem .= "$r_file";   }   if ($loonr == $storynum OR $loonr == $kokku) { echo "<table width="100%" border="0"  cellpadding="0" cellspacing="0">"; echo "<tr>"; echo "<td width="49%" valign="top">"; print $vasak; echo "</td>"; echo "<td width="5" cellpadding="0" cellspacing="0" valign="top"></td>"; echo "<td width="49%" valign="top">"; print $parem; echo "</td>"; echo "</tr>"; echo "</table>";   }}/************************************************************//* Function themeindex()                   *//*                              *//* This function format the stories on the story page, when *//* you click on that "Read More..." link in the home     *//************************************************************/function themearticle ($aid, $informant, $datetime, $title, $thetext, $topic, $topicname, $topicimage, $topictext) {   global $admin, $sid, $tipath;   $ThemeSel = get_theme();   if (file_exists("themes/$ThemeSel/images/topics/$topicimage")) { $t_image = "themes/$ThemeSel/images/topics/$topicimage";   } else { $t_image = "$tipath$topicimage";   }   $posted = ""._POSTEDON." $datetime "._BY." ";   $posted .= get_author($aid);   if ($notes != "") { $notes = "[b]"._NOTE."[/b] [i]$notes[/i]n";   } else { $notes = "";   }   if ("$aid" == "$informant") { $content = "$thetext$notesn";   } else { if($informant != "") {   $content = "[url="modules.php?name=Your_Account&op=userinfo&username=$informant"]$informant[/url] "; } else {   $content = "$anonymous "; } $content .= ""._WRITES." [i]"$thetext"[/i]$notesn";   }   $tmpl_file = "themes/KidsAndToys/story_page.html";   $thefile = implode("", file($tmpl_file));   $thefile = addslashes($thefile);   $thefile = "$r_file="".$thefile."";";   eval($thefile);   print $r_file;}/************************************************************//* Function themesidebox()                  *//*                              *//* Control look of your blocks. Just simple.         *//************************************************************/function themesidebox($title, $content) {   $tmpl_file = "themes/KidsAndToys/blocks.html";   $thefile = implode("", file($tmpl_file));   $thefile = addslashes($thefile);   $thefile = "$r_file="".$thefile."";";   eval($thefile);   print $r_file;}?>Greselile sunt urmatoarele Warning: main(themes/KidsAndToys/tables.php): failed to open stream: No such file or directory in /home/muzica/domains/muzica.cd/public_html/nuke/themes/DeepBlue3/theme.php on line 39Warning: main(): Failed opening 'themes/KidsAndToys/tables.php' for inclusion (include_path='.:/usr/local/lib/php') in /home/muzica/domains/muzica.cd/public_html/nuke/themes/DeepBlue3/theme.php on line 39Warning: file(themes/KidsAndToys/header.html): failed to open stream: No such file or directory in /home/muzica/domains/muzica.cd/public_html/nuke/themes/DeepBlue3/theme.php on line 76Warning: implode(): Bad arguments. in /home/muzica/domains/muzica.cd/public_html/nuke/themes/DeepBlue3/theme.php on line 76Warning: file(themes/KidsAndToys/blocks.html): failed to open stream: No such file or directory in /home/muzica/domains/muzica.cd/public_html/nuke/themes/DeepBlue3/theme.php on line 238Warning: implode(): Bad arguments. in /home/muzica/domains/muzica.cd/public_html/nuke/themes/DeepBlue3/theme.php on line 238Warning: file(themes/KidsAndToys/blocks.html): failed to open stream: No such file or directory in /home/muzica/domains/muzica.cd/public_html/nuke/themes/DeepBlue3/theme.php on line 238Warning: implode(): Bad arguments. in /home/muzica/domains/muzica.cd/public_html/nuke/themes/DeepBlue3/theme.php on line 238Warning: file(themes/KidsAndToys/blocks.html): failed to open stream: No such file or directory in /home/muzica/domains/muzica.cd/public_html/nuke/themes/DeepBlue3/theme.php on line 238Warning: implode(): Bad arguments. in /home/muzica/domains/muzica.cd/public_html/nuke/themes/DeepBlue3/theme.php on line 238Warning: file(themes/KidsAndToys/left_center.html): failed to open stream: No such file or directory in /home/muzica/domains/muzica.cd/public_html/nuke/themes/DeepBlue3/theme.php on line 83Warning: implode(): Bad arguments. in /home/muzica/domains/muzica.cd/public_html/nuke/themes/DeepBlue3/theme.php on line 83Fatal error: Call to undefined function: opentable() in /home/muzica/domains/muzica.cd/public_html/nuke/modules/Your_Account/index.php on line 219 Va multumesc mult ... aaa ji primult fisier este theme.php ... voi pune ji celalt dupa ce ma ajutati cu asta Quote
HexString Posted August 21, 2006 Author Report Posted August 21, 2006 problema cred ca este asta : $thefile = implode("", file($tmpl_file));dar nu stiu ce inseamna Quote
Guest Posted August 21, 2006 Report Posted August 21, 2006 aaa is mai multe erori de la argument nasola la functia implode la faza ca nu gaseste fisierle de la templaturi daca vrei ajutor pune tot ce tine de script si te ajut eu cand am timp.... Quote