PHP-Fusion Mods
Navigacija
Apsauga
Apsauga Neleista registracija: 38943
Šiandien: 17
Prisijungę nariai
» Svečių: 15
» Narių: 0

» Viso narių: 10,235
» Naujausias: ruslanas tuk

Prisijungimų istorija:
tabux21:17:58
sanpernepamenu
Zbigniew@nepamenu
CepelinasXnepamenu
VV91DDnepamenu
Minusnepamenu
priezilviciunepamenu
EdvinasG1337nepamenu
rolandas94nepamenu
Edis2nepamenu
klubogerbejasnepamenu
Miskinisnepamenu
Pask. modai
Prisijungti
Vardas

Slaptažodis



Dar ne narys?
Registruotis.

Pamiršai slaptažodį?
Prašyk naujo!.

Naujausi prašymai
[L] testas
Narių apklausa
Ar dar kuriate tinklalapius?

Ne
Ne
0% [0 Balsai]

Taip
Taip
88% [7 Balsai]

Naudojuosi socialiniais tinklais
Naudojuosi socialiniais tinklais
13% [1 Balsas]

Balsai: 8
Kad galėtum balsuoti, turi prisijungti.
Pradėta: 2022-05-29 19:54
Shoutbox
You must login to post a message.

2026-03-21 19:07

2025-07-13 17:07
svx, smagu kad dar atsiranda naujų narių Šypsosi2

2024-03-07 22:13
Oj Tabux… apkabinčiau už tą moderatorių 😁

2024-02-22 17:40
Šypsosi2 jo buvo laikai.. Senukai jau mes. Bega laikas greiciau nei noretusi. Smagu matyti kad uzsuka seni nariai, ne as vienas Šypsosi

2024-02-20 22:18
Zodziu.. Nostalgija. Sorry Tabux uz spam’a, netelpa viskas i viena shout’a. 😁

Shoutbox Archive
Peržiūrėti temą
\n";
require_once BASEDIR."footer.php";
?>


Kas jame blogai gal zinot kartajs?
(Tikiuosi galima talpinti kodus cia nes da kas uzdes koki ispejima...jai ka nezinojau)
Redagavo gattigo 2008-01-14 19:07
 Spausdinti temą
Kad i foto galerija eitu uploadint daug nuotrauku arb pns?
gattigo
#1 Spausdinti pranešimą
parašyta 2008-01-14 11:33
Apšylantis



Reputacija: 0

Pranešimai: 50
Įstojo: 2007-12-01

Kad i foto galerija eitu uploadint daug nuotrauku arb pns?
 
PM
Sharkman
#2 Spausdinti pranešimą
parašyta 2008-01-14 12:00
Vartotojo avataras

Geradarys



Reputacija: 0

Pranešimai: 928
Įstojo: 2007-08-24

:| Tai ir uploadink.
 
PM
gattigo
#3 Spausdinti pranešimą
parašyta 2008-01-14 13:13
Apšylantis



Reputacija: 0

Pranešimai: 50
Įstojo: 2007-12-01

pabreziu daug foto vienu metu kaip is /nuotrauka direktorijos (kad ne po vien eitu o iskart daug)
 
PM
SilverSlash
#4 Spausdinti pranešimą
parašyta 2008-01-14 13:25
Vartotojo avataras

Savekas



Reputacija: 0

Pranešimai: 160
Įstojo: 2007-08-26

gattigo para?:
pabreziu daug foto vienu metu kaip is /nuotrauka direktorijos (kad ne po vien eitu o iskart daug)


Tingini Eik ir Dek Foto...
 
PM
gattigo
#5 Spausdinti pranešimą
parašyta 2008-01-14 13:33
Apšylantis



Reputacija: 0

Pranešimai: 50
Įstojo: 2007-12-01

Na pwz noriu galerija pasidaryti is 200 nuotrauku nejau php fusion neturi greitesniu warijantu nej po wiena nuotrauka det?
 
PM
Sharkman
#6 Spausdinti pranešimą
parašyta 2008-01-14 14:48
Vartotojo avataras

Geradarys



Reputacija: 0

Pranešimai: 928
Įstojo: 2007-08-24

Parsisisk kit foto galerij jai tavo tam porno saitui prastai ta. :|
 
PM
SoNG
#7 Spausdinti pranešimą
parašyta 2008-01-14 15:06
Vartotojo avataras

Savekas



Reputacija: 0

Pranešimai: 171
Įstojo: 2007-08-08

2 lt duosiu kur jokiu kodu nereikia tik ikelti foto i ftp...
 
PM
gattigo
#8 Spausdinti pranešimą
parašyta 2008-01-14 15:37
Apšylantis



Reputacija: 0

Pranešimai: 50
Įstojo: 2007-12-01

http://x96x.hostwq.net/pgp/Foto_Upload-(v1.00)-[197][1159].zip radau tokia bet gal kas zino kodel neina per ja uploadint o meta

Column count doesn't match value count at row 1
Bloga foto


vyko ?i klaida:
Fehler 444
 
PM
Sharkman
#9 Spausdinti pranešimą
parašyta 2008-01-14 15:56
Vartotojo avataras

Geradarys



Reputacija: 0

Pranešimai: 928
Įstojo: 2007-08-24

Suchmodint failus gal reikia.
 
PM
gattigo
#10 Spausdinti pranešimą
parašyta 2008-01-14 16:02
Apšylantis



Reputacija: 0

Pranešimai: 50
Įstojo: 2007-12-01

bandziau newelnio ..
 
PM
gattigo
#11 Spausdinti pranešimą
parašyta 2008-01-14 16:05
Apšylantis



Reputacija: 0

Pranešimai: 50
Įstojo: 2007-12-01

dar Unknown column 'user_id' in 'from clause' raso pries pridedant, velnias jau nerwai nelaiko nesuprantu kame beda..
 
PM
gattigo
#12 Spausdinti pranešimą
parašyta 2008-01-14 17:51
Apšylantis



Reputacija: 0

Pranešimai: 50
Įstojo: 2007-12-01

wa foto pries ikeliant direktorija su nuotraukom[img]http://x96x.hostwq.net/pgp/New Bitmap Image (2).bmp[/img]

ir jau po ikelimo klaidos pasipila [img]http://x96x.hostwq.net/pgp/New Bitmap Image (3).bmp[/img]
 
PM
Sharkman
#13 Spausdinti pranešimą
parašyta 2008-01-14 18:17
Vartotojo avataras

Geradarys



Reputacija: 0

Pranešimai: 928
Įstojo: 2007-08-24

spjimas u? flood. Dl error ka?kas failuose nesutampa. ;)
 
PM
gattigo
#14 Spausdinti pranešimą
parašyta 2008-01-14 18:25
Apšylantis



Reputacija: 0

Pranešimai: 50
Įstojo: 2007-12-01

welnias..cia gali but kad kazkas ne i ta direktorija ideta?
 
PM
Sharkman
#15 Spausdinti pranešimą
parašyta 2008-01-14 18:29
Vartotojo avataras

Geradarys



Reputacija: 0

Pranešimai: 928
Įstojo: 2007-08-24

Ne. ia ka?kas tarp fail blogai sura?yta.
 
PM
gattigo
#16 Spausdinti pranešimą
parašyta 2008-01-14 18:31
Apšylantis



Reputacija: 0

Pranešimai: 50
Įstojo: 2007-12-01

/*---------------------------------------------------+
| PHP-Fusion 6 Content Management System
+----------------------------------------------------+
| Copyright (c) 2005 Nick Jones
| http://www.php-fusion.co.uk/
+----------------------------------------------------+
| Released under the terms & conditions of v2 of the
| GNU General Public License. For details refer to
| the included gpl.txt file or visit http://gnu.org
+----------------------------------------------------+
| Photo Gallery developed by CrappoMan
| email: simonpatterson@dsl.pipex.com
+----------------------------------------------------*/
require_once "../maincore.php";
require_once BASEDIR."subheader.php";
require_once ADMIN."navigation.php";
include LOCALE.LOCALESET."admin/photos.php";

