Bravo List

Bravo List (http://www.bvlist.com/index.php)
-   TBDev (http://www.bvlist.com/forumdisplay.php?f=20)
-   -   error nginx for tbdev engine! (http://www.bvlist.com/showthread.php?t=9345)

xd-host.eu 26th July 2013 08:22

error nginx for tbdev engine!
 
1 Attachment(s)
Hi, please help, error tbdev nginx server.
PHP error

Code:

=UC_MODERATOR){  mysql_query("DELETE FROM vezetosegeifal") or sqlerr(__FILE__, __LINE__);  mysql_query("INSERT INTO vezetosegeifal (userid, username, date, text)  VALUES(0, 'RENDSZER', UNIX_TIMESTAMP(NOW() ), 'Az üzifalat üritette  $CURUSER[username]')");  echo "Üzenőfal üritve!";  } if($_GET['uzifal'] == "vezer"){?>

 
Üzenet:   
http://teszt.szia.pw/pic/smilies/wink.gifhttp://teszt.szia.pw/pic/smilies/tongue.gifhttp://teszt.szia.pw/pic/smilies/smile1.gifhttp://teszt.szia.pw/pic/smilies/w00t.gifhttp://teszt.szia.pw/pic/smilies/grin.gifhttp://teszt.szia.pw/pic/smilies/laugh.gifhttp://teszt.szia.pw/pic/smilies/confused.gifhttp://teszt.szia.pw/pic/smilies/sad.gifhttp://teszt.szia.pw/pic/smilies/ohmy.gifhttp://teszt.szia.pw/pic/smilies/cool1.gifhttp://teszt.szia.pw/pic/smilies/sly.gifhttp://teszt.szia.pw/pic/smilies/greedy.gifhttp://teszt.szia.pw/pic/smilies/weirdo.gifhttp://teszt.szia.pw/pic/smilies/sneaky.gifhttp://teszt.szia.pw/pic/smilies/shit.gifhttp://teszt.szia.pw/pic/smilies/question.gifhttp://teszt.szia.pw/pic/smilies/excl.gif                            Ürités       

 
Üzenet:     
http://teszt.szia.pw/pic/smilies/wink.gifhttp://teszt.szia.pw/pic/smilies/tongue.gifhttp://teszt.szia.pw/pic/smilies/smile1.gifhttp://teszt.szia.pw/pic/smilies/w00t.gifhttp://teszt.szia.pw/pic/smilies/grin.gifhttp://teszt.szia.pw/pic/smilies/laugh.gifhttp://teszt.szia.pw/pic/smilies/confused.gifhttp://teszt.szia.pw/pic/smilies/sad.gifhttp://teszt.szia.pw/pic/smilies/ohmy.gifhttp://teszt.szia.pw/pic/smilies/cool1.gifhttp://teszt.szia.pw/pic/smilies/sly.gifhttp://teszt.szia.pw/pic/smilies/greedy.gifhttp://teszt.szia.pw/pic/smilies/weirdo.gifhttp://teszt.szia.pw/pic/smilies/sneaky.gifhttp://teszt.szia.pw/pic/smilies/shit.gifhttp://teszt.szia.pw/pic/smilies/question.gifhttp://teszt.szia.pw/pic/smilies/excl.gif = UC_MODERATOR) { ?>                    Semmi                                    Kvíz Kérdés                                  Kvíz nyertes                  Rendszer üzenet                          Ürités        " . $a["username"] . ""; else  $latestuser = $a['username'];  { $totalonline      = $row["totalol"]; }  /* $a = @mysql_fetch_assoc(@mysql_query("SELECT id,username FROM users  WHERE status='confirmed' ORDER BY id DESC LIMIT 1")) or  die(mysql_error()); if ($CURUSER)  $latestuser = "" . $a["username"] . ""; else    $latestuser = $a['username']; */  $registered = number_format(get_row_count("users")); //$unverified = number_format(get_row_count("users", "WHERE  status='pending'")); $torrents = number_format(get_row_count("torrents"));  $dead = number_format(get_row_count("torrents", "WHERE visible='no'")); $adatf = mysql_query("SELECT SUM(downloaded) as osszletoltes,  SUM(uploaded) as osszfeltoltes FROM `users` WHERE `enabled`='yes'") or  sqlerr(__FILE__,__LINE__); $adatforgalom = mysql_fetch_array($adatf); $totaldownloaded = $adatforgalom['osszletoltes']; $totaluploaded = $adatforgalom['osszfeltoltes']; $r = mysql_query("SELECT SUM(seeders) FROM torrents") or  sqlerr(__FILE__, __LINE__); $a = mysql_fetch_row($r); $seeders = 0 + $a[0]; $r = mysql_query("SELECT SUM(leechers) FROM torrents") or  sqlerr(__FILE__, __LINE__); $a = mysql_fetch_row($r); $leechers = 0 + $a[0]; if ($leechers == 0)  $ratio = 0; else  $ratio = round($seeders / $leechers * 100); $warnedu = number_format(get_row_count("users", "WHERE warned='yes'")); $disabled = number_format(get_row_count("users", "WHERE enabled='no'")); $VIP    = number_format(get_row_count("users", "WHERE donor='yes'")); $peers = number_format($seeders + $leechers); $seeders = number_format($seeders); $leechers = number_format($leechers);  $dt = gmtime() - 180; $dt = sqlesc(get_date_time($dt)); $result = mysql_query("SELECT SUM(last_access >= $dt and  jelenlet_elrejtese='nem') AS totalol FROM users") or sqlerr(__FILE__,  __LINE__);  while ($row = mysql_fetch_array ($result)) { $totalonline      = $row["totalol"]; }  $dt = gmtime() - 180; $dt = sqlesc(get_date_time($dt)); $result = mysql_query("SELECT SUM(last_access >= $dt and  jelenlet_elrejtese='igen') AS totalol FROM users") or sqlerr(__FILE__,  __LINE__);  while ($row = mysql_fetch_array ($result)) { $rejtettek      = $row["totalol"]; }  $dt = gmtime() - 180; $dt = sqlesc(get_date_time($dt)); $res = mysql_query("SELECT id, username, class, donor, warned FROM users  WHERE last_access >= $dt and jelenlet_elrejtese='nem' ORDER BY  username") or print(mysql_error()); while ($arr = mysql_fetch_assoc($res))  { if ($activeusers) $activeusers .= ",\n"; switch ($arr["class"]) {  case UC_SYSOP:    $arr["username"] = "" . $arr["username"] . "";    break; case UC_ADMINISTRATOR:    $arr["username"] = "" . $arr["username"] . "";    break; case UC_MODERATOR:    $arr["username"] = "" . $arr["username"] . "";    break; case UC_UPLOADER:    $arr["username"] = "" . $arr["username"] . "";    break; case UC_VIP:    $arr["username"] = "" . $arr["username"] . "";    break; case UC_POWER_USER:    $arr["username"] = "" . $arr["username"] . "";    break; case UC_USER:    $arr["username"] = "" . $arr["username"] . "";    break;  } $donator = $arr["donor"] === "yes"; if ($donator)  $activeusers .= ""; $warned = $arr["warned"] === "yes"; if ($warned)  $activeusers .= ""; if ($warned) $activeusers .= "http://teszt.szia.pw/%7B$pic_base_url%7Dwarned.gif"; } if  (!$activeusers) $activeusers = "Nincs egy felhasználó sem az oldalon";  $dt = gmtime() - 180; $dt = sqlesc(get_date_time($dt)); $res = mysql_query("SELECT id, username, class, donor, warned FROM users  WHERE last_access >= $dt and jelenlet_elrejtese='igen' ORDER BY  username") or print(mysql_error()); while ($arr = mysql_fetch_assoc($res))  { if ($rejtuser) $rejtuser .= ",\n"; switch ($arr["class"]) {  case UC_SYSOP:    $arr["username"] = "" . $arr["username"] . "";    break; case UC_ADMINISTRATOR:    $arr["username"] = "" . $arr["username"] . "";    break; case UC_MODERATOR:    $arr["username"] = "" . $arr["username"] . "";    break; case UC_UPLOADER:    $arr["username"] = "" . $arr["username"] . "";    break; case UC_VIP:    $arr["username"] = "" . $arr["username"] . "";    break; case UC_POWER_USER:    $arr["username"] = "" . $arr["username"] . "";    break; case UC_USER:    $arr["username"] = "" . $arr["username"] . "";    break;  } $donator = $arr["donor"] === "yes"; if ($donator)  $rejtuser .= ""; if ($warned) $rejtuser .= "http://teszt.szia.pw/%7B$pic_base_url%7Dwarned.gif"; } if (!$rejtuser) $rejtuser = "Nincs egy felhasználó sem az oldalon";  stdhead(); echo "\n"; $megjelenesig = "A TBDev-hun tracker v3.0 megjelenéséig még " . ennyinap(strtotime("2008-12-25") - gmtime()) . "van hátra!

"; //print $megjelenesig; print("Köszöntjük legújabb tagunkat, $latestuser!
");  ?>  Figyelem! Ez az oldal mozilla firefoxra van optimalizálva.
 Kérlek ezt használd!


  Születésnap<----------//  $b = 0;  //print("
");  print("\n"); print("Szülinaposak"); print("\n"); $currentdate = date("m-d"); $res2 = mysql_query("SELECT szulinap2, id, username FROM users WHERE  szulinap2 LIKE '%$currentdate' Order by szulinap2 DESC") or sqlerr(); $db = 0; if(mysql_num_rows($res2)>0){ print("Ma ünnepli szülinapját :"); while ($arr2 = mysql_fetch_assoc($res2)) { $db++; $ebben_az_evbe_szuletett = substr($arr2["szulinap2"],0,4); $idei_ev = date('Y'); $kor = $idei_ev-$ebben_az_evbe_szuletett; $username = $arr2["username"]; $id = $arr2["id"]; if($db==1) print("$username ($kor) "); else print(", $username ($kor) "); }}  if (mysql_num_rows($res2)==0) print("
Ma egy felhasználó sem ünnepli szülinapját!"); else print("
Sok Boldogságott kiván az oldal vezetősége"); print "";  ?>
Születésnap vége<----------//  print("\n"); $res = mysql_query("SELECT * FROM news WHERE ADDDATE(added, INTERVAL 61  DAY) > NOW() ORDER BY added DESC LIMIT 10") or sqlerr(__FILE__,  __LINE__); if (mysql_num_rows($res) > 0) {        print("Hírek"); if (get_user_class() >= UC_ADMINISTRATOR)        print(" - [Új hír]"); print("\n
  • ");        while($array = mysql_fetch_array($res))        {        $fn = mysql_query("SELECT `username` FROM `users` WHERE `id`=$array[userid]") or sqlerr(__FILE__,__LINE__);        $fhn = mysql_fetch_array($fn);          print("

  • " . $array['cim'] . "
    Kiírta: $fhn[username], ekkor: $array[added]

    " . format_comment($array['body']) . "
    ");    if (get_user_class() >= UC_ADMINISTRATOR)    {            print(" [SIZE=\"-2\"][Szerkeszt][/SIZE]");            print(" [SIZE=\"-2\"][Töröl][/SIZE]");    }    print("");  }  print("

\n"); }  ?>
= UC_MODERATOR) { ?>Üzenőfal = UC_MODERATOR) { ?>/VezetőségiÜzenőfal                 

 
Üzenet:   
http://teszt.szia.pw/pic/smilies/wink.gifhttp://teszt.szia.pw/pic/smilies/tongue.gifhttp://teszt.szia.pw/pic/smilies/smile1.gifhttp://teszt.szia.pw/pic/smilies/w00t.gifhttp://teszt.szia.pw/pic/smilies/grin.gifhttp://teszt.szia.pw/pic/smilies/laugh.gifhttp://teszt.szia.pw/pic/smilies/confused.gifhttp://teszt.szia.pw/pic/smilies/sad.gifhttp://teszt.szia.pw/pic/smilies/ohmy.gifhttp://teszt.szia.pw/pic/smilies/cool1.gifhttp://teszt.szia.pw/pic/smilies/sly.gifhttp://teszt.szia.pw/pic/smilies/greedy.gifhttp://teszt.szia.pw/pic/smilies/weirdo.gifhttp://teszt.szia.pw/pic/smilies/sneaky.gifhttp://teszt.szia.pw/pic/smilies/shit.gifhttp://teszt.szia.pw/pic/smilies/question.gifhttp://teszt.szia.pw/pic/smilies/excl.gif    = UC_MODERATOR) { ?>                    Semmi                                    Kvíz Kérdés                                  Kvíz nyertes                  Rendszer üzenet                          Ürités   
      Szavazás

\n");          ?> "; if ($CURUSER) $activeusers .= "{$arr["username"]}"; else $activeusers .= "{$arr["username"]}"; if ($donator) $activeusers .= "http://teszt.szia.pw/%7B$pic_base_url%7Dstar.gif"; $warned = $arr["warned"] === "yes"; if ($warned)  $rejtuser .= ""; if ($CURUSER) $rejtuser .= "{$arr["username"]}"; else $rejtuser .= "{$arr["username"]}"; if ($donator) $rejtuser .= "http://teszt.szia.pw/%7B$pic_base_url%7Dstar.gif


index.php

please how to configure server nginx ?

firefly007 26th July 2013 09:22

What Linux OS you using? as that is a problem with PHP I suspect. If you are using Deb/Ubuntu distro try this...

Code:

sudo apt-get install php5

xd-host.eu 26th July 2013 09:37

Quote:

Originally Posted by firefly007 (Post 41886)
What Linux OS you using? as that is a problem with PHP I suspect. If you are using Deb/Ubuntu distro try this...

Code:

sudo apt-get install php5


php5 is loaded up but still.

it is wrong.

firefly007 26th July 2013 10:11

Quote:

Originally Posted by xd-host.eu (Post 41887)
php5 is loaded up but still.

it is wrong.

If this shared hosting??

xd-host.eu 26th July 2013 12:23

no!
their vps.

joeroberts 26th July 2013 13:14

Turn on allow short tags in php.ini

xd-host.eu 27th July 2013 16:22

how ?
Quote:

Originally Posted by joeroberts (Post 41893)
Turn on allow short tags in php.ini


joeroberts 27th July 2013 17:15

Quote:

Originally Posted by xd-host.eu (Post 41913)
how ?

your scean name is xd-host and you dont know how to edit php.ini?:smack:

xd-host.eu 27th July 2013 19:09

Quote:

Originally Posted by joeroberts (Post 41914)
your scean name is xd-host and you dont know how to edit php.ini?:smack:

short tags on:

ERROR 500 - Internal Server Error!


The following error occurred:

The requested URL caused an internal server error.
If you get this message repeatedly please contact the webmaster.

Bump: Thankyou working :-D

Joe 27th July 2013 19:59

Quote:

Originally Posted by xd-host.eu (Post 41915)
short tags on:

ERROR 500 - Internal Server Error!


The following error occurred:

The requested URL caused an internal server error.
If you get this message repeatedly please contact the webmaster.

Bump: Thankyou working :-D


Funny shit :lol:


All times are GMT +2. The time now is 03:43.

Powered by vBulletin® Version 3.8.11 Beta 3
Copyright ©2000 - 2024, vBulletin Solutions Inc.