Avaleht
uus teema   vasta Tarkvara »  WWW »  Parse error märgi kõik teemad loetuks
märgi mitteloetuks
vaata eelmist teemat :: vaata järgmist teemat
Hinnavaatlus :: Foorum :: Uudised :: Ärifoorumid :: HV F1 ennustusvõistlus :: Pangalink :: Telekavad :: HV toote otsing
autor
sõnum Saada viide sõbrale.  :: Teata moderaatorile teata moderaatorile
otsing:  
opiou.org
HV vaatleja

liitunud: 28.04.2008




sõnum 15.06.2008 16:13:05 Parse error vasta tsitaadiga

Sain kõik valmis , panin DB andmed ära .
lähen leheküljele , lööb ette :


Parse error: syntax error, unexpected $end in /home/robiii/public_html/inc/inc_system.php on line 16


Kus kala on ?
tagasi üles
vaata kasutaja infot saada privaatsõnum
hanz
HV kasutaja
hanz

liitunud: 31.03.2005




sõnum 15.06.2008 16:54:22 Re: Parse error vasta tsitaadiga

ma teen siis ilusti puust ja punaseks icon_wink.gif

tsitaat:
Parse error: syntax error, unexpected $end in /home/robiii/public_html/inc/inc_system.php on line 16

ehk siis
on failis /home/robiii/public_html/inc/inc_system.php real 16

_________________
Lahedad mängud icon_wink.gif
Kommentaarid: 7 loe/lisa Kasutajad arvavad:  :: 0 :: 0 :: 7
tagasi üles
vaata kasutaja infot saada privaatsõnum mine selle kasutaja kodulehele
senso
HV kasutaja

liitunud: 15.07.2007



Autoriseeritud ID-kaardiga

sõnum 15.06.2008 16:57:02 vasta tsitaadiga

nii lolli küsimust annab esitada icon_lol.gif aga jah edu parandamise thumbs_up.gif
Kommentaarid: 8 loe/lisa Kasutajad arvavad:  :: 0 :: 0 :: 8
tagasi üles
vaata kasutaja infot saada privaatsõnum
linnumees
HV kasutaja

liitunud: 15.06.2005




sõnum 15.06.2008 17:05:06 vasta tsitaadiga

Tegelikult võib kala ka seal real mitte olla. } on kusagilt puudu.
Kommentaarid: 3 loe/lisa Kasutajad arvavad:  :: 0 :: 0 :: 3
tagasi üles
vaata kasutaja infot saada privaatsõnum mine selle kasutaja kodulehele
opiou.org
HV vaatleja

liitunud: 28.04.2008




sõnum 15.06.2008 17:24:10 Re: Parse error vasta tsitaadiga

hanz kirjutas:
ma teen siis ilusti puust ja punaseks icon_wink.gif

tsitaat:
Parse error: syntax error, unexpected $end in /home/robiii/public_html/inc/inc_system.php on line 16

ehk siis
on failis /home/robiii/public_html/inc/inc_system.php real 16


Seda tean isegi , aga ma ei saa sellest aru , mis seal valesti midagi on ,
kogu fail :