if (!checkrights("PH")) fallback("../index.php");
if (!isset($action)) $action = "";

function builduseroptionlist($selected_user_id=1){
global $locale;
$user_option_list="";
$levels = array_reverse(array(101=>$locale['user1'],$locale['user2'],$locale['user3']), true);
$modlevel = $levels[$modlevel];
foreach($levels as $level=>$modlevel){
$uresult=dbquery("SELECT * FROM ".DB_PREFIX."users WHERE user_level='$level' ORDER BY user_name");
if(dbrows($uresult)>0){
$user_option_list.="";
while($udata=dbarray($uresult)){
if($udata['user_id']==$selected_user_id) {$sel=" selected";}else{$sel="";}
$user_option_list.="";
}
$user_option_list.="
";
}
}
return $user_option_list;
}

if(isset($_POST['btn_cancel'])){
redirect(FUSION_SELF."?album_id=$album_id");
}elseif(($action == "deletephotopic") && isset($photo_id)) {
if(file_exists(PHOTOS.$photo_id.".jpg")) unlink(PHOTOS.$photo_id.".jpg");
if(file_exists(PHOTOS.$photo_id."t.jpg")) unlink(PHOTOS.$photo_id."t.jpg");
redirect(FUSION_SELF."?action=editphoto&photo_id=$photo_id");
}elseif($action=="deletephoto"){
if(isset($photo_id)){
$data=dbarray(dbquery("SELECT album_id, photo_order FROM ".$db_prefix."photos WHERE photo_id='$photo_id'"));
$album_id=$data['album_id'];
$photo_order=$data['photo_order'];
$result=dbquery("UPDATE ".$db_prefix."photos SET photo_order=(photo_order-1) WHERE photo_order>'$photo_order'");
$result=dbquery("DELETE FROM ".$db_prefix."photos WHERE photo_id='$photo_id'");
if(file_exists(PHOTOS.$photo_id.".jpg")) unlink(PHOTOS.$photo_id.".jpg");
if(file_exists(PHOTOS.$photo_id."t.jpg")) unlink(PHOTOS.$photo_id."t.jpg");
redirect(FUSION_SELF."?album_id=$album_id");
}
}elseif(isset($_POST['btn_upload_dir'])){
//Ordner Upload
$path = "../photo_upload/" . $_POST['upload_dir'] . "/";
$dir = makefilelist($path, ".|..", true, $type="files");
$dir = array_reverse($dir);
foreach($dir as $entry){
$pic_path = $path . $entry;

$photo_title=stripinput($entry);
$result=dbquery("SELECT photo_title FROM ".$db_prefix."photos WHERE photo_title='$photo_title' AND photo_id<>'$photo_id' AND album_id='$album_id'");
if(dbrows($result)!=0){
$error=$locale['422'];
}else{
$error="";
if($action=="editphoto"){
if($photo_order<$photo_order2){
$result=dbquery("UPDATE ".$db_prefix."photos SET photo_order=(photo_order+1) WHERE photo_order>='$photo_order' AND photo_order<'$photo_order2'");
}elseif($photo_order>$photo_order2){
$result=dbquery("UPDATE ".$db_prefix."photos SET photo_order=(photo_order-1) WHERE photo_order>'$photo_order2' AND photo_order<='$photo_order'");
}
$result=dbquery("UPDATE ".$db_prefix."photos SET album_id='$album_id',photo_title='$photo_title',photo_date='".time()."', user_id='$photo_added_by',photo_order='$photo_order' WHERE photo_id='$photo_id'");
}else{
if($photo_order==""){
$photo_order=dbresult(dbquery("SELECT MAX(photo_order) FROM ".$db_prefix."photos WHERE album_id='$album_id'"),0)+1;
}else{
$result=dbquery("UPDATE ".$db_prefix."photos SET photo_order=(photo_order+1) WHERE photo_order>='$photo_order' AND album_id='$album_id'");
}
$result=dbquery("INSERT INTO ".$db_prefix."photos VALUES ('','$album_id','$photo_title','".time()."','$photo_added_by','0','$photo_order')");
}
$photo_id=dbresult(dbquery("SELECT photo_id FROM ".$db_prefix."photos WHERE photo_title='$photo_title' AND album_id='$album_id'"),0);

if(!$imageFile=@getImageSize($pic_path)){
$error=$locale['424'];
}elseif($imageFile[2]<>2){
$error=$locale['425'];
}elseif($imageFile[0]>$settings['album_max_w']||$imageFile[1]>$settings['album_max_h']){
$error=sprintf("Fehler 444", $settings['album_max_w'], $settings['album_max_h']);
}else{
if(file_exists(PHOTOS.$photo_id.".jpg")) unlink(PHOTOS.$photo_id.".jpg");
if(file_exists(PHOTOS.$photo_id."t.jpg")) unlink(PHOTOS.$photo_id."t.jpg");
copy($pic_path, PHOTOS.$photo_id.".jpg");
chmod(PHOTOS.$photo_id.".jpg",0644);
createThumbnail(PHOTOS.$photo_id.".jpg",PHOTOS.$photo_id."t.jpg",$settings['thumb_image_w'],$settings['thumb_image_h']);

}

}
if($error<>""){
opentable($locale['420']);
echo"

".$locale['421']."
$error

\n";
echo"".$locale['427']."

".$locale['428']."

\n";
closetable();
}else{
header("Location:$FUSION_SELF?album_id=$album_id");
}




}

//Sortierung fr dieses Album berprfen und ggf. korrigieren
$sql = dbquery("SELECT * FROM ".$db_prefix."photos WHERE album_id='$album_id' ORDER BY photo_title");
$order = 0;
while($data = dbarray($sql))
{
$result=dbquery("UPDATE ".$db_prefix."photos SET photo_order='$order' WHERE photo_id='".$data[photo_id]."'");
$order++;
}
//

//Ordner Upload
}elseif(isset($_POST['btn_save_photo'])){
$photo_title=stripinput($photo_title);
$result=dbquery("SELECT photo_title FROM ".$db_prefix."photos WHERE photo_title='$photo_title' AND photo_id<>'$photo_id' AND album_id='$album_id'");
if(dbrows($result)!=0){
$error=$locale['422'];
}else{
$error="";
if($action=="editphoto"){
if($photo_order<$photo_order2){
$result=dbquery("UPDATE ".$db_prefix."photos SET photo_order=(photo_order+1) WHERE photo_order>='$photo_order' AND photo_order<'$photo_order2'");
}elseif($photo_order>$photo_order2){
$result=dbquery("UPDATE ".$db_prefix."photos SET photo_order=(photo_order-1) WHERE photo_order>'$photo_order2' AND photo_order<='$photo_order'");
}
$result=dbquery("UPDATE ".$db_prefix."photos SET album_id='$album_id',photo_title='$photo_title',photo_date='".time()."', user_id='$photo_added_by',photo_order='$photo_order' WHERE photo_id='$photo_id'");
}else{
if($photo_order==""){
$photo_order=dbresult(dbquery("SELECT MAX(photo_order) FROM ".$db_prefix."photos WHERE album_id='$album_id'"),0)+1;
}else{
$result=dbquery("UPDATE ".$db_prefix."photos SET photo_order=(photo_order+1) WHERE photo_order>='$photo_order' AND album_id='$album_id'");
}
$result=dbquery("INSERT INTO ".$db_prefix."photos VALUES ('','$album_id','$photo_title','".time()."','$photo_added_by','0','$photo_order')");
}
$photo_id=dbresult(dbquery("SELECT photo_id FROM ".$db_prefix."photos WHERE photo_title='$photo_title' AND album_id='$album_id'"),0);
if(is_uploaded_file($_FILES['photo_pic_file']['tmp_name'])){
if($_FILES['photo_pic_file']['size']>=$settings['album_max_b']){
$error=sprintf($locale['423'], $settings['album_max_b']);
}elseif(!$imageFile=@getImageSize($_FILES['photo_pic_file']['tmp_name'])){
$error=$locale['424'];
}elseif($imageFile[2]<>2){
$error=$locale['425'];
}elseif($imageFile[0]>$settings['album_max_w']||$imageFile[1]>$settings['album_max_h']){
$error=sprintf($locale['426'], $settings['album_max_w'], $settings['album_max_h']);
}else{
if(file_exists(PHOTOS.$photo_id.".jpg")) unlink(PHOTOS.$photo_id.".jpg");
if(file_exists(PHOTOS.$photo_id."t.jpg")) unlink(PHOTOS.$photo_id."t.jpg");
move_uploaded_file($_FILES['photo_pic_file']['tmp_name'], PHOTOS.$photo_id.".jpg");
chmod(PHOTOS.$photo_id.".jpg",0644);
createThumbnail(PHOTOS.$photo_id.".jpg",PHOTOS.$photo_id."t.jpg",$settings['thumb_image_w'],$settings['thumb_image_h']);
}
}
}
if($error<>""){
opentable($locale['420']);
echo"

".$locale['421']."
$error

\n";
echo"".$locale['427']."

".$locale['428']."

\n";
closetable();
}else{
redirect(FUSION_SELF."?album_id=$album_id");
}
}elseif($action=="mup"){
$data=dbarray(dbquery(
"SELECT t1.photo_id id1, t2.photo_id id2, t1.album_id
FROM ".$db_prefix."photos t1 INNER JOIN ".$db_prefix."photos t2
WHERE t1.photo_order = t2.photo_order+1 AND t1.photo_id = '$photo_id' AND t2.album_id='$album_id'"
));
$id1=$data['id1'];
$id2=$data['id2'];
$result=dbquery("UPDATE ".$db_prefix."photos SET photo_order=photo_order-1 WHERE photo_id='$id1'");
$result=dbquery("UPDATE ".$db_prefix."photos SET photo_order=photo_order+1 WHERE photo_id='$id2'");
redirect(FUSION_SELF."?album_id=$album_id");
}elseif($action=="mdown"){
$data=dbarray(dbquery(
"SELECT t1.photo_id id1, t2.photo_id id2, t1.album_id
FROM ".$db_prefix."photos t1 INNER JOIN ".$db_prefix."photos t2
WHERE t1.photo_order = t2.photo_order-1 AND t1.photo_id = '$photo_id' AND t2.album_id='$album_id'"
));
$id1=$data['id1'];
$id2=$data['id2'];
$result=dbquery("UPDATE ".$db_prefix."photos SET photo_order=photo_order+1 WHERE photo_id='$id1'");
$result=dbquery("UPDATE ".$db_prefix."photos SET photo_order=photo_order-1 WHERE photo_id='$id2'");
redirect(FUSION_SELF."?album_id=$album_id");
}else{
if($action=="editphoto"){
$result=dbquery(
"SELECT tp.*, user_name, COUNT(comment_id) comment_count
FROM (".$db_prefix."photos tp INNER JOIN ".$db_prefix."users USING (user_id))
LEFT JOIN ".$db_prefix."comments ON photo_id = comment_item_id AND comment_type = 'P'
WHERE photo_id='$photo_id' GROUP BY photo_id ORDER BY photo_order"
);
$data=dbarray($result);
$photo_id=$data['photo_id'];
$album_id=$data['album_id'];
$photo_title=stripslashes($data['photo_title']);
$photo_added_by=$data['user_id'];
$photo_added_by_name=$data['user_name'];
$photo_order=$data['photo_order'];
$photo_comments=$data['comment_count'];
opentable($locale['401']." - ($photo_id - $photo_title)");
}else{
$photo_id="";
$photo_title="";
$photo_added_by="";
$photo_order="";
opentable($locale['402']);
}
echo "
\n";
echo "\n";
echo "\n";
if($action=="editphoto"){
echo "\n";
echo "";
echo "";
}
echo "\n";
echo "\n";
echo "";
if(file_exists(PHOTOS.$photo_id."t.jpg")){
echo "\n";
}
echo "\n\n\n
".$locale['404'].":
".$locale['407'].":
".$locale['410'].":(";
if($action=="editphoto"){
echo $locale['416'].$photo_order;
}else{
echo $locale['417'];
}
echo ")
".$locale['406'].":'".$locale['418']."'
".$locale['405'].":";
if(file_exists(PHOTOS.$photo_id.".jpg")){
echo "

".$locale['412']."
'".$locale['418']."'";
}else{
echo "


".sprintf($locale['419'], $settings['thumb_image_w'], $settings['thumb_image_h'])."";
}

echo "

\n";
if($action=="editphoto"){
echo "\n";
}
//Ordner Upload
//$gallery_dir = list_dir("../fusion_upload_gallery/");
$gallery_dir = makefilelist("../photo_upload/", ".|..", true, "folders");
echo "

Upload-Directory:



\n
\n";
//Ordner Upload
closetable();
tablebreak();
if($action=="editphoto" && $photo_comments>0){
opentable("Photo Comments");
$result = dbquery(
"SELECT user_name, fc.*
FROM ".$db_prefix."comments AS fc LEFT JOIN ".$db_prefix."users
ON comment_name = user_id
WHERE comment_item_id='$photo_id' AND comment_type='P'
ORDER BY comment_datestamp ASC"
);
$cnt_comments = dbrows($result);
if ($cnt_comments != 0) {
$i = 1;
while ($data = dbarray($result)) {
echo "";
if ($data['user_name']) {
echo "".$data['user_name']."";
} else {
echo $data['comment_name'];
}
echo "

\n".parsesmileys(parseubb($data['comment_message']))."
\n";
echo strftime($settings['longdate'], $data['comment_datestamp'])."
\n";
if ($i != $cnt_comments) { echo "

\n"; } else { echo "\n"; }
$i++;
}
} else {
echo $locale['601']."\n";
}
closetable();
tablebreak();
}
if($action == ""){
opentable($locale['400']);
$result=dbquery(
"SELECT tp.*, user_name, COUNT(comment_id) comment_count
FROM (".$db_prefix."photos tp LEFT JOIN ".$db_prefix."users USING (user_id))
LEFT JOIN ".$db_prefix."comments ON photo_id = comment_item_id AND comment_type = 'P'
WHERE album_id='$album_id' GROUP BY photo_id ORDER BY photo_order"
);
$rows=dbrows($result);
if($rows!=0){
echo "










\n";
$r=0;
while($data=dbarray($result)){
$photo_id=$data['photo_id'];
$photo_title=stripslashes($data['photo_title']);
$photo_date=implode('/',array_reverse(split('[-]',$data['photo_date'])));
$photo_added_by=$data['user_id'];
$photo_added_by_name=$data['user_name'];
$photo_views=$data['photo_views'];
$comment_count=$data['comment_count'];
if($comment_count==0) $comment_count=$locale['430'];
$photo_order=$data['photo_order'];
if($rows!=1){
if($photo_order==1){
$up_down=" ";
}elseif($photo_order<$rows){
$up_down=" \n";
$up_down.=" ";
}else{
$up_down=" ";
}
}else{
$up_down = "";
}

if(($r%2)==0){$class="tbl1";}else{$class="tbl2";}
echo "

\n\n





";
echo "";
$r++;
}
echo "
".$locale['403']." ".$locale['404']." ".$locale['405']." ".$locale['406']." ".$locale['407']." ".$locale['408']." ".$locale['409']." ".$locale['410']." ".$locale['411']."
$photo_id $photo_title ";
if(file_exists(PHOTOS.$photo_id.".jpg")){
echo "";
}else{
echo " ";
}
echo "
";
if(file_exists(PHOTOS.$photo_id."t.jpg")){
echo "";
}else{
echo " ";
}
echo "
$photo_added_by_name ".showdate("shortdate", $photo_date)." $comment_count $photo_order $up_down ".$locale['412']."
\n";
tablebreak();
echo "
".$locale['431']."
";
tablebreak();
closetable();
}else{
echo "
".$locale['429']."
\n";
closetable();
}
}
}

echo "
 
PM
Peršokti į forumą: