print "<html dir=rtl> <META http-equiv=Content-Language content=\"ar-sa\" /> <META http-equiv=Content-Type content=\"text/html; charset=windows-1256\" /> <LINK href=\"css.php\" type=\"text/css\" rel=\"stylesheet\"> <title>гАеЕогагй</title>\n"; open_table(); if(check_member_login()){ if($action=="send"){ $msg = trim($msg); $msg = htmlspecialchars($msg); if (!$_COOKIE['songs_dedi_added']){ if((strlen($msg) >= $dedi_msg_min) && (strlen($msg) <= $dedi_msg_max)){ db_query("insert into songs_dedications(user,msg,date,active)values('".db_clean_string($member_data['username'])."','".db_clean_string($msg)."',now(),'".iif($dedications_admin_review,0,1)."')"); print "<center> йЦ гясгА гЕогфъ </center>"; print "<script> opener.dedications_frame.refresh(); </script>"; }else{ print "<center> зщФг , Млх гД йъФД ясгАйъ гчА ЦД $dedi_msg_max мящ Ф гъкя ЦД $dedi_msg_min цмящ</center>"; } }else{ print "<center> зщФг , МЦъДъ гясгА гЕога ъА $dedi_timeout кгДМи </center>"; } }else{
if(in_array($img_imtype,$img_upload_types)){ $fl = new save_file($_FILES['img_datafile']['tmp_name'],$upload_folder,$_FILES['img_datafile']['name']); if($fl->status){ $img_saved = $fl->saved_filename; }else{ $img_warn =1; } }else{ $img_warn = 1; } } //-------------------------------// db_query("insert into members_files (name,url,img,details,userid,cat,date,singer,filetype) values ('".db_clean_string($name)."','$saveto_filename','$img_saved','".db_clean_string($details)."','$userid','$cat',now(),'$singer','$type')"); print "<center> شكرا لك , لقد تم ارسال الملف بنجاح و سوف تقوم الادارة بمراجعته في اقرب وقت ممكن </center>"; }else{ print("<center>".$fl->last_error_description."</center>"); die(); } }else{ print "<center> نوع الملف غير مسموح به </center>"; } } }else{ print "<center> لم يتم ادخال اسم الملف </center>"; } }else{
print "<p align=center class=title> ÇáÅåÏÇÆÇÊ </p>" ; //-------------- del -------------------- if($action=="dedications_del"){ if(!is_array($d_id)){$d_id=array($id);} foreach($d_id as $del_id){ db_query("delete from songs_dedications where id='$del_id'"); } } //---------- edit ------------------- if($action=="dedications_edit_ok"){ db_query("update songs_dedications set user='******',msg='".db_clean_string($msg)."' where id='$id'"); } //----------- enable -------------- if($action=="dedications_enable"){ db_query("update songs_dedications set active=1 where id='$id'"); } //----------- disable -------------- if($action=="dedications_disable"){ db_query("update songs_dedications set active=0 where id='$id'"); } $qr = db_query("select * from songs_dedications order by active asc , id desc limit 100"); if(db_num($qr)){