query_first('select user_balance from sms_user where user_id = ' . $_SESSION['user']); PrintLoggedMenu(); return; } PrintVisitorMenu(); } function PrintLoggedMenu() { global $DB_site; $item = $DB_site->query_first('select user_balance from sms_user where user_id = ' . $_SESSION['user']); echo '
رسائل جاهزة اقتراح رسائل الملف الشخصي تسجيل خروج
'; echo '

الرصيد الحالي: ' . $item['user_balance'] . '
'; } function PrintVisitorMenu() { echo '
التسجيل تفعيل الحساب نسيت كلمة المرور تسجيل دخول
'; echo '
      
'; } ?> window.location = '$page'; "; } function StripHtml($text) { $search = array ("']*?>.*?'si", // Strip out javascript "'<[\/\!]*?[^<>]*?>'si", // Strip out html tags "'&(quot|#34);'i", // Replace html entities "'&(amp|#38);'i", "'&(lt|#60);'i", "'&(gt|#62);'i", "'&(nbsp|#160);'i", "'&(iexcl|#161);'i", "'&(cent|#162);'i", "'&(pound|#163);'i", "'&(copy|#169);'i", "'&#(\d+);'e"); // evaluate as php $replace = array ("", "", "\\1", "\"", "&", "<", ">", " ", chr(161), chr(162), chr(163), chr(169), "chr(\\1)"); return @preg_replace ($search, $replace, $text); } function print_javascript_message($msg, $flag = false) { echo ''; if ($flag == true) { echo ''; } } function print_message($msg) { echo '
' . $msg . '
'; } function print_go_back($msg = 'عودة') { echo "
$msg
"; } function print_link($url, $msg = CLICK_HERE) { echo "
$msg
"; } ///////////////////////////////////////////////////////////////////////////////////// $perpage = 5; //عدد الصفوف في كل صفحة function naifhreftag($url, $text, $title = '') { return '' . $text . ''; } function ifelse($expression, $returntrue, $returnfalse) { if($expression) return $returntrue; else return $returnfalse; } function naifpagelink($link, $page_bar, $pages, $char = '?') { global $template; $pagelink = 'page: '; if ($page_bar - 5 > 1) { $pagelink .= '[' . naifhreftag($link . $char . 'page_bar=1', '«', 'fisrt') . '] '; } if ($page_bar > 1) { $pagelink .= '[' . naifhreftag($link . $char . 'page_bar=' . ($page_bar - 1), '‹', 'prev') . '] '; } $count = ifelse($page_bar + 5 >= $pages, $pages, $page_bar + 5); for ($i = $page_bar - 5; $i <= $count; $i++) { if ($i < 1) { $i = 1; } if ($i == $page_bar) { $pagelink .= "($i) "; } else { $pagelink .= '[' . naifhreftag($link . $char . 'page_bar=' . ($i), $i) . '] '; } } if ($page_bar < $pages) { $pagelink .= '[' . naifhreftag($link . $char . 'page_bar=' . ($page_bar + 1) , '›', 'next' ) . ']'; } if ($page_bar + 5 < $pages) { $pagelink .= '[' . naifhreftag($link . $char . 'page_bar=' . $pages, '»', 'final') . ']'; } return $pagelink; } ///////////////////////////////////////////////////////////////////////////////////// function OpenRightBox($title = '') { } function CloseRightBox() { } function OpenLeftBox($title = '') { } function CloseLeftBox() { } function OpenCenterBox($title = '') { } function CloseCenterBox() { } function PrintHeader() { //echo 'هنا الهيدر'; } function PrintFooter() { //echo 'هنا الفوتر'; echo '
Powered by www.cec.sy
'; } function ConvertoToUnicode1($text) { $arrytext = preg_split('//', $text, -1, PREG_SPLIT_NO_EMPTY); $characters = array ("0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","ء","آ","أ","ؤ","إ","ئ","ا","ب","ة","ت","ث","ج","ح","خ","د","ذ","ر","ز","س","ش","ص","ض","ط","ظ","ع","غ","ـ","ف","ق","ك","ل","م","ن","ه","و","ى","ي"," ","\r","\n","!","\"","#","$","%","&","'","(",")","*","+",",","-",".","/","@","~","^","_","|","`",":",";","<","=",">","?","؛","×","÷","‘","ٌ","ُ","ً","َ","ّ","؟","’","{","}","ْ","[","]","ِ","ٍ"); $unicode_trans = array ("0030","0031","0032","0033","0034","0035","0036","0037","0038","0039","0041","0042","0043","0044","0045","0046","0047","0048","0049","004A","004B","004C","004D","004E","004F","0050","0051","0052","0053","0054","0055","0056","0057","0058","0059","005A","0061","0062","0063","0064","0065","0066","0067","0068","0069","006A","006B","006C","006D","006E","006F","0070","0071","0072","0073","0074","0075","0076","0077","0078","0079","007A","0621","0622","0623","0624","0625","0626","0627","0628","0629","062A","062B","062C","062D","062E","062F","0630","0631","0632","0633","0634","0635","0636","0637","0638","0639","063A","0640","0641","0642","0643","0644","0645","0646","0647","0648","0649","064A","0020","000D","000A","0021","0022","0023","0024","0025","0026","0027","0028","0029","002A","002B","002C","002D","002E","002F","0040","007E","005E","005F","007C","0060","003A","003B","003C","003D","003E","003F","061B","00D7","00F7","0091","064C","064F","064B","064E","0651","061F","0092","007B","007D","0652","005B","005D","0650","064D"); $text = ''; for ($i = 0; $i < count($arrytext); $i++) { if ($arrytext[$i] == '0') { $text2[$i] = '0030'; } else if ($arrytext[$i] == '1') { $text2[$i] = '0031'; } else if ($arrytext[$i] == '2') { $text2[$i] = '0032'; } else { $text2[$i] = str_replace ($characters, $unicode_trans, $arrytext[$i]); } $text = $text . $text2[$i]; } return $text; } function PrintRight() { //echo 'هنا اليمين'; } function PrintLeft() { //echo 'هنا اليسار'; } ?>