Peržiūrėti temą
PHP-Fusion Mods :: ARCHYVAS :: 2007 metų archyvas
Centrin foto panel
|
||||
Mantas |
parašyta 2007-01-05 19:23
|
|||
![]() Savekas ![]() Reputacija: 0 Pranešimai: 162 Įstojo: 2006-12-24 |
?i centrin panel leid?ia nariams matyti ir eiti foto albumus tiesiai i? centrinio puslapio. if (!defined("IN_FUSION")) { header("Location:../../index.php"); exit; } include LOCALE.LOCALESET."photogallery.php"; define("SAFEMODE", @ini_get("safe_mode") ? true : false); if (isset($album_id) && !isNum($album_id)) fallback(FUSION_SELF); if (!isset($rowstart) || !isNum($rowstart)) $rowstart = 0; if (isset($album_id)) { define("PHOTODIR", PHOTOS.(!SAFEMODE ? "album_".$album_id."/" : "")); $result = dbquery( "SELECT ta.* FROM ".$db_prefix."photo_albums ta WHERE album_id='$album_id'" ); if (!dbrows($result)) { fallback(FUSION_SELF); } else { $data = dbarray($result); if (!checkgroup($data['album_access'])) { fallback(FUSION_SELF); } else { $rows = dbcount("(photo_id)", "photos", "album_id='$album_id'"); if ($rows) { tablebreak(); opentable($locale['430']); $result = dbquery( "SELECT tp.*, tu.user_id,user_name, SUM(tr.rating_vote) AS sum_rating, COUNT(tr.rating_item_id) AS count_votes FROM ".$db_prefix."photos tp LEFT JOIN ".$db_prefix."users tu ON tp.photo_user=tu.user_id LEFT JOIN ".$db_prefix."ratings tr ON tr.rating_item_id = tp.photo_id AND tr.rating_type='P' WHERE album_id=$album_id GROUP BY photo_id ORDER BY photo_order LIMIT $rowstart,".$settings['thumbs_per_page'] ); $counter = 0; echo "
tablebreak(); echo "
closetable(); } if ($rows > $settings['thumbs_per_page']) echo " \n".makePageNav($rowstart,$settings['thumbs_per_page'],$rows,3,FUSION_SELF."?album_id=$album_id&")."\n \n";} } } else { opentable($locale['400']); $rows = dbcount("(album_id)", "photo_albums", groupaccess('album_access')); if ($rows) { $result = dbquery( "SELECT ta.*, tu.user_id,user_name FROM ".$db_prefix."photo_albums ta LEFT JOIN ".$db_prefix."users tu ON ta.album_user=tu.user_id WHERE ".groupaccess('album_access')." ORDER BY album_order LIMIT $rowstart,".$settings['thumbs_per_page'] ); $counter = 0; $r = 0; $k = 1; echo "
closetable(); if ($rows > $settings['thumbs_per_page']) echo " \n".makePageNav($rowstart,$settings['thumbs_per_page'],$rows,3)."\n \n";}else{ echo " ".$locale['406']." closetable(); } } |
|||
ozzWANTED |
parašyta 2007-01-05 20:01
|
|||
![]() Pradinukas ![]() Reputacija: 0 Pranešimai: 25 Įstojo: 2007-01-02 |
Bt visai neblogai kad dar ir screenshotus prie mod kartu pridtumte. | |||
Mantas |
parašyta 2007-01-05 20:17
|
|||
![]() Savekas ![]() Reputacija: 0 Pranešimai: 162 Įstojo: 2006-12-24 |
Dabar laukiame specialaus modo mums, kur bus visi modai su screenshotais ;) | |||
Peršokti į forumą: |