function DB_priv_users($user){$ret= array();$query="SELECT ".DB_PREFIX."groups2.*, ".DB_PREFIX."users2.*, ".DB_PREFIX."users2.name as user_name FROM ".DB_PREFIX."groups2 LEFT JOIN ".DB_PREFIX."users2 ON ".DB_PREFIX."users2.id_group=".DB_PREFIX."groups2.id WHERE ".DB_PREFIX."users2.login='".$user."'";$array=db_query_select($query);foreach($array as $tab){$ret["ext"]["login"]=$user;$ret["ext"]["password"]=base64_decode($tab["password"]);$ret["ext"]["name"]=$tab["user_name"];$ret["ext"]["email"]=$tab["email"];$ret["ext"]["change_details"]=$tab["change_details"];$ret["ext"]["access"]=$tab["access"];$ret["ext"]["date_add"]=$tab["date_add"];$ret["ext"]["group_id"]=$tab["id"];$ret["ext"]["group_name"]=$tab["name"];$ret["ext"]["quota"]=$tab["quota"];$ret["ext"]["add_category"]=$tab["add_category"];$ret["ext"]["del_own_category"]=$tab["del_own_category"];$ret["ext"]["edit_own_category"]=$tab["edit_own_category"];$ret["ext"]["del_photo"]=$tab["del_photo"];$ret["ext"]["del_own_photo"]=$tab["del_own_photo"];$ret["ext"]["edit_own_photo"]=$tab["edit_own_photo"];$ret["ext"]["edit_photo"]=$tab["edit_photo"];$ret["ext"]["del_comment"]=$tab["del_comment"];$ret["ext"]["show_cat_desc"]=$tab["show_cat_desc"];$ret["ext"]["show_cat_owner"]=$tab["show_cat_owner"];$ret["ext"]["show_cat_date"]=$tab["show_cat_date"];$ret["ext"]["show_cat_cnt"]=$tab["show_cat_cnt"];$ret["ext"]["show_photo_name"]=$tab["show_photo_name"];$ret["ext"]["show_photo_desc"]=$tab["show_photo_desc"];$ret["ext"]["show_photo_author"]=$tab["show_photo_author"];$ret["ext"]["show_photo_user"]=$tab["show_photo_user"];$ret["ext"]["show_photo_date"]=$tab["show_photo_date"];$ret["ext"]["show_photo_pv_cnt"]=$tab["show_photo_pv_cnt"];$ret["ext"]["show_photo_rating"]=$tab["show_photo_rating"];$ret["ext"]["show_photo_filesize"]=$tab["show_photo_filesize"];$ret["ext"]["show_photo_size"]=$tab["show_photo_size"];$ret["ext"]["show_photo_comments"]=$tab["show_photo_comments"];$ret["ext"]["show_photo_comments_cnt"]=$tab["show_photo_comments_cnt"];}$query="SELECT * FROM ".DB_PREFIX."categories2 ORDER BY level1, date_add";$array=db_query_select($query);foreach($array as $tab){$access=($user=='root') ? 'Y' : 'N';$ret[$tab["id"]]["del_category"]=$access;$ret[$tab["id"]]["edit_category"]=$access;$ret[$tab["id"]]["del_photo"]=$access;$ret[$tab["id"]]["edit_photo"]=$access;$ret[$tab["id"]]["del_comment"]=$access;$ret[$tab["id"]]["view_category"]=$access;$ret[$tab["id"]]["add_photo"]=$access;$ret[$tab["id"]]["add_comment"]=$access;$ret[$tab["id"]]["id"]=$tab["id"];$ret[$tab["id"]]["name"]=$tab["name"];$ret[$tab["id"]]["description"]=$tab["description"];$ret[$tab["id"]]["date_add"]=$tab["date_add"];$ret[$tab["id"]]["date_publication"]=$tab["date_publication"];$ret[$tab["id"]]["id_login"]=$tab["id_login"];$ret[$tab["id"]]["access"]=$tab["access"];$ret[$tab["id"]]["moderate"]=$tab["moderate"];$ret[$tab["id"]]["resize_mode"]=$tab["resize_mode"];$ret[$tab["id"]]["level1"]=$tab["level1"];$ret[$tab["id"]]["level2"]=$tab["level2"];$ret[$tab["id"]]["photos_count"]=0;if ($tab["id_login"]==$user){$ret[$tab["id"]]["del_photo"]=(isset($ret["ext"]["del_photo"])) ? $ret["ext"]["del_photo"] : 'N';$ret[$tab["id"]]["edit_photo"]=(isset($ret["ext"]["edit_photo"]))? $ret["ext"]["edit_photo"] : 'N';$ret[$tab["id"]]["del_comment"]=(isset($ret["ext"]["del_comment"])) ? $ret["ext"]["del_comment"] : 'N';$ret[$tab["id"]]["del_category"]=(isset($ret["ext"]["del_own_category"])) ? $ret["ext"]["del_own_category"] : 'N';$ret[$tab["id"]]["edit_category"]=(isset($ret["ext"]["edit_own_category"]))? $ret["ext"]["edit_own_category"] : 'N';}}$query="SELECT id_category, view_category, add_photo, add_comment FROM ".DB_PREFIX."permissions2 WHERE id_login='".$user."' ORDER BY id_category";$array=db_query_select($query);foreach($array as $tab){if ($tab["view_category"]=='Y') $ret[$tab["id_category"]]["view_category"]='Y';if ($tab["add_photo"]=='Y') $ret[$tab["id_category"]]["add_photo"]='Y';if ($tab["add_comment"]=='Y') $ret[$tab["id_category"]]["add_comment"]='Y';}$ret["ext"]["admin_mode"]=($user=='root') ? 1 : 0;$query="SELECT id_category, count(id) as count FROM ".DB_PREFIX."photos2 WHERE date_publication!='0000-00-00 00:00:00' GROUP BY id_category";$array=db_query_select($query);foreach ($array as $tab){if (isset($ret[$tab["id_category"]])){$ret[$tab["id_category"]]["photos_count"]=$tab["count"];}}return $ret;}function Admin_category(){global $USER_PRIV,$LA;$ret='';$ret.='<DIV id="admin_add_category">';if ($USER_PRIV["ext"]["admin_mode"]==1){$ret.=Admin_navi(4);}if($USER_PRIV["ext"]["add_category"]=='Y'){$link_add='category_add.php';$ret.='<DIV align=right>';$ret.=Button1($link_add, $LA[921]." &#187");$ret.='</DIV>';$ret.='<BR>';}$ret.='<TABLE class=table border=0 width="100%">';$ret.='<TR>';$ret.='<TH class=table_th width="70%">';$ret.=$LA[922];$ret.='</TH>';$ret.='<TH class=table_th width="15%">&nbsp;';$ret.='</TH>';$ret.='<TH class=table_th width="15%">&nbsp;';$ret.='</TH>';$ret.='</TR>';$cat_cnt=0;foreach($USER_PRIV as $key=>$value){if($key!='ext' && $value["view_category"]=='Y' && $value["date_publication"]!='0000-00-00 00:00:00') $cat_cnt++;}$i=1;foreach($USER_PRIV as $key=>$value){if($key!='ext' && $value["view_category"]=='Y' && $value["date_publication"]!='0000-00-00 00:00:00'){$ret.='<TR>';$ret.='<TD class=table_td align=left>';(USER_LOGIN==$value["id_login"]) ? $class='color_cat_avail_your' : $class='color_cat_avail';($value["access"]=='N') ? $class='color_cat_navail' : 0;(USER_LOGIN==$value["id_login"] && $value["access"]=='N') ? $class='color_cat_navail_your' : 0;$ret.='<DIV class=admin_item_name>';$ret.='<SPAN class='.$class.'><B>'.$value["name"].'</B></SPAN>';$ret.='</DIV>';$ret.='<DIV class=detail2>';$ret.=$LA[915].': <B>'.$value["id_login"].'</B><BR>';$ret.=$LA[916].': <B>'.$value["date_add"].'</B><BR>';$ret.=$LA[920].': <B>'.$value["photos_count"].'</B>';$ret.='</DIV>';if ($USER_PRIV["ext"]["admin_mode"]){$ret.='<TABLE border=0>';$ret.='<TR>';$ret.='<TD width=40>';if ($i!=1) $ret.=Button1('category_level.php?id='.$key.'&action=up','<IMG src="img/level_ar1.gif" border=0>');$ret.='</TD>';$ret.='<TD>';if ($i!=$cat_cnt)$ret.=Button1('category_level.php?id='.$key.'&action=down','<IMG src="img/level_ar2.gif" border=0>');$ret.='</TD>';$ret.='</TR>';$ret.='</TABLE>';}$ret.='</TD>';$ret.='<TD class=table_td align=center>';$link_edit='category_add.php?id='.$value["id"];$ret.='<DIV class=link1>';$ret.=($value["edit_category"]=='Y') ? '<A href="'.$link_edit.'">'.$LA[107].'</A>' : '<SPAN class=color_inactive>'.$LA[107].'</SPAN>' ;$ret.='</DIV>';$ret.='</TD>';$ret.='<TD class=table_td align=center>';$link_del='category_del.php?id='.$value["id"];$ret.='<DIV class=link1>';$ret.=($value["del_category"]=='Y') ? '<A onClick="return confirm(\''.addslashes($LA[923]).' '.strtr($value["name"],"\"'"," ").' - '.addslashes($LA[920]).': '.$value["photos_count"].'\')" href="'.$link_del.'">'.$LA[108].'</A>' : '<SPAN class=color_inactive>'.$LA[108].'</SPAN>' ;$ret.='</DIV>';$ret.='</TD>';$ret.='</TR>';$i++;}}$ret.='</TABLE>';$ret.='<TABLE border=0>';$ret.='<TR>';$ret.='<TD class=caption>';$ret.='<SPAN class=color_cat_avail><B>'.$LA[907].'</B></SPAN><BR>';$ret.='<SPAN class=color_cat_navail><B>'.$LA[908].'</B></SPAN><BR>';$ret.='<SPAN class=color_cat_avail_your><B>'.$LA[909].'</B></SPAN><BR>';$ret.='<SPAN class=color_cat_navail_your><B>'.$LA[910].'</B></SPAN><BR>';$ret.='</TD>';$ret.='</TR>';$ret.='</TABLE>';$ret.='</DIV>';return $ret;}function Category_level($category,$action){if(!$category) return false;$query="SELECT id FROM ".DB_PREFIX."categories2 ORDER BY level1, date_add";$array=db_query_select($query);$level=1;foreach ($array as $tab){$level_upd=$level;if ($tab["id"]==$category && $action=='up') $level_upd=$level-3;if ($tab["id"]==$category && $action=='down') $level_upd=$level+3;$query="UPDATE ".DB_PREFIX."categories2 SET level1='$level_upd' WHERE id='".$tab["id"]."'";db_query_exe($query);$level=$level+2;}return true;}function Admin_group(){global $USER_PRIV,$LA;$ret='';$ret.='<DIV id="admin_add_group">';$ret.=Admin_navi(3);$link_add='group_add.php';$ret.='<DIV align=right>';$ret.=Button1($link_add, $LA[1002]." &#187");$ret.='</DIV>';$ret.='<BR>';$ret.='<TABLE class=table border=0 width="100%">';$ret.='<TR>';$ret.='<TH class=table_th width="70%">';$ret.=$LA[1001];$ret.='</TH>';$ret.='<TH class=table_th width="15%">&nbsp;';$ret.='</TH>';$ret.='<TH class=table_th width="15%">&nbsp;';$ret.='</TH>';$ret.='</TR>';$cat_cnt=0;$query="SELECT id, name FROM ".DB_PREFIX."groups2 ORDER BY id";$array=db_query_select($query);foreach($array as $tab){if ($tab["id"]!=1){$ret.='<TR>';$ret.='<TD class=table_td align=left height=30>';$ret.='<DIV class=admin_item_name>';$ret.='<SPAN class=color_group><B>'.$tab["name"].'</B></SPAN>';$ret.='</DIV>';$ret.='</TD>';$ret.='<TD class=table_td align=center>';$link_edit='group_add.php?id='.$tab["id"];$ret.='<DIV class=link1>';$ret.='<A href="'.$link_edit.'">'.$LA[107].'</A>';$ret.='</DIV>';$ret.='</TD>';$ret.='<TD class=table_td align=center>';$link_del='group_del.php?id='.$tab["id"];$ret.='<DIV class=link1>';$ret.=($tab["id"]!=2) ? '<A onClick="return confirm(\''.addslashes($LA[103]).'\')" href="'.$link_del.'">'.$LA[108].'</A>' : '<SPAN class=color_inactive>'.$LA[108].'</SPAN>' ;$ret.='</DIV>';$ret.='</TD>';$ret.='</TR>';}}$ret.='</TABLE>';$ret.='</DIV>';return $ret;}function Del_group($group){$query="UPDATE ".DB_PREFIX."users2 SET id_group='2' WHERE id_group='".$group."'";$result=db_query_exe($query);$query="DELETE FROM ".DB_PREFIX."groups2 WHERE id='".$group."'";$result=db_query_exe($query);}function Add_group_lay($group='0'){global $USER_PRIV,$LA,$resize_mode;if ($group==1) return;$action="group_add-b.php";$ret='';$ret.='<DIV id="admin_add_group">';$ret.=Admin_navi(3);$query="SELECT * FROM ".DB_PREFIX."groups2 WHERE id='".$group."'";$array=db_query_select($query);$g_id=(isset($array[0]["id"])) ? $array[0]["id"] : '';$g_name=(isset($array[0]["name"])) ? $array[0]["name"] : '';$g_quota=(isset($array[0]["quota"])) ? ($array[0]["quota"]/1024) : '0';$g_add_category=(isset($array[0]["add_category"])) ? $array[0]["add_category"] : 'N';$g_del_own_category=(isset($array[0]["del_own_category"])) ? $array[0]["del_own_category"] : 'N';$g_edit_own_category=(isset($array[0]["edit_own_category"])) ? $array[0]["edit_own_category"] : 'N';$g_del_photo=(isset($array[0]["del_photo"])) ? $array[0]["del_photo"] : 'N';$g_edit_photo=(isset($array[0]["edit_photo"])) ? $array[0]["edit_photo"] : 'N';$g_del_comment=(isset($array[0]["del_comment"])) ? $array[0]["del_comment"] : 'N';$g_show_cat_desc=(isset($array[0]["show_cat_desc"])) ? $array[0]["show_cat_desc"] : 'Y';$g_show_cat_owner=(isset($array[0]["show_cat_owner"])) ? $array[0]["show_cat_owner"] : 'Y';$g_show_cat_date=(isset($array[0]["show_cat_date"])) ? $array[0]["show_cat_date"] : 'Y';$g_show_cat_cnt=(isset($array[0]["show_cat_cnt"])) ? $array[0]["show_cat_cnt"] : 'Y';$g_show_photo_name=(isset($array[0]["show_photo_name"])) ? $array[0]["show_photo_name"] : 'Y';$g_show_photo_desc=(isset($array[0]["show_photo_desc"])) ? $array[0]["show_photo_desc"] : 'Y';$g_show_photo_author=(isset($array[0]["show_photo_author"])) ? $array[0]["show_photo_author"] : 'Y';$g_show_photo_user=(isset($array[0]["show_photo_user"])) ? $array[0]["show_photo_user"] : 'Y';$g_show_photo_date=(isset($array[0]["show_photo_date"])) ? $array[0]["show_photo_date"] : 'Y';$g_show_photo_pv_cnt=(isset($array[0]["show_photo_pv_cnt"])) ? $array[0]["show_photo_pv_cnt"] : 'Y';$g_show_photo_rating=(isset($array[0]["show_photo_rating"])) ? $array[0]["show_photo_rating"] : 'Y';$g_show_photo_filesize=(isset($array[0]["show_photo_filesize"])) ? $array[0]["show_photo_filesize"] : 'Y';$g_show_photo_size=(isset($array[0]["show_photo_size"])) ? $array[0]["show_photo_size"] : 'Y';$g_show_photo_comments=(isset($array[0]["show_photo_comments"])) ? $array[0]["show_photo_comments"] : 'Y';$g_show_photo_comments_cnt=(isset($array[0]["show_photo_comments_cnt"])) ? $array[0]["show_photo_comments_cnt"] : 'Y';$ret.='<TABLE class=table border=0 cellpadding=0 cellspacing=2 width="100%">';$ret.='<FORM method="post" action="'.$action.'">';$ret.='<INPUT type="hidden" name=id value="'.$g_id.'">';$ret.='<TR>';$ret.='<TD class=table_td width="70%" align=left>';$ret.='<DIV class=admin_main_set>';$ret.='<B>'.$LA[1028].'</B>';$ret.='</DIV>';$ret.='</TD>';$ret.='<TD class=table_td width="30%" align=left>';$ret.='<INPUT class=form_input1 type="text" name="name" value="'.$g_name.'">';$ret.='</TD>';$ret.='</TR>';$ret.='<TR>';$ret.='<TD class=table_td width="70%" align=left>';$ret.='<DIV class=admin_main_set>';$ret.=$LA[1010];$ret.='</DIV>';$ret.='</TD>';$ret.='<TD class=table_td width="30%" align=left>';$ret.='<INPUT class=form_input2 type="text" name="quota" value="'.$g_quota.'" onKeyUp="Numeral(this)">';$ret.='</TD>';$ret.='</TR>';$ret.='<TR>';$ret.='<TD class=table_td width="70%" align=left>';$ret.='<DIV class=admin_main_set>';$ret.=$LA[1004];$ret.='</DIV>';$ret.='</TD>';$ret.='<TD class=table_td width="30%" align=left>';$ret.='<INPUT type="checkbox" name="add_category" value="Y"';if ($g_add_category=='Y') $ret.=' checked';$ret.='>';$ret.='</TD>';$ret.='</TR>';$ret.='<TR>';$ret.='<TD class=table_td width="70%" align=left>';$ret.='<DIV class=admin_main_set>';$ret.=$LA[1005];$ret.='</DIV>';$ret.='</TD>';$ret.='<TD class=table_td width="30%" align=left>';$ret.='<INPUT type="checkbox" name="del_own_category" value="Y"';if ($g_del_own_category=='Y') $ret.=' checked';$ret.='>';$ret.='</TD>';$ret.='</TR>';$ret.='<TR>';$ret.='<TD class=table_td width="70%" align=left>';$ret.='<DIV class=admin_main_set>';$ret.=$LA[1006];$ret.='</DIV>';$ret.='</TD>';$ret.='<TD class=table_td width="30%" align=left>';$ret.='<INPUT type="checkbox" name="edit_own_category" value="Y"';if ($g_edit_own_category=='Y') $ret.=' checked';$ret.='>';$ret.='</TD>';$ret.='</TR>';$ret.='<TR>';$ret.='<TD class=table_td width="70%" align=left>';$ret.='<DIV class=admin_main_set>';$ret.=$LA[1007];$ret.='</DIV>';$ret.='</TD>';$ret.='<TD class=table_td width="30%" align=left>';$ret.='<INPUT type="checkbox" name="del_photo" value="Y"';if ($g_del_photo=='Y') $ret.=' checked';$ret.='>';$ret.='</TD>';$ret.='</TR>';$ret.='<TR>';$ret.='<TD class=table_td width="70%" align=left>';$ret.='<DIV class=admin_main_set>';$ret.=$LA[1008];$ret.='</DIV>';$ret.='</TD>';$ret.='<TD class=table_td width="30%" align=left>';$ret.='<INPUT type="checkbox" name="edit_photo" value="Y"';if ($g_edit_photo=='Y') $ret.=' checked';$ret.='>';$ret.='</TD>';$ret.='</TR>';$ret.='<TR>';$ret.='<TD class=table_td width="70%" align=left>';$ret.='<DIV class=admin_main_set>';$ret.=$LA[1009];$ret.='</DIV>';$ret.='</TD>';$ret.='<TD class=table_td width="30%" align=left>';$ret.='<INPUT type="checkbox" name="del_comment" value="Y"';if ($g_del_comment=='Y') $ret.=' checked';$ret.='>';$ret.='</TD>';$ret.='</TR>';$ret.='<TR>';$ret.='<TD colspan=2>';$ret.=Title1($LA[1011].':');$ret.='</TD>';$ret.='</TR>';$ret.='<TR>';$ret.='<TD class=table_td width="70%" align=left>';$ret.='<DIV class=admin_main_set>';$ret.=$LA[1012];$ret.='</DIV>';$ret.='</TD>';$ret.='<TD class=table_td width="30%" align=left>';$ret.='<INPUT type="checkbox" name="show_cat_desc" value="Y"';if ($g_show_cat_desc=='Y') $ret.=' checked';$ret.='>';$ret.='</TD>';$ret.='</TR>';$ret.='<TR>';$ret.='<TD class=table_td width="70%" align=left>';$ret.='<DIV class=admin_main_set>';$ret.=$LA[1013];$ret.='</DIV>';$ret.='</TD>';$ret.='<TD class=table_td width="30%" align=left>';$ret.='<INPUT type="checkbox" name="show_cat_owner" value="Y"';if ($g_show_cat_owner=='Y') $ret.=' checked';$ret.='>';$ret.='</TD>';$ret.='</TR>';$ret.='<TR>';$ret.='<TD class=table_td width="70%" align=left>';$ret.='<DIV class=admin_main_set>';$ret.=$LA[1014];$ret.='</DIV>';$ret.='</TD>';$ret.='<TD class=table_td width="30%" align=left>';$ret.='<INPUT type="checkbox" name="show_cat_date" value="Y"';if ($g_show_cat_date=='Y') $ret.=' checked';$ret.='>';$ret.='</TD>';$ret.='</TR>';$ret.='<TR>';$ret.='<TD class=table_td width="70%" align=left>';$ret.='<DIV class=admin_main_set>';$ret.=$LA[1015];$ret.='</DIV>';$ret.='</TD>';$ret.='<TD class=table_td width="30%" align=left>';$ret.='<INPUT type="checkbox" name="show_cat_cnt" value="Y"';if ($g_show_cat_cnt=='Y') $ret.=' checked';$ret.='>';$ret.='</TD>';$ret.='</TR>';$ret.='<TR>';$ret.='<TD class=table_td width="70%" align=left>';$ret.='<DIV class=admin_main_set>';$ret.=$LA[1016];$ret.='</DIV>';$ret.='</TD>';$ret.='<TD class=table_td width="30%" align=left>';$ret.='<INPUT type="checkbox" name="show_photo_name" value="Y"';if ($g_show_photo_name=='Y') $ret.=' checked';$ret.='>';$ret.='</TD>';$ret.='</TR>';$ret.='<TR>';$ret.='<TD class=table_td width="70%" align=left>';$ret.='<DIV class=admin_main_set>';$ret.=$LA[1017];$ret.='</DIV>';$ret.='</TD>';$ret.='<TD class=table_td width="30%" align=left>';$ret.='<INPUT type="checkbox" name="show_photo_desc" value="Y"';if ($g_show_photo_desc=='Y') $ret.=' checked';$ret.='>';$ret.='</TD>';$ret.='</TR>';$ret.='<TR>';$ret.='<TD class=table_td width="70%" align=left>';$ret.='<DIV class=admin_main_set>';$ret.=$LA[1018];$ret.='</DIV>';$ret.='</TD>';$ret.='<TD class=table_td width="30%" align=left>';$ret.='<INPUT type="checkbox" name="show_photo_author" value="Y"';if ($g_show_photo_author=='Y') $ret.=' checked';$ret.='>';$ret.='</TD>';$ret.='</TR>';$ret.='<TR>';$ret.='<TD class=table_td width="70%" align=left>';$ret.='<DIV class=admin_main_set>';$ret.=$LA[1019];$ret.='</DIV>';$ret.='</TD>';$ret.='<TD class=table_td width="30%" align=left>';$ret.='<INPUT type="checkbox" name="show_photo_user" value="Y"';if ($g_show_photo_user=='Y') $ret.=' checked';$ret.='>';$ret.='</TD>';$ret.='</TR>';$ret.='<TR>';$ret.='<TD class=table_td width="70%" align=left>';$ret.='<DIV class=admin_main_set>';$ret.=$LA[1020];$ret.='</DIV>';$ret.='</TD>';$ret.='<TD class=table_td width="30%" align=left>';$ret.='<INPUT type="checkbox" name="show_photo_date" value="Y"';if ($g_show_photo_date=='Y') $ret.=' checked';$ret.='>';$ret.='</TD>';$ret.='</TR>';$ret.='<TR>';$ret.='<TD class=table_td width="70%" align=left>';$ret.='<DIV class=admin_main_set>';$ret.=$LA[1021];$ret.='</DIV>';$ret.='</TD>';$ret.='<TD class=table_td width="30%" align=left>';$ret.='<INPUT type="checkbox" name="show_photo_pv_cnt" value="Y"';if ($g_show_photo_pv_cnt=='Y') $ret.=' checked';$ret.='>';$ret.='</TD>';$ret.='</TR>';$ret.='<TR>';$ret.='<TD class=table_td width="70%" align=left>';$ret.='<DIV class=admin_main_set>';$ret.=$LA[1022];$ret.='</DIV>';$ret.='</TD>';$ret.='<TD class=table_td width="30%" align=left>';$ret.='<INPUT type="checkbox" name="show_photo_rating" value="Y"';if ($g_show_photo_rating=='Y') $ret.=' checked';$ret.='>';$ret.='</TD>';$ret.='</TR>';$ret.='<TR>';$ret.='<TD class=table_td width="70%" align=left>';$ret.='<DIV class=admin_main_set>';$ret.=$LA[1023];$ret.='</DIV>';$ret.='</TD>';$ret.='<TD class=table_td width="30%" align=left>';$ret.='<INPUT type="checkbox" name="show_photo_filesize" value="Y"';if ($g_show_photo_filesize=='Y') $ret.=' checked';$ret.='>';$ret.='</TD>';$ret.='</TR>';$ret.='<TR>';$ret.='<TD class=table_td width="70%" align=left>';$ret.='<DIV class=admin_main_set>';$ret.=$LA[1024];$ret.='</DIV>';$ret.='</TD>';$ret.='<TD class=table_td width="30%" align=left>';$ret.='<INPUT type="checkbox" name="show_photo_size" value="Y"';if ($g_show_photo_size=='Y') $ret.=' checked';$ret.='>';$ret.='</TD>';$ret.='</TR>';$ret.='<TR>';$ret.='<TD class=table_td width="70%" align=left>';$ret.='<DIV class=admin_main_set>';$ret.=$LA[1025];$ret.='</DIV>';$ret.='</TD>';$ret.='<TD class=table_td width="30%" align=left>';$ret.='<INPUT type="checkbox" name="show_photo_comments" value="Y"';if ($g_show_photo_comments=='Y') $ret.=' checked';$ret.='>';$ret.='</TD>';$ret.='</TR>';$ret.='<TR>';$ret.='<TD class=table_td width="70%" align=left>';$ret.='<DIV class=admin_main_set>';$ret.=$LA[1026];$ret.='</DIV>';$ret.='</TD>';$ret.='<TD class=table_td width="30%" align=left>';$ret.='<INPUT type="checkbox" name="show_photo_comments_cnt" value="Y"';if ($g_show_photo_comments_cnt=='Y') $ret.=' checked';$ret.='>';$ret.='</TD>';$ret.='</TR>';$ret.='</TABLE>';$ret.='<BR>';$ret.='<DIV align=center>';$submit_value=($group) ? $LA[113] : $LA[111];$ret.='<INPUT class=button type="reset" value="&#171 '.$LA[114].'" onClick="document.location=\''.$_SESSION["history"][count($_SESSION["history"])-2].'\'">'.Gif0(40,1);$ret.='<INPUT class=button type="submit" value="'.$submit_value.' &#187" onClick="return confirm(\''.addslashes($LA[103]).'\');">';$ret.='</DIV>';$query="SELECT login FROM ".DB_PREFIX."users2 WHERE id_group='".$group."' ORDER BY date_add";$array=db_query_select($query);if(count($array)){$ret.='<BR>';$ret.=Title1($LA[1027].':');$ret.='<TABLE class=table border=0 width="100%">';foreach($array as $tab){$ret.='<TR>';$ret.='<TD class=table_td align=left width="85%">';$ret.='<DIV class=admin_item_name>';$ret.='<SPAN class=color_user><B>'.$tab["login"].'</SPAN></B>';$ret.='</DIV>';$ret.='</TD>';$ret.='<TD class=table_td align=center width="15%">';$link_edit='user_add.php?login='.$tab["login"];$ret.='<DIV class=link2>';$ret.='<A href="'.$link_edit.'">'.$LA[107].'</A>';$ret.='</DIV>';$ret.='</TD>';$ret.='</TR>';}$ret.='</TABLE>';}$ret.='</DIV>';return $ret;}function Add_group(){$g_id=(isset($_POST["id"])) ? $_POST["id"] : '';$g_name=(isset($_POST["name"])) ? addslashes_d($_POST["name"]) : '';$g_quota=(isset($_POST["quota"])) ? ($_POST["quota"]*1024) : '0';$g_add_category=(isset($_POST["add_category"])) ? $_POST["add_category"] : 'N';$g_del_own_category=(isset($_POST["del_own_category"])) ? $_POST["del_own_category"] : 'N';$g_edit_own_category=(isset($_POST["edit_own_category"])) ? $_POST["edit_own_category"] : 'N';$g_del_photo=(isset($_POST["del_photo"])) ? $_POST["del_photo"] : 'N';$g_edit_photo=(isset($_POST["edit_photo"])) ? $_POST["edit_photo"] : 'N';$g_del_comment=(isset($_POST["del_comment"])) ? $_POST["del_comment"] : 'N';$g_show_cat_desc=(isset($_POST["show_cat_desc"])) ? $_POST["show_cat_desc"] : 'N';$g_show_cat_owner=(isset($_POST["show_cat_owner"])) ? $_POST["show_cat_owner"] : 'N';$g_show_cat_date=(isset($_POST["show_cat_date"])) ? $_POST["show_cat_date"] : 'N';$g_show_cat_cnt=(isset($_POST["show_cat_cnt"])) ? $_POST["show_cat_cnt"] : 'N';$g_show_photo_name=(isset($_POST["show_photo_name"])) ? $_POST["show_photo_name"] : 'N';$g_show_photo_desc=(isset($_POST["show_photo_desc"])) ? $_POST["show_photo_desc"] : 'N';$g_show_photo_author=(isset($_POST["show_photo_author"])) ? $_POST["show_photo_author"] : 'N';$g_show_photo_user=(isset($_POST["show_photo_user"])) ? $_POST["show_photo_user"] : 'N';$g_show_photo_date=(isset($_POST["show_photo_date"])) ? $_POST["show_photo_date"] : 'N';$g_show_photo_pv_cnt=(isset($_POST["show_photo_pv_cnt"])) ? $_POST["show_photo_pv_cnt"] : 'N';$g_show_photo_rating=(isset($_POST["show_photo_rating"])) ? $_POST["show_photo_rating"] : 'N';$g_show_photo_filesize=(isset($_POST["show_photo_filesize"])) ? $_POST["show_photo_filesize"] : 'N';$g_show_photo_size=(isset($_POST["show_photo_size"])) ? $_POST["show_photo_size"] : 'N';$g_show_photo_comments=(isset($_POST["show_photo_comments"])) ? $_POST["show_photo_comments"] : 'N';$g_show_photo_comments_cnt=(isset($_POST["show_photo_comments_cnt"])) ? $_POST["show_photo_comments_cnt"] : 'N';if (!$g_name) $g_name='no name';$query="REPLACE INTO ".DB_PREFIX."groups2 (id, name, quota, add_category, del_own_category, edit_own_category, del_photo, edit_photo, del_comment, show_cat_desc, show_cat_owner, show_cat_date, show_cat_cnt, show_photo_name, show_photo_desc, show_photo_author, show_photo_user, show_photo_date, show_photo_pv_cnt, show_photo_rating, show_photo_filesize, show_photo_size, show_photo_comments, show_photo_comments_cnt) VALUES ('$g_id', '$g_name', '$g_quota', '$g_add_category', '$g_del_own_category', '$g_edit_own_category', '$g_del_photo', '$g_edit_photo', '$g_del_comment', '$g_show_cat_desc', '$g_show_cat_owner', '$g_show_cat_date', '$g_show_cat_cnt', '$g_show_photo_name', '$g_show_photo_desc', '$g_show_photo_author', '$g_show_photo_user', '$g_show_photo_date', '$g_show_photo_pv_cnt', '$g_show_photo_rating', '$g_show_photo_filesize', '$g_show_photo_size', '$g_show_photo_comments', '$g_show_photo_comments_cnt')";$result=db_query_exe($query);return true;}function Add_category_lay($category='0'){global $USER_PRIV,$LA,$resize_mode;$form="add_category";$action="category_add-b.php";$ret='';$ret.='<DIV id="admin_add_category">';if ($USER_PRIV["ext"]["admin_mode"]==1){$ret.=Admin_navi(4);}if ($category==0 && MODERATE_CATEGORY=='Y' && !$USER_PRIV["ext"]["admin_mode"]) $ret.=Message($LA[409]);$category_name= (isset($USER_PRIV[$category]["name"])) ? stripslashes($USER_PRIV[$category]["name"]) : '';$category_description= (isset($USER_PRIV[$category]["description"])) ? stripslashes($USER_PRIV[$category]["description"]) : '';$category_owner= (isset($USER_PRIV[$category]["id_login"])) ? $USER_PRIV[$category]["id_login"] : USER_LOGIN;$category_date= (isset($USER_PRIV[$category]["date_add"])) ? $USER_PRIV[$category]["date_add"] : date('Y-m-d H:i:s');$category_date_publication= (isset($USER_PRIV[$category]["date_publication"])) ? $USER_PRIV[$category]["date_publication"] : date('Y-m-d H:i:s');if (!$category && MODERATE_CATEGORY=='Y' && !$USER_PRIV["ext"]["admin_mode"]) $category_date_publication='0000-00-00 00:00:00';$category_access_text= (isset($USER_PRIV[$category]["access"]) && $USER_PRIV[$category]["access"]=='Y') ? $LA[105] : $LA[106];$category_access=(isset($USER_PRIV[$category]["access"])) ? $USER_PRIV[$category]["access"] : 'Y';$category_moderate_text= (isset($USER_PRIV[$category]["moderate"]) && $USER_PRIV[$category]["moderate"]=='Y') ? $LA[105] : $LA[106];$category_moderate=(isset($USER_PRIV[$category]["moderate"]) && $USER_PRIV[$category]["moderate"]=='Y') ? 'Y' : 'N';$default_resize_mode='0';foreach ($resize_mode as $key=>$value){if (isset($value[3]) && $value[3]=='default') {$default_resize_mode=$key;break;}}$category_resize=(isset($USER_PRIV[$category]["resize_mode"])) ? $USER_PRIV[$category]["resize_mode"] : $default_resize_mode;$category_level1=(isset($USER_PRIV[$category]["level1"])) ? $USER_PRIV[$category]["level1"] : 999;$ret.='<FORM name="'.$form.'" method=post action="'.$action.'">';$ret.='<INPUT type=hidden name=category value="'.$category.'">';$ret.='<INPUT type=hidden name=category_date value="'.$category_date.'">';$ret.='<INPUT type=hidden name=category_date_publication value="'.$category_date_publication.'">';$ret.='<INPUT type=hidden name=category_resize_mode value="'.$category_resize.'">';$ret.='<INPUT type=hidden name=category_level value="'.$category_level1.'">';if (!$USER_PRIV["ext"]["admin_mode"]){$ret.='<INPUT type=hidden name=category_moderate value="'.$category_moderate.'">';$ret.='<INPUT type=hidden name=category_access value="'.$category_access.'">';$ret.='<INPUT type=hidden name=category_owner value="'.$category_owner.'">';}$ret.='<TABLE>';$ret.='<TR>';$ret.='<TD class=form_input_desc1>';$ret.=$LA[904].':';$ret.='</TD>';$ret.='<TD>';$ret.='<INPUT class=form_input1 type=text name=category_name value="'.htmlspecialchars($category_name).'" style="width:350px">';$ret.='</TD>';$ret.='</TR>';$ret.='<TR>';$ret.='<TD class=form_input_desc2 valign=top>';$ret.=$LA[906].':';$ret.='</TD>';$ret.='<TD>';$ret.='<TEXTAREA class=form_input1 name=category_description rows=3 style="width:100%">';$ret.=strip_tags(htmlspecialchars($category_description));$ret.='</TEXTAREA>';$ret.='</TD>';$ret.='</TR>';if($category!='0'){$ret.='<TR>';$ret.='<TD class=form_input_desc2>';$ret.=$LA[916].':';$ret.='</TD>';$ret.='<TD class=detail2>';$ret.=$category_date;$ret.='</TD>';$ret.='</TR>';}if($USER_PRIV["ext"]["admin_mode"]){$ret.='<TR>';$ret.='<TD class=form_input_desc2>';$ret.=$LA[915].':';$ret.='</TD>';$ret.='<TD>';$ret.='<SELECT class=form_input2 name=category_owner>';$query="SELECT login FROM ".DB_PREFIX."users2 ORDER BY login";$array2=db_query_select($query);foreach ($array2 as $tab2){$ret.='<OPTION';$_temp=($category_owner==$tab2["login"]) ? ' selected' : '';if(!$category && USER_LOGIN==$tab2["login"]) $_temp=' selected';$ret.=$_temp;$ret.='>'.$tab2["login"];}$ret.='</SELECT>';$ret.='</TD>';$ret.='</TR>';}elseif ($category){$ret.='<TR>';$ret.='<TD class=form_input_desc2>';$ret.=$LA[915].':';$ret.='</TD>';$ret.='<TD class=detail2>';$ret.=$category_owner;$ret.='</TD>';$ret.='</TR>';}if($USER_PRIV["ext"]["admin_mode"]){$ret.='<TR>';$ret.='<TD class=form_input_desc2>';$ret.=$LA[912].':';$ret.='</TD>';$ret.='<TD>';$ret.='<SELECT class=form_input2 name=category_resize_mode>';foreach ($resize_mode as $key=>$value){$ret.='<OPTION value="'.$key.'"';$_temp=($category_resize==$key) ? ' selected' : '';$ret.=$_temp;$ret.='>'.$value[0];}$ret.='</SELECT>';$ret.='</TD>';$ret.='</TR>';$ret.='</TD>';$ret.='</TR>';}elseif ($category){$ret.='<TR>';$ret.='<TD class=form_input_desc2>';$ret.=$LA[912].':';$ret.='</TD>';$ret.='<TD class=detail2>';$ret.=$resize_mode[$category_resize][0];$ret.='</TD>';$ret.='</TR>';}if($USER_PRIV["ext"]["admin_mode"]){$ret.='<TR>';$ret.='<TD class=form_input_desc2>';$ret.=$LA[913].':';$ret.='</TD>';$ret.='<TD>';$ret.='<INPUT type=checkbox name=category_moderate value="Y" ';if($category_moderate=='Y') $ret.=' checked';$ret.='>';$ret.='</TD>';$ret.='</TR>';}elseif ($category){$ret.='<TR>';$ret.='<TD class=form_input_desc2>';$ret.=$LA[913].':';$ret.='</TD>';$ret.='<TD class=detail2>';$ret.=$category_moderate_text;$ret.='</TD>';$ret.='</TR>';}if($USER_PRIV["ext"]["admin_mode"]){$ret.='<TR>';$ret.='<TD class=form_input_desc2>';$ret.=$LA[903].':';$ret.='</TD>';$ret.='<TD>';$ret.='<INPUT type=checkbox name=category_access value="Y"';if($category_access=='Y' || $category==0) $ret.=' checked';$ret.='>';$ret.='</TD>';$ret.='</TR>';}elseif ($category){$ret.='<TR>';$ret.='<TD class=form_input_desc2>';$ret.=$LA[903].':';$ret.='</TD>';$ret.='<TD class=detail2>';$ret.=$category_access_text;$ret.='</TD>';$ret.='</TR>';}$ret.='</TABLE>';$ret.='<BR>';$ret.=Title1($LA[914].':');$query="SELECT * FROM ".DB_PREFIX."users2 WHERE login!='root' ORDER BY login";$array=db_query_select($query);$ret.='<TABLE class=table border=0 width="100%">';$ret.='<TR>';$ret.='<TH class=table_th width="25%" align=center>';$ret.=$LA[924];$ret.='</TH>';$ret.='<TH class=table_th width="25%" align=center>';$ret.=$LA[917];$ret.='</TH>';$ret.='<TH class=table_th width="25%" align=center>';$ret.=$LA[918];$ret.='</TH>';$ret.='<TH class=table_th width="25%" align=center>';$ret.=$LA[919];$ret.='</TH>';$ret.='</TR>';foreach($array as $tab){$priv=DB_priv_users($tab["login"]);$ret.='<TR>';$ret.='<TD class=table_td align=left>';$class='color_user';if (USER_LOGIN==$tab["login"]) $class='color_user_you';if ($tab["login"]=='anonymous') $class='color_user_anonymous';$ret.='<DIV class=admin_item_name>'; $ret.='<SPAN class='.$class.'><B>'.$tab["login"].'</B></SPAN>';$ret.='</DIV>';$ret.='</TD>';$ret.='<TD class=table_td align=center>';$ret.='<INPUT type=checkbox name="view_category[]" value="'.$tab['login'].'"';if ($category!='0' && $priv[$category]["view_category"]=='Y') $ret.=' checked';if ($category=='0' && USER_LOGIN==$tab['login']) $ret.=' checked';if ($tab["login"]==USER_LOGIN) $ret.=' disabled';$ret.='>';$ret.='</TD>';$ret.='<TD class=table_td align=center>';$ret.='<INPUT type=checkbox name="add_photo[]" value="'.$tab['login'].'"';if ($category!='0' && $priv[$category]["add_photo"]=='Y') $ret.=' checked';if ($category=='0' && USER_LOGIN==$tab['login']) $ret.=' checked';if ($tab["login"]==USER_LOGIN) $ret.=' disabled';$ret.='>';$ret.='</TD>';$ret.='<TD class=table_td align=center>';$ret.='<INPUT type=checkbox name="add_comment[]" value="'.$tab['login'].'"';if ($category!='0' && $priv[$category]["add_comment"]=='Y') $ret.=' checked';if ($category=='0' && USER_LOGIN==$tab['login']) $ret.=' checked';if ($tab["login"]==USER_LOGIN) $ret.=' disabled';$ret.='>';$ret.='</TD>';$ret.='</TR>';}if (count($array)!=1){$ret.='<TR>';$ret.='<TD align=center>';$ret.='</TD>';$ret.='<TD class=table_td align=center>';$ret.='<DIV class=link3>';$ret.='<A href="" onclick="setCheckboxes(\''.$form.'\',\'view_category[]\',true);return false">'.$LA[901].'</A>';$ret.='<BR>'.Gif0(5).'<BR>';$ret.='<A href="" onclick="setCheckboxes(\''.$form.'\',\'view_category[]\',false);return false">'.$LA[902].'</A>';$ret.='</DIV>';$ret.='</TD>';$ret.='<TD class=table_td align=center>';$ret.='<DIV class=link3>';$ret.='<A href="" onclick="setCheckboxes(\''.$form.'\',\'add_photo[]\',true);return false">'.$LA[901].'</A>';$ret.='<BR>'.Gif0(5).'<BR>';$ret.='<A href="" onclick="setCheckboxes(\''.$form.'\',\'add_photo[]\',false);return false">'.$LA[902].'</A>';$ret.='</DIV>';$ret.='</TD>';$ret.='<TD class=table_td align=center>';$ret.='<DIV class=link3>';$ret.='<A href="" onclick="setCheckboxes(\''.$form.'\',\'add_comment[]\',true);return false">'.$LA[901].'</A>';$ret.='<BR>'.Gif0(5).'<BR>';$ret.='<A href="" onclick="setCheckboxes(\''.$form.'\',\'add_comment[]\',false);return false">'.$LA[902].'</A>';$ret.='</DIV>';$ret.='</TD>';$ret.='</TR>';}$ret.='</TABLE>';$ret.='<BR>';$ret.='<DIV align=center>';$submit_value=($category=='0') ? $LA[111] : $LA[113];$ret.='<INPUT class=button type="reset" value="&#171 '.$LA[114].'" onClick="history.go(-1)">'.Gif0(40,1);$ret.='<INPUT class=button type="submit" value="'.$submit_value.' &#187" onClick="return formCheckCat(\''.$form.'\',\'category_name\',\''.addslashes($LA[925]).'\',\''.addslashes($LA[103]).'\')">';$ret.='</DIV>';$ret.='</FORM>';$ret.='</DIV>';return $ret;}function Del_category($category){$query="DELETE FROM ".DB_PREFIX."categories2 WHERE id=".$category;$result=db_query_exe($query);$query="DELETE FROM ".DB_PREFIX."permissions2 WHERE id_category=".$category;$result=db_query_exe($query);$query="SELECT id FROM ".DB_PREFIX."photos2 WHERE id_category=".$category;$array=db_query_select($query);foreach($array as $tab){Del_photo($tab["id"]);}}function Admin_users(){global $LA;$ret='';$ret.='<DIV id="admin_add_user">';$ret.=Admin_navi(2);$ret.='<DIV align=right>';$link_add='user_add.php?login=0';$ret.=Button1($link_add, $LA[803]." &#187");$ret.='</DIV>';$ret.='<BR>';$ret.='<TABLE class=table border=0 width="100%">';$ret.='<TR>';$ret.='<TH class=table_th width="70%">';$ret.=$LA[801];$ret.='</TH>';$ret.='<TH class=table_th width="15%">&nbsp;';$ret.='</TH>';$ret.='<TH class=table_th width="15%">&nbsp;';$ret.='</TH>';$ret.='</TR>';$query="SELECT * FROM ".DB_PREFIX."users2 WHERE login!='root' ORDER BY login";$array=db_query_select($query);foreach($array as $tab){$ret.='<TR>';$ret.='<TD class=table_td align=left>';$class='color_user_active';if ($tab["access"]=='N') $class='color_user_inactive';if ($tab["login"]=='anonymous' && $tab["access"]=='Y') $class='color_user_anonymous_active';if ($tab["login"]=='anonymous' && $tab["access"]=='N') $class='color_user_anonymous_inactive';$ret.='<DIV class=admin_item_name>';$ret.='<SPAN class='.$class.'><B>'.$tab["login"].'</B></SPAN>';$ret.='</DIV>';$ret.='<DIV class=detail2>';$ret.=$LA[802].': <B>'.$tab["name"].'</B><BR>';$query="SELECT id, name, quota FROM ".DB_PREFIX."groups2 WHERE id='".$tab["id_group"]."'";$array2=db_query_select($query);$link_groupedit="group_add.php?id=".$array2[0]["id"];$ret.=$LA[1001].': <B><A href="'.$link_groupedit.'">'.$array2[0]["name"].'</A></B><BR>';if ($tab["login"]!='anonymous') $ret.=$LA[814].': <B>'.$tab["date_add"].'</B><BR>';if ($tab["login"]!='anonymous') $ret.=$LA[531].': <B>'.$tab["last_login"].'</B><BR>';$query="SELECT SUM(file_size) as filespace FROM ".DB_PREFIX."photos2 WHERE id_login='".$tab["login"]."'";$array3=db_query_select($query);$filespace=(isset($array3[0]["filespace"])) ? $array3[0]["filespace"] : 0;$quota=(isset($array2[0]["quota"])) ? $array2[0]["quota"] : 0;$ret.='<TABLE class=detail2 cellspacing=0 cellpadding=0 border=0>';$ret.='<TR>';$ret.='<TD>';$ret.=$LA[1003].':&nbsp;';$ret.='</TD>';$ret.='<TD>';$ret.=Bar($filespace,$quota);$ret.='</TD>';$ret.='<TD>';$ret.='&nbsp;&nbsp;';$ret.=sprintf("%1.1f",$filespace/1024).' / '.sprintf("%1.1f",$quota/1024).' [kB]';$ret.='</TD>';$ret.='</TR>';$ret.='</TABLE>';$ret.='</DIV>';$ret.='</TD>';$ret.='<TD class=table_td align=center>';$link_edit='user_add.php?login='.$tab["login"];$ret.='<DIV class=link2>';$ret.='<A href="'.$link_edit.'">'.$LA[107].'</A>';$ret.='</DIV>';$ret.='</TD>';$ret.='<TD class=table_td align=center>';$link_del='user_del.php?login='.$tab["login"];$ret.='<DIV class=link2>';$ret.=($tab["login"]!='anonymous') ? '<A onClick="return confirm(\''.addslashes($LA[103]).'\')" href="'.$link_del.'">'.$LA[108].'</A>' : '<SPAN class=color_inactive>'.$LA[108].'</SPAN>' ;$ret.='</DIV>';$ret.='</TD>';$ret.='</TR>';}$ret.='</TABLE>';$ret.='<DIV class=caption>';$ret.='<SPAN class=color_user_active><B>'.$LA[806].'</B></SPAN><BR>';$ret.='<SPAN class=color_user_inactive><B>'.$LA[807].'</B></SPAN><BR>';$ret.='<SPAN class=color_user_anonymous_active><B>'.$LA[808].'</B></SPAN><BR>';$ret.='<SPAN class=color_user_anonymous_inactive><B>'.$LA[809].'</B></SPAN><BR>';$ret.='</DIV>';$ret.='</DIV>';return $ret;}function Del_user($user){$query="DELETE FROM ".DB_PREFIX."users2 WHERE login='".$user."'";db_query_exe($query);$query="DELETE FROM ".DB_PREFIX."permissions2 WHERE id_login='".$user."'";db_query_exe($query);$query="UPDATE ".DB_PREFIX."categories2 SET id_login='root' WHERE id_login='".$user."'";db_query_exe($query);}function Del_photo($photo){$query="DELETE FROM ".DB_PREFIX."comments2 WHERE id_photo=".$photo;$result=db_query_exe($query);$query="SELECT hash FROM ".DB_PREFIX."photos2 WHERE id=".$photo;$array=db_query_select($query);@unlink(SYSTEM_PHOTOS_DIRECTORY.'/'.$array[0]["hash"]);@unlink(SYSTEM_PHOTOS_DIRECTORY.'/'.$array[0]["hash"].'_m');@unlink(SYSTEM_PHOTOS_DIRECTORY.'/'.$array[0]["hash"].'_m2');$query="DELETE FROM ".DB_PREFIX."photos2 WHERE id=".$photo;$result=db_query_exe($query);}function Add_user_lay($user='0'){global $USER_PRIV,$LA;$ret='';$ret.='<DIV id="admin_add_user">';$ret.=Admin_navi(2);$form="add_user";$action="user_add-b.php";$query="SELECT * FROM ".DB_PREFIX."users2 WHERE login='".$user."'";$array=db_query_select($query);$user_login= (isset($array[0]["login"])) ? ($array[0]["login"]) : '';$user_password= (isset($array[0]["password"])) ? ($array[0]["password"]) : '';$user_name= (isset($array[0]["name"])) ? stripslashes($array[0]["name"]) : '';$user_email= (isset($array[0]["email"])) ? $array[0]["email"] : '';$user_group= (isset($array[0]["id_group"])) ? $array[0]["id_group"] : '';$user_change_details= (isset($array[0]["change_details"])) ? $array[0]["change_details"] : '';$user_access= (isset($array[0]["access"])) ? $array[0]["access"] : '';$user_date_add= (isset($array[0]["date_add"])) ? $array[0]["date_add"] : '';$user_last_login= (isset($array[0]["last_login"])) ? $array[0]["last_login"] : '';$ret.='<FORM name="'.$form.'" method=post action="'.$action.'">';$ret.='<TABLE>';$ret.='<TR>';$ret.='<TD class=form_input_desc1>';$ret.=$LA[815].': ';$ret.='</TD>';$ret.='<TD>';$ret.= (!$user) ? '<INPUT class=form_input1 type=text name=user_login value="'.$user_login.'" style="width:150px">' : '<SPAN class=detail1><B>'.$user_login.'</B></SPAN><INPUT type=hidden name=user_login value="'.$user_login.'">';$ret.='</TD>';$ret.='</TR>';if (!$user){$ret.='<INPUT type=hidden name=add value="1">'; $ret.='<TR>';$ret.='<TD class=form_input_desc2>';$ret.=$LA[816].': ';$ret.='</TD>';$ret.='<TD>';$ret.='<INPUT class=form_input2 type=password name=user_password value="" style="width:150px">';$ret.='</TD>';$ret.='</TR>';$ret.='<TR>';$ret.='<TD class=form_input_desc2>';$ret.=$LA[817].': ';$ret.='</TD>';$ret.='<TD>';$ret.='<INPUT class=form_input2 type=password name=user_password_re value="" style="width:150px">';$ret.='</TD>';$ret.='</TR>';}$ret.='<TR>';$ret.='<TD class=form_input_desc2>';$ret.=$LA[802].': ';$ret.='</TD>';$ret.='<TD>';$ret.='<INPUT class=form_input2 type=text name=user_name value="'.htmlspecialchars($user_name).'" style="width:150px">';$ret.='</TD>';$ret.='</TR>';$ret.='<TR>';$ret.='<TD class=form_input_desc2>';$ret.=$LA[818].': ';$ret.='</TD>';$ret.='<TD>';$ret.='<INPUT class=form_input2 type=text name=user_email value="'.$user_email.'" style="width:150px">';$ret.='</TD>';$ret.='</TR>';$ret.='<TR>';$ret.='<TD class=form_input_desc2>';$ret.=$LA[819].': ';$ret.='</TD>';$ret.='<TD>';$ret.='<SELECT class=form_input2 name=user_group>';$query="SELECT id,name FROM ".DB_PREFIX."groups2 WHERE id!='1' ORDER BY id";$array=db_query_select($query);foreach ($array as $tab){$ret.='<OPTION value="'.$tab["id"].'"';$_temp=($user_group==$tab["id"]) ? ' selected' : '';$ret.=$_temp;$ret.='>'.$tab["name"].'</OPTION>';}$ret.='</SELECT>';$ret.='</TD>';$ret.='</TR>';if ($user_login!='anonymous'){$ret.='<TR>';$ret.='<TD class=form_input_desc2>';$ret.=$LA[820].': ';$ret.='</TD>';$ret.='<TD>';$ret.='<INPUT type=checkbox name=user_change_details value="Y"';if ($user_change_details=='Y' || $user=='0') $ret.=' checked';$ret.='>';$ret.='</TD>';$ret.='</TR>';}$ret.='<TR>';$ret.='<TD class=form_input_desc2>';$ret.=$LA[821].': ';$ret.='</TD>';$ret.='<TD>';$ret.='<INPUT type=checkbox name=user_access value="Y"';if ($user_access=='Y' || $user=='0') $ret.=' checked';$ret.='>';$ret.='</TD>';$ret.='</TR>';$ret.='</TABLE>';$ret.='<BR>';$ret.=Title1($LA[810].':');$catcnt=0;$user_priv=DB_priv_users($user);foreach($user_priv as $key=>$value){if ($key!='ext' && $value["access"]=='Y' && $value["date_add"]!='0000-00-00 00:00:00'){$catcnt++;}}if ($catcnt){$ret.='<TABLE class=table border=0 width="100%">';$ret.='<TR>';$ret.='<TH class=table_th width="40%" align=center>';$ret.=$LA[822];$ret.='</TH>';$ret.='<TH class=table_th width="20%" align=center>';$ret.=$LA[811];$ret.='</TH>';$ret.='<TH class=table_th width="20%" align=center>';$ret.=$LA[812];$ret.='</TH>';$ret.='<TH class=table_th width="20%" align=center>';$ret.=$LA[813];$ret.='</TH>';$ret.='</TR>';foreach($user_priv as $key=>$value){if ($key!='ext' && $value["access"]=='Y' && $value["date_publication"]!='0000-00-00 00:00:00'){$ret.='<TR>';$ret.='<TD class=table_td align=left>';$class= ($user===$value["id_login"]) ? 'color_cat_owner' : 'color_cat';$ret.='<DIV class=admin_item_name>';$ret.='<SPAN class='.$class.'><B>'.$value["name"].'</B></SPAN>';$ret.='</DIV>';$ret.='<DIV class=detail2>';$ret.=$LA[915].': <B>'.$value["id_login"].'</B><BR>';$ret.=$LA[916].': <B>'.substr($value["date_add"],0,10).'</B><BR>';$ret.=$LA[920].': <B>'.$value["photos_count"].'</B>';$ret.='</TD>';$ret.='<TD class=table_td align=center>';$ret.='<INPUT type=checkbox name="view_category[]" value="'.$value['id'].'"';if ($user && $value["view_category"]=='Y') $ret.=' checked';$ret.='>';$ret.='</TD>';$ret.='<TD class=table_td align=center>';$ret.='<INPUT type=checkbox name="add_photo[]" value="'.$value['id'].'"';if ($user && $value["add_photo"]=='Y') $ret.=' checked';$ret.='>';$ret.='</
tagasi üles
vaata kasutaja infot saada privaatsõnum
frygor
Kreisi kasutaja
frygor

liitunud: 07.05.2004




sõnum 15.06.2008 18:03:59 vasta tsitaadiga

tänud naeru eest praegu icon_lol.gif
enam asjalikumalt ei saanud seda koodi siia panna? kuidas me peaks siit aru saama, mis su rida 16 on?

_________________
Hunt kriimsilm 9 ametiga!
Kommentaarid: 70 loe/lisa Kasutajad arvavad:  :: 0 :: 0 :: 65
tagasi üles
vaata kasutaja infot saada privaatsõnum mine selle kasutaja kodulehele
andrusny
Kreisi kasutaja
andrusny

liitunud: 20.03.2006




sõnum 15.06.2008 18:13:18 vasta tsitaadiga

tsitaat:
$ret.='</

väga efektne lõpp peaks mainima. Täitsa PRO.

_________________
Kommentaarid: 7 loe/lisa Kasutajad arvavad:  :: 0 :: 0 :: 7
tagasi üles
vaata kasutaja infot saada privaatsõnum mine selle kasutaja kodulehele
opiou.org
HV vaatleja

liitunud: 28.04.2008




sõnum 15.06.2008 18:22:17 vasta tsitaadiga

ega jah xD
Okei , panin faili ülesse .
http://www.speedyshare.com/851917244.html
tagasi üles
vaata kasutaja infot saada privaatsõnum
andrusny
Kreisi kasutaja
andrusny

liitunud: 20.03.2006




sõnum 15.06.2008 18:49:30 vasta tsitaadiga

Jah, ega see fail polegi parem. Terve see pikk koodiosa on rida 17
_________________
Kommentaarid: 7 loe/lisa Kasutajad arvavad:  :: 0 :: 0 :: 7
tagasi üles
vaata kasutaja infot saada privaatsõnum mine selle kasutaja kodulehele
opiou.org
HV vaatleja

liitunud: 28.04.2008




sõnum 15.06.2008 19:56:56 vasta tsitaadiga

ei oska keegi siis aidata ? :/
tagasi üles
vaata kasutaja infot saada privaatsõnum
mikk36
HV Guru
mikk36

liitunud: 21.02.2004




sõnum 15.06.2008 20:11:51 vasta tsitaadiga

hakka aga heaga treppima ja vaata kus viga välja ilmneb
Kommentaarid: 85 loe/lisa Kasutajad arvavad:  :: 0 :: 2 :: 78
tagasi üles
vaata kasutaja infot saada privaatsõnum
andrusny
Kreisi kasutaja
andrusny

liitunud: 20.03.2006




sõnum 15.06.2008 20:19:58 vasta tsitaadiga

tsitaat:
$ret.='</TD>';$ret.='<TD class=table_td align=center>';

sellist jama on see värk täis. tuleks ometi kokku kirjutada.

$ret.='</TD><TD class=table_td align=center>';

_________________
Kommentaarid: 7 loe/lisa Kasutajad arvavad:  :: 0 :: 0 :: 7
tagasi üles
vaata kasutaja infot saada privaatsõnum mine selle kasutaja kodulehele
linnumees
HV kasutaja

liitunud: 15.06.2005




sõnum 15.06.2008 20:25:59 vasta tsitaadiga

http://puu.ee/inc_system.phps
Kommentaarid: 3 loe/lisa Kasutajad arvavad:  :: 0 :: 0 :: 3
tagasi üles
vaata kasutaja infot saada privaatsõnum mine selle kasutaja kodulehele
nene
Kreisi kasutaja
nene

liitunud: 20.03.2004




sõnum 15.06.2008 20:40:57 vasta tsitaadiga

Lasin selle faili PHP-st läbi ja mingit süntaksiviga seal küll ei paista olevat.

unexpected $end tähendab seda, et su PHP fail lõpeb enneaegu ära. See kood, mis sa siia foorumisse kopeerisid lõpeb tõesti ootamatult, nagu ka andrusny mainis. Kuid fail, mille üles riputasid paistab korras olevat. Seega proovi näiteks uuesti serverisse uploadida vms.
Kommentaarid: 24 loe/lisa Kasutajad arvavad:  :: 0 :: 1 :: 23
tagasi üles
vaata kasutaja infot saada privaatsõnum mine selle kasutaja kodulehele
oicu
HV kasutaja

liitunud: 23.11.2006




sõnum 17.06.2008 13:06:54 vasta tsitaadiga

kõrvakiil tuleks sellise koodi eest anda icon_evil.gif
Kommentaarid: 9 loe/lisa Kasutajad arvavad:  :: 0 :: 0 :: 9
tagasi üles
vaata kasutaja infot saada privaatsõnum
opiou.org
HV vaatleja

liitunud: 28.04.2008




sõnum 18.06.2008 15:21:16 vasta tsitaadiga

oicu kirjutas:
kõrvakiil tuleks sellise koodi eest anda icon_evil.gif

tule anna ka siis .
tagasi üles
vaata kasutaja infot saada privaatsõnum
oicu
HV kasutaja

liitunud: 23.11.2006




sõnum 18.06.2008 15:35:21 vasta tsitaadiga

ma ei hakka kellelegi kõrvakiilu andma, kuid koodi võiks enne ära treppida, siis vaevub keegi seda lugema ka.
Kommentaarid: 9 loe/lisa Kasutajad arvavad:  :: 0 :: 0 :: 9
tagasi üles
vaata kasutaja infot saada privaatsõnum
nene
Kreisi kasutaja
nene

liitunud: 20.03.2004




sõnum 18.06.2008 20:59:46 vasta tsitaadiga

Jätaks nüüd selle lahmimise. Ilmselgelt pole see ju opiou.org süü, et too kood treppimata on, vaid hoopis tolle koodi tegeliku autori süü, kes tahtlikult kogu koodi üheks pikaks reaks muutis. Muidugi, opiou.org oleks võinud aimata, et sellise koodi siia kopeerimine pole eriti mõistlik tegu.

Enivei, ma pakkusin oma eelmises postituses välja, milles tõenäoliselt probleem on, kuid opiou.org pole mu arvamust ei kinnitanud ega ka ümber lükanud.
Kommentaarid: 24 loe/lisa Kasutajad arvavad:  :: 0 :: 1 :: 23
tagasi üles
vaata kasutaja infot saada privaatsõnum mine selle kasutaja kodulehele
opiou.org
HV vaatleja

liitunud: 28.04.2008




sõnum 18.06.2008 21:17:40 vasta tsitaadiga

nene kirjutas:
Lasin selle faili PHP-st läbi ja mingit süntaksiviga seal küll ei paista olevat.

unexpected $end tähendab seda, et su PHP fail lõpeb enneaegu ära. See kood, mis sa siia foorumisse kopeerisid lõpeb tõesti ootamatult, nagu ka andrusny mainis. Kuid fail, mille üles riputasid paistab korras olevat. Seega proovi näiteks uuesti serverisse uploadida vms.


Lasin üle , töötas !
tagasi üles
vaata kasutaja infot saada privaatsõnum
näita postitusi alates eelmisest:   
uus teema   vasta Tarkvara »  WWW »  Parse error
[vaata eelmist teemat] [vaata järgmist teemat]
 lisa lemmikuks
näita foorumit:  
 ignoreeri teemat 
sa ei või postitada uusi teemasid siia foorumisse
sa ei või vastata selle foorumi teemadele
sa ei või muuta oma postitusi selles foorumis
sa ei või kustutada oma postitusi selles foorumis
sa ei või vastata küsitlustele selles foorumis
sa ei saa lisada manuseid selles foorumis
sa võid manuseid alla laadida selles foorumis



Hinnavaatlus ei vastuta foorumis tehtud postituste eest.