Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - asms

Pages: [1] 2
1
طريقه عرض المتوجدين في صفحه الصور والاقسام

مثال
{whos_online}
في صفحه detail.html

افتح detail.php
ابحث عن
define('ROOT_PATH', './');

اضف تحته
define('GET_USER_ONLINE', 1);

احفظ وجرب
search.html   --> modify search.php
top.html   --> modify top.php
الخ

2
Chit Chat / the OLD Version.. plz
« on: January 14, 2011, 03:57:50 AM »
the OLD Version.. plz
where iCan Get the old Version..
or any one have the old Version ..
shear it hear..

3
طريقة!! اضافة نص في ملف اللغة
يمكنك اضافة نص في ملف اللغة بحيث اذ كنت تستخدم
طريقة تغير اللغة
يمكنك وضع النص الجديد
في الثيم بحيث عند تغير اللغة يتغير النص حسب
اللغة مثال
   الطريقة سهلة جداّ ويمكنك وضع النص في اي صفحة في الثيم
ويمكنك اضافة النص في كل اللغات.
يجب استبدال 000 بــ كلمة انجليزية
افتح صفحة
include/page_header.php
ابحث عن
Code: [Select]
$lang = $site_template->parse_array($lang);

$site_template->register_vars(array(
اضف بعدة
Quote
  "lang_000_text" => $lang['000_text'],
افتح صفحة
lang/ملف اللغة العربية/main.php
ابحث عن
Code: [Select]
؟>اضف بعدة
Quote
$lang['000_text'] = "هنا يمكنك اضافة النص الذي تريد";
افتح صفحة
lang/اي لغة اخري/main.php
ابحث عن
Code: [Select]
؟>اضف بعدة
Quote
$lang['000_text'] = "هنا يمكنك اضافة النص الذي تريد بـ اللغة الاخري";
اضف
Quote
{lang_000_text}
في كل صفحة من الثيم
ارجو ان يكون الشرح سهل وبسيط
اي احد عندة استفسار انا با الخدمة

4
كلمات البحث بـ الفلاش
كلمات بحث الصور تتحرك بـ شكل جميل
   يمكنك وضعة في كل مكان في الصفحة في الثيم
يمكنك تعديل, حجم الخط ,لون الحط ,حجم الخط ,حجم الفلاش
يجب ان تكون مركب كلمات البحث
  ch€ri{Bi}² شكرا لـ



الموديل يعمل مع :
يعمل مع جميع النسخات


مثال + تحميل



مشاهد الـ مثال


مثال كلمات البحث با الفلاش




اعدادات الموديل







ملفات للتعديل

- lang/[ملفات اللغة المستخدامة]/main.php
- includes/page_header.php
- includes/functions.php
- Flash-Tag-Clouds in menue:
  - e.g. templates/[your_template_folder]/home.html




الملفات الجديدة


- templates/[your_template_folder]/flash_tag_clouds.swf
- templates/[your_template_folder]/swfobject.js





1:

حمل الملف المضغوط
ارسل الملف الي
 templates/[الثيم المستحدام]/




2:
افتح
 lang/[your_language_folder]/main.php
ابحث عن
Code: [Select]
?>اضف بعدة
Code: [Select]
//-----------------------------------------------------
//- Mod: Flash-Tag-Clouds by KW -------------------
//-----------------------------------------------------
$lang['flash_keyword_clouds'] = "كلمات البحث";



3:
افتح
 includes/page_header.php
ابحث عن
Code: [Select]
 "url_search" => $site_sess->url(ROOT_PATH."search.php"),
اضف بعدة

Code: [Select]
//--- Start Mod: Flash-Tag-Clouds by KW ---------------
  "flash_keyword_clouds" => get_flash_keyword_clouds(),
//--- End Mod: Flash-Tag-Clouds by KW -----------------





4:
افتح
 includes/functions.php
ابحث عن
Code: [Select]
?>
اضف بعدة

Code: [Select]
/*---------------------- Start MOD Flash-Tag-Clouds by KW --------------------*/
function get_flash_keyword_clouds() {
global $site_db, $lang, $site_sess, $mode;

/*-----------------------------------------------------------------------------*/
/*--- Start Setting / Einstellungen -------------------------------------------*/
$flash_tag_clouds_width  = "100%";       // Width from the Flash                / Breite der Flashanzeige
$flash_tag_clouds_height = "100";        // height from the Flash               / Höhe der Flashanzeige
$flash_tag_clouds_textcolor = "004C75";  // color from the flashtext            / Farbe des Flashtextes (e.g. 000000 or ffffff ...)
$flash_tag_clouds_textspeed = "200";     // speed from the flying text          / Geschwindigkeite de fliegenden Textes  (e.g. 150 or 200 ...)
$flash_tag_clouds_textlimit = "20";      // Limit- How many searchwords         / Limit- Wie viele Suchworte
$flash_tag_clouds_size_max = "60";       // Max. textsize                       / Max. Textgröße
$flash_tag_clouds_size_min = "20";       // Min. textsize                       / Min. Textgröße
$flash_tag_clouds_transparent = "true";  // Flash transparently: true or false  / Flash transparent: true oder false
$flash_tag_clouds_flashcolor = "ffffff"; // => if false: Bgcolor                / => falls false: Hintergrundfarbe  (e.g. ffffff or 000000 ...)
/*--- End Setting / Einstellungen ---------------------------------------------*/
/*-----------------------------------------------------------------------------*/

        $flash_tag_clouds_text = "var so = new SWFObject(\"".TEMPLATE_PATH."/flash_tag_clouds.swf\", \"tagcloud\", \"".$flash_tag_clouds_width."\", \"".$flash_tag_clouds_height."\", \"7\", \"#".$flash_tag_clouds_flashcolor."\"); \n";
        if ($flash_tag_clouds_transparent == 'true') {
        $flash_tag_clouds_text .= "so.addParam(\"wmode\", \"transparent\"); \n";
        }
        $flash_tag_clouds_text .= "so.addVariable(\"tcolor\", \"0x".$flash_tag_clouds_textcolor."\");\n";
        $flash_tag_clouds_text .= "so.addVariable(\"mode\", \"tags\"); \n";
        $flash_tag_clouds_text .= "so.addVariable(\"distr\", \"true\"); \n";
        $flash_tag_clouds_text .= "so.addVariable(\"tspeed\", \"".$flash_tag_clouds_textspeed."\"); \n";
        $flash_tag_clouds_text .= "so.addVariable(\"tagcloud\", \"<tags>";
$sql = "SELECT i.word_id, i.word_text, COUNT(c.word_id) AS quantity
        FROM ".WORDLIST_TABLE." i
        LEFT JOIN ".WORDMATCH_TABLE." c ON i.word_id = c.word_id
        WHERE keys_match > 0
        GROUP BY i.word_text
        ORDER BY  RAND()
        LIMIT $flash_tag_clouds_textlimit";
$result = $site_db->query($sql);
while ($row = $site_db->fetch_array($result)) {
$tags[$row['word_text']] = $row['quantity'];
}
        $max_qty = max(array_values($tags));
        $min_qty = min(array_values($tags));

        $spread = $max_qty - $min_qty;
        if ($spread == 0) {
        $spread = 1;
        }
        $step = ($flash_tag_clouds_size_max - $flash_tag_clouds_size_min) / ($spread);
        foreach ($tags as $key => $value) {
        $size = round($flash_tag_clouds_size_min + (($value - $min_qty) * $step));
        // clean keys for flashtext:
        $key2 = $key;
        $key2 = str_replace('"',' ',$key2);
        $key2 = str_replace('&',' ',$key2);
        $key2 = str_replace('%',' ',$key2);
        $key2 = str_replace('>',' ',$key2);
        $key2 = str_replace('<',' ',$key2);
        $key2 = str_replace('+',' ',$key2);
        //
        $flash_tag_clouds_text .= "<a href='".$site_sess->url(ROOT_PATH."search.php?search_keywords=".$key.((!empty($mode)) ? "&amp;mode=".$mode : ""))."' style='".$size."'>".$key2." [".$value."]</a>";
        }
return $flash_tag_clouds_text;
}
/*----------------------- End MOD Flash-Tag-Clouds by KW ---------------------*/





5:
اضفة في اي مكان في
الصفحة الرئيسية
  - open templates/[your_template_folder]/home.html
ابحث عن

Code: [Select]
{if random_image}
اضف بعدة

Code: [Select]
                 <!--  Start Mod: Flash-Tag-Clouds by KW  -->
                  <table width="100%" border="0" cellspacing="0" cellpadding="0">
                    <tr>
                      <td class="head1">
                        <table width="100%" border="0" cellspacing="0" cellpadding="4">
                          <tr>
                            <td class="head2" valign="top">{lang_flash_keyword_clouds}</td>
                          </tr>
                        </table>
                      </td>
                    </tr>
                    <tr>
                      <td class="row1">
                      <script type="text/javascript" src="{template_url}/swfobject.js"></script>
                      <div id="flashcontent_menue" style="border: 0px solid #000000;">Install flash.</div>
                      <script type="text/javascript">
                      {flash_keyword_clouds}</tags>");
                      so.write("flashcontent_menue");
                     </script>
                     <br />
                    </td>
                   </tr>
                   </table>
                  <!--  End Mod: Flash-Tag-Clouds by KW  -->



6:
يمكنك اضافتة في كل مكان في الثيم
 search.html, lightbox.html, member.html, categories.html, details.html
اضف هذ في كل صفحة

Code: [Select]
                 <!--  Start Mod: Flash-Tag-Clouds by KW  -->
                  <table width="100%" border="0" cellspacing="1" cellpadding="0" class="head1">
                    <tr>
                      <td class="head1">
                        <table width="100%" border="0" cellspacing="0" cellpadding="4">
                          <tr>
                            <td class="head1" valign="top">{lang_flash_keyword_clouds}</td>
                          </tr>
                        </table>
                      </td>
                    </tr>
                    <tr>
                      <td class="row1">
                      <script type="text/javascript" src="{template_url}/swfobject.js"></script>
                      <div id="flashcontent_page" style="border: 0px solid #000000;">Install flash.</div>
                      <script type="text/javascript">
                      {flash_keyword_clouds}</tags>");
                      so.write("flashcontent_page");
                     </script>
                    </td>
                   </tr>
                   </table>
                   <br />
                  <!--  End Mod: Flash-Tag-Clouds by KW  -->




8:
يمكنك التعديل علي حجم الخط
لون الخط حجم الفلاش..الخ
من هذة الصفحة
 includes/functions.php


النهاية...
KurtWشكرا لـ
علي الموديل الروعة

5
Arabic / قسم الدعم الفني / طريقة عمل مشرف
« on: October 28, 2008, 08:25:15 PM »
الطريقة با
 Español
http://www.4homepages.de/forum/index.php?topic=17155.0
---------------------------------------
الملفات الجديدة
install_moderador.php
---------------------------------------
الملفات التي سيتم التعديل علية
details.php
lang/main.php
lang/admin.php
include/constans.php
include/page_header.php
templates/defauld/footer.html
admin/admin_functions.php
admin/email.php
admin/admin_global.php
admin/index.php
admin/users.php
--------------------------------------
افتح صفحة
details.php 
ابحث عن
Code: [Select]
$admin_links = "";
      if ($user_info['user_level'] == ADMIN) {
        $admin_links .= "<a href=\"".$site_sess->url(ROOT_PATH."admin/index.php?goto=".urlencode("comments.php?action=editcomment&amp;comment_id=".$comment_row[$i]['comment_id']))."\" target=\"_blank\">".$lang['edit']."</a>&nbsp;";
        $admin_links .= "<a href=\"".$site_sess->url(ROOT_PATH."admin/index.php?goto=".urlencode("comments.php?action=removecomment&amp;comment_id=".$comment_row[$i]['comment_id']))."\" target=\"_blank\">".$lang['delete']."</a>";
      }
      elseif ($is_image_owner) {
        $admin_links .= ($config['user_edit_comments'] != 1) ? "" : "<a href=\"".$site_sess->url(ROOT_PATH."member.php?action=editcomment&amp;".URL_COMMENT_ID."=".$comment_row[$i]['comment_id'])."\">".$lang['edit']."</a>&nbsp;";
        $admin_links .= ($config['user_delete_comments'] != 1) ? "" : "<a href=\"".$site_sess->url(ROOT_PATH."member.php?action=removecomment&amp;".URL_COMMENT_ID."=".$comment_row[$i]['comment_id'])."\">".$lang['delete']."</a>";
      }
استبدلة با
Code: [Select]
///// Nuevo tipo de usuarios /////
      /* ******* Antes ********
      $admin_links = "";
      if ($user_info['user_level'] == ADMIN) {
        $admin_links .= "<a href=\"".$site_sess->url(ROOT_PATH."admin/index.php?goto=".urlencode("comments.php?action=editcomment&amp;comment_id=".$comment_row[$i]['comment_id']))."\" target=\"_blank\">".$lang['edit']."</a>&nbsp;";
        $admin_links .= "<a href=\"".$site_sess->url(ROOT_PATH."admin/index.php?goto=".urlencode("comments.php?action=removecomment&amp;comment_id=".$comment_row[$i]['comment_id']))."\" target=\"_blank\">".$lang['delete']."</a>";
      }
      elseif ($is_image_owner) {
        $admin_links .= ($config['user_edit_comments'] != 1) ? "" : "<a href=\"".$site_sess->url(ROOT_PATH."member.php?action=editcomment&amp;".URL_COMMENT_ID."=".$comment_row[$i]['comment_id'])."\">".$lang['edit']."</a>&nbsp;";
        $admin_links .= ($config['user_delete_comments'] != 1) ? "" : "<a href=\"".$site_sess->url(ROOT_PATH."member.php?action=removecomment&amp;".URL_COMMENT_ID."=".$comment_row[$i]['comment_id'])."\">".$lang['delete']."</a>";
      }
      // ******* Ahora *********
      */
      $admin_links = "";
      if ($user_info['user_level'] == ADMIN || ($user_info['user_level'] == MODERADOR && $user_info['user_moderador_comentarios'] == 1)) {
      $admin_links .= "<a href=\"".$site_sess->url(ROOT_PATH."admin/index.php?goto=".urlencode("comments.php?action=editcomment&amp;comment_id=".$comment_row[$i]['comment_id']))."\" target=\"_blank\">".$lang['edit']."</a>&nbsp;";
        $admin_links .= "<a href=\"".$site_sess->url(ROOT_PATH."admin/index.php?goto=".urlencode("comments.php?action=removecomment&amp;comment_id=".$comment_row[$i]['comment_id']))."\" target=\"_blank\">".$lang['delete']."</a>";
      }
      elseif ($is_image_owner) {
        $admin_links .= ($config['user_edit_comments'] != 1) ? "" : "<a href=\"".$site_sess->url(ROOT_PATH."member.php?action=editcomment&amp;".URL_COMMENT_ID."=".$comment_row[$i]['comment_id'])."\">".$lang['edit']."</a>&nbsp;";
        $admin_links .= ($config['user_delete_comments'] != 1) ? "" : "<a href=\"".$site_sess->url(ROOT_PATH."member.php?action=removecomment&amp;".URL_COMMENT_ID."=".$comment_row[$i]['comment_id'])."\">".$lang['delete']."</a>";
      }
      ///// Fin nuevo tipo de usuario /////
ابحث مرة اخري
Code: [Select]
$admin_links = "";
if ($user_info['user_level'] == ADMIN) {
  $admin_links .= "<a href=\"".$site_sess->url(ROOT_PATH."admin/index.php?goto=".urlencode("images.php?action=editimage&amp;image_id=".$image_id))."\" target=\"_blank\">".$lang['edit']."</a>&nbsp;";
  $admin_links .= "<a href=\"".$site_sess->url(ROOT_PATH."admin/index.php?goto=".urlencode("images.php?action=removeimage&amp;image_id=".$image_id))."\" target=\"_blank\">".$lang['delete']."</a>";
}
elseif ($is_image_owner) {
  $admin_links .= ($config['user_edit_image'] != 1) ? "" : "<a href=\"".$site_sess->url(ROOT_PATH."member.php?action=editimage&amp;".URL_IMAGE_ID."=".$image_id)."\">".$lang['edit']."</a>&nbsp;";
  $admin_links .= ($config['user_delete_image'] != 1) ? "" : "<a href=\"".$site_sess->url(ROOT_PATH."member.php?action=removeimage&amp;".URL_IMAGE_ID."=".$image_id)."\">".$lang['delete']."</a>";
}
استبدلة با
Code: [Select]
///// Nuevo tipo de usuarios /////
/* ******* Antes ********
// Admin Links
$admin_links = "";
if ($user_info['user_level'] == ADMIN) {
  $admin_links .= "<a href=\"".$site_sess->url(ROOT_PATH."admin/index.php?goto=".urlencode("images.php?action=editimage&amp;image_id=".$image_id))."\" target=\"_blank\">".$lang['edit']."</a>&nbsp;";
  $admin_links .= "<a href=\"".$site_sess->url(ROOT_PATH."admin/index.php?goto=".urlencode("images.php?action=removeimage&amp;image_id=".$image_id))."\" target=\"_blank\">".$lang['delete']."</a>";
}
elseif ($is_image_owner) {
  $admin_links .= ($config['user_edit_image'] != 1) ? "" : "<a href=\"".$site_sess->url(ROOT_PATH."member.php?action=editimage&amp;".URL_IMAGE_ID."=".$image_id)."\">".$lang['edit']."</a>&nbsp;";
  $admin_links .= ($config['user_delete_image'] != 1) ? "" : "<a href=\"".$site_sess->url(ROOT_PATH."member.php?action=removeimage&amp;".URL_IMAGE_ID."=".$image_id)."\">".$lang['delete']."</a>";
}
// ******* Ahora *********
*/
$admin_links = "";
if ($user_info['user_level'] == ADMIN || ($user_info['user_level'] == MODERADOR && $user_info['user_moderador_imagenes'] == 1)) {
        $admin_links .= "<a href=\"".$site_sess->url(ROOT_PATH."admin/index.php?goto=".urlencode("images.php?action=editimage&amp;image_id=".$image_id))."\" target=\"_blank\">".$lang['edit']."</a>&nbsp;";
  $admin_links .= "<a href=\"".$site_sess->url(ROOT_PATH."admin/index.php?goto=".urlencode("images.php?action=removeimage&amp;image_id=".$image_id))."\" target=\"_blank\">".$lang['delete']."</a>";
}
elseif ($is_image_owner) {
  $admin_links .= ($config['user_edit_image'] != 1) ? "" : "<a href=\"".$site_sess->url(ROOT_PATH."member.php?action=editimage&amp;".URL_IMAGE_ID."=".$image_id)."\">".$lang['edit']."</a>&nbsp;";
  $admin_links .= ($config['user_delete_image'] != 1) ? "" : "<a href=\"".$site_sess->url(ROOT_PATH."member.php?action=removeimage&amp;".URL_IMAGE_ID."=".$image_id)."\">".$lang['delete']."</a>";
}
///// Fin nuevo tipo de usuario /////
افتح صفحة
 lang/ملف اللغة العربية/main.php
ابحث عن
Code: [Select]
$lang['userlevel_admin'] = "مدير";اضف بعدة
Code: [Select]
////// Nuevo tipo usuario /////
$lang['userlevel_moderador'] = "مشرف";
///// Fin nuevo tipo usuario ///////
افتح صفحة
lang/ملف اللغة العربية/admin.php
ابحث عن
Code: [Select]
$lang['userlevel_admin'] = "مدير";اضف بعدة
Code: [Select]
///// Nuevo tipo de usuario /////
$lang['userlevel_moderador'] = "Moderadores";
/////// Fin nuevo tipo de usuario /////
ابحث مرة اخري
Code: [Select]
$lang['field_usergroup_name'] = "عنوان المجموعة";اضف بعدة
Code: [Select]
/////// Nuevo tipo de usuario //////////
$lang['field_moderador_categorias'] = "التحكم با الاقسام ? :";
$lang['field_moderador_imagenes'] = "التحكم با الصور  ? :";
$lang['field_moderador_comentarios'] = "التحكم با التعليقات ? :";
$lang['field_moderador_usuarios'] = "التحكم با الاعضاء ? :";
/////// Fin nuevo tipo de usuario ////////
ابحث مرة اخري
Code: [Select]
$lang['nav_users_email'] = "أرسل بريد";اضف بعدة
Code: [Select]
////// Nuevo tipo de usuario //////
$lang['nav_users_moderadores_main'] = "مشرف";
$lang['nav_users_moderadores_edit'] = "تعديل المشرف";
///// Fin nuevo tipo de usuario //////
افتح صفحة
Code: [Select]
include/constans.php
// User levels
define('GUEST', -1);
define('USER_AWAITING', 1);
define('USER', 2);
define('ADMIN', 9);
اضف بعدة
Code: [Select]
///// Nuevo tipo de usuario //////
define('MODERADOR', 5);
////// Fin nuevo tipo de usuario ///////
ابحث عن
Code: [Select]
// Permission levels
define('AUTH_ALL', 0);
define('AUTH_USER', 2);
define('AUTH_ACL', 3);
define('AUTH_ADMIN', 9);
اضف بعدة
Code: [Select]
///// Nuevo tipo de usuario //////
define('AUTH_MODERADOR', 5);
////// Fin nuevo tipo de usuario ///////
ابحث عن
Code: [Select]
define('ADMIN_SAFE_LOGIN', 0);اضف بعدة
Code: [Select]
///// Nuevo tipo de usuario //////
define('MODERADOR_SAFE_LOGIN', 0);
////// Fin nuevo tipo de usuario ///////
افتح صفحة
 include/page_header.php
ابحث عن
Code: [Select]
  "cp_link" => ($user_info['user_level'] != ADMIN) ? "" : "\n<p align=\"center\">[<a href=\"".$site_sess->url(ROOT_PATH."admin/index.php")."\">Admin Control Panel</a>]</p>\n",اضف بعدة
Code: [Select]
///// Nuevo tipo de usuario //////
  "cp_moderador" => ($user_info['user_level'] != MODERADOR) ? "" : "\n<p align=\"center\">[<a href=\"".$site_sess->url(ROOT_PATH."admin/index.php")."\">Moderador Control Panel</a>]</p>\n",
  ////// Fin nuevo tipo de usuario ///////
افتح صفحة
templates/الثيم المستخدم/footer.html
ابحث عن
Code: [Select]
{cp_link}استبدلة با
Code: [Select]
{cp_link}{cp_moderador}افتح صفحة
 admin/admin_functions.php
ابحث عن
Code: [Select]
  echo ">".$lang['userlevel_admin']."</option>\n";اضف بعدة
Code: [Select]
///// Nuevo tipo de usuario //////
  echo "<option value=\"".MODERADOR."\"";
  if ($userlevel == MODERADOR && $userlevel != "") {
    echo " selected=\"selected\"";
  }
  echo ">".$lang['userlevel_moderador']."</option>\n";
   ////// Fin nuevo tipo de usuario ///////
ابحث مرة اخري
Code: [Select]
echo ">".$lang['userlevel_registered_awaiting']."</option>\n";
  echo "</select>\n</td>\n</tr>\n";
}
اضف بعدة
Code: [Select]
///// Nuevo tipo de usuario //////
function show_userlevel_select_row_moderadores($title, $name = "user_level", $userlevel = "") {
  global $lang, $error, $HTTP_POST_VARS;
  if (isset($error[$name])) {
    $title = sprintf("<span class=\"marktext\">%s *</span>", $title);
  }
  if (isset($HTTP_POST_VARS[$name])/* && $userlevel == ""*/) {
    $userlevel = stripslashes($HTTP_POST_VARS[$name]);
  }
  echo "<tr class=\"".get_row_bg()."\">\n<td><p class=\"rowtitle\">".$title."</p></td>\n<td>\n";
  echo "<select name=".$name.">\n";
  echo "<option value=\"".GUEST."\"";
  if ($userlevel == GUEST || $userlevel == "") {
    echo " selected=\"selected\"";
  }
  echo ">--</option>\n";
  echo "<option value=\"".USER."\"";
  if ($userlevel == USER && $userlevel != "") {
    echo " selected=\"selected\"";
  }
   echo ">".$lang['userlevel_registered']."</option>\n";
  echo "<option value=\"".USER_AWAITING."\"";
  if ($userlevel == USER_AWAITING && $userlevel != "") {
    echo " selected=\"selected\"";
  }
  echo ">".$lang['userlevel_registered_awaiting']."</option>\n";
  echo "</select>\n</td>\n</tr>\n";
}
//////// Fin nuevo tipo de usuario //////
افتح صفحة
admin/email.php
Code: [Select]
$select .= "<option value=\"0\" class=\"dropdownmarker\">".$lang['userlevel_admin']."</option>\n";
    }
اضف بعدة
Code: [Select]
///// Nuevo tipo de usuario //////
    elseif ($level != $user_level && $user_level == MODERADOR) {
      $select .= "<option value=\"0\">__________________________</option>\n";
      $select .= "<option value=\"0\" class=\"dropdownmarker\">".$lang['userlevel_moderador']."</option>\n";
    }
////// Fin nuevo tipo de usuario //////
admin/admin_global.php
ابحث عن
Code: [Select]
if (defined('ADMIN_SAFE_LOGIN') && ADMIN_SAFE_LOGIN == 1) {
  if ($user_info['user_level'] != GUEST && $user_info['user_level'] == ADMIN && isset($HTTP_POST_VARS['loginusername'])) {
    setcookie("adminon", 1, 0, '/');
    $HTTP_COOKIE_VARS['adminon'] = 1;
  }
  else {
    if ($user_info['user_level'] == GUEST || $user_info['user_level'] == USER || $user_info['user_level'] == USER_AWAITING) {
      $HTTP_COOKIE_VARS['adminon'] = 0;
    }
  }

  if (!isset($HTTP_COOKIE_VARS['adminon']) || $HTTP_COOKIE_VARS['adminon'] == 0) {
    $user_info['user_level'] = GUEST;
  }
  else {
    if ($user_info['user_level'] != GUEST  && $user_info['user_level'] == ADMIN && isset($HTTP_POST_VARS['loginusername'])) {
      setcookie("adminon", 1, 0, '/');
      $HTTP_COOKIE_VARS['adminon'] = 1;
    }
  }
}
استبدلة با
Code: [Select]
/////// Nuevo tipo de usuario ///////
/*
///// Antes
if (defined('ADMIN_SAFE_LOGIN') && ADMIN_SAFE_LOGIN == 1) {
  if ($user_info['user_level'] != GUEST && $user_info['user_level'] == ADMIN && isset($HTTP_POST_VARS['loginusername'])) {
    setcookie("adminon", 1, 0, '/');
    $HTTP_COOKIE_VARS['adminon'] = 1;
  }
  else {
    if ($user_info['user_level'] == GUEST || $user_info['user_level'] == USER || $user_info['user_level'] == USER_AWAITING) {
      $HTTP_COOKIE_VARS['adminon'] = 0;
    }
  }

  if (!isset($HTTP_COOKIE_VARS['adminon']) || $HTTP_COOKIE_VARS['adminon'] == 0) {
    $user_info['user_level'] = GUEST;
  }
  else {
    if ($user_info['user_level'] != GUEST  && $user_info['user_level'] == ADMIN && isset($HTTP_POST_VARS['loginusername'])) {
      setcookie("adminon", 1, 0, '/');
      $HTTP_COOKIE_VARS['adminon'] = 1;
    }
  }
}
*/
///////// Ahora
if ((defined('ADMIN_SAFE_LOGIN') && ADMIN_SAFE_LOGIN == 1) || (defined('MODERADOR_SAFE_LOGIN') && MODERADOR_SAFE_LOGIN == 1)){
  if ($user_info['user_level'] != GUEST && $user_info['user_level'] != MODERADOR && $user_info['user_level'] == ADMIN && isset($HTTP_POST_VARS['loginusername'])) {
    setcookie("adminon", 1, 0, '/');
    $HTTP_COOKIE_VARS['adminon'] = 1;
  }
  else {
    if ($user_info['user_level'] == GUEST || $user_info['user_level'] == MODERADOR || $user_info['user_level'] == USER || $user_info['user_level'] == USER_AWAITING) {
      $HTTP_COOKIE_VARS['adminon'] = 0;
    }
  }
if ($user_info['user_level'] != GUEST && $user_info['user_level'] == MODERADOR && $user_info['user_level'] != ADMIN && isset($HTTP_POST_VARS['loginusername'])) {
    setcookie("moderadoron", 1, 0, '/');
    $HTTP_COOKIE_VARS['moderadoron'] = 1;
  }
  else {
    if ($user_info['user_level'] == GUEST || $user_info['user_level'] == ADMIN || $user_info['user_level'] == USER || $user_info['user_level'] == USER_AWAITING) {
      $HTTP_COOKIE_VARS['moderadoron'] = 0;
    }
  }
  if (!isset($HTTP_COOKIE_VARS['adminon']) || $HTTP_COOKIE_VARS['adminon'] == 0 || !isset($HTTP_COOKIE_VARS['moderadoron']) || $HTTP_COOKIE_VARS['moderadoron'] == 0) {
    $user_info['user_level'] = GUEST;
  }
  else {
    if ($user_info['user_level'] != GUEST  && $user_info['user_level'] != MODERADOR && $user_info['user_level'] == ADMIN && isset($HTTP_POST_VARS['loginusername'])) {
      setcookie("adminon", 1, 0, '/');
      $HTTP_COOKIE_VARS['adminon'] = 1;
    }

else {
    if ($user_info['user_level'] != GUEST  && $user_info['user_level'] == MODERADOR  && $user_info['user_level'] != ADMIN && isset($HTTP_POST_VARS['loginusername'])) {
      setcookie("moderadoron", 1, 0, '/');
      $HTTP_COOKIE_VARS['moderadoron'] = 1;
    }
  }
  }
}
////// Fin nuevo tipo de usuario ///////
ابحث مرة اخري
Code: [Select]
if ($user_info['user_level'] != ADMIN) {استبدلة با
Code: [Select]
if ($user_info['user_level'] != ADMIN) {
افتح
 admin/index.php
ابحث عن
Code: [Select]
show_nav_header($lang['nav_categories_main']);
          show_nav_option($lang['nav_categories_edit'], "categories.php?action=modifycats");
          show_nav_option($lang['nav_categories_add'], "categories.php?action=addcat");

          show_nav_header($lang['nav_images_main']);
          show_nav_option($lang['nav_images_edit'], "images.php?action=modifyimages");
          show_nav_option($lang['nav_images_add'], "images.php?action=addimages");
          show_nav_option($lang['nav_images_validate'], "validateimages.php?action=validateimages");
          show_nav_option($lang['nav_images_check'], "checkimages.php?action=checkimages");
          show_nav_option($lang['nav_images_thumbnailer'], "thumbnailer.php?action=checkthumbnails");
          show_nav_option($lang['nav_images_resizer'], "resizer.php?action=selectoptions");

          show_nav_header($lang['nav_comments_main']);
          show_nav_option($lang['nav_comments_edit'], "comments.php?action=modifycomments");

          show_nav_header($lang['nav_users_main']);
          show_nav_option($lang['nav_users_edit'], "users.php?action=modifyusers");
          if (!defined('USER_INTEGRATION')) {
            show_nav_option($lang['nav_users_add'], "users.php?action=addusers");
          }
          show_nav_option($lang['nav_usergroups'], "usergroups.php?action=modifygroups");
          if (!defined('USER_INTEGRATION')) {
            show_nav_option($lang['nav_users_email'], "email.php?action=emailusers");
          }

          show_nav_header($lang['nav_general_main']);
          show_nav_option($lang['nav_general_settings'], "settings.php?action=modifysettings");
          show_nav_option($lang['nav_general_templates'], "templates.php?action=modifytemplates");
          show_nav_option($lang['nav_general_backup'], "backup.php?action=modifybackups");
          show_nav_option($lang['nav_general_stats'], "stats.php?action=resetstats");
show_nav_option("phpinfo()", "phpinfo.php");

          if (@is_dir("plugins")) {
            show_nav_header("PlugIns");
            $handle = @opendir("plugins/");
            while ($file = @readdir($handle)) {
              if (eregi("^\.{1,2}$", $file) || !eregi("\.php$", $file)) {
                continue;
              }
              $plugin_file = file("./plugins/".$file);
              $plugin_file[0] = trim($plugin_file[0]);
              if (preg_match("/PLUGIN_TITLE:([a-zäöüß0-9\-_ ]+)/i", $plugin_file[0], $regs)) {
                show_nav_option(trim($regs[1]), "./plugins/".$file);
              }
              else {
                show_nav_option($file, "./plugins/".$file);
              }
            }
استبدلة با
Code: [Select]
      //// Nuevo tipo de usuario /////////////
          /*
          // ********* Antes ************
          show_nav_header($lang['nav_categories_main']);
          show_nav_option($lang['nav_categories_edit'], "categories.php?action=modifycats");
          show_nav_option($lang['nav_categories_add'], "categories.php?action=addcat");

          show_nav_header($lang['nav_images_main']);
          show_nav_option($lang['nav_images_edit'], "images.php?action=modifyimages");
          show_nav_option($lang['nav_images_add'], "images.php?action=addimages");
          show_nav_option($lang['nav_images_validate'], "validateimages.php?action=validateimages");
          show_nav_option($lang['nav_images_check'], "checkimages.php?action=checkimages");
          show_nav_option($lang['nav_images_thumbnailer'], "thumbnailer.php?action=checkthumbnails");
          show_nav_option($lang['nav_images_resizer'], "resizer.php?action=selectoptions");

          show_nav_header($lang['nav_comments_main']);
          show_nav_option($lang['nav_comments_edit'], "comments.php?action=modifycomments");

          show_nav_header($lang['nav_users_main']);
          show_nav_option($lang['nav_users_edit'], "users.php?action=modifyusers");
          if (!defined('USER_INTEGRATION')) {
            show_nav_option($lang['nav_users_add'], "users.php?action=addusers");
          }
          show_nav_option($lang['nav_usergroups'], "usergroups.php?action=modifygroups");
          if (!defined('USER_INTEGRATION')) {
            show_nav_option($lang['nav_users_email'], "email.php?action=emailusers");
          }

          show_nav_header($lang['nav_general_main']);
          show_nav_option($lang['nav_general_settings'], "settings.php?action=modifysettings");
          show_nav_option($lang['nav_general_templates'], "templates.php?action=modifytemplates");
          show_nav_option($lang['nav_general_backup'], "backup.php?action=modifybackups");
          show_nav_option($lang['nav_general_stats'], "stats.php?action=resetstats");
show_nav_option("phpinfo()", "phpinfo.php");

          if (@is_dir("plugins")) {
            show_nav_header("PlugIns");
            $handle = @opendir("plugins/");
            while ($file = @readdir($handle)) {
              if (eregi("^\.{1,2}$", $file) || !eregi("\.php$", $file)) {
                continue;
              }
              $plugin_file = file("./plugins/".$file);
              $plugin_file[0] = trim($plugin_file[0]);
              if (preg_match("/PLUGIN_TITLE:([a-zäöüß0-9\-_ ]+)/i", $plugin_file[0], $regs)) {
                show_nav_option(trim($regs[1]), "./plugins/".$file);
              }
              else {
                show_nav_option($file, "./plugins/".$file);
              }
            }
          // ********* Ahora ************
          */
          if ($user_info['user_level'] == ADMIN || ($user_info['user_level'] == MODERADOR && $user_info['user_moderador_categorias'] == 1)) {
          show_nav_header($lang['nav_categories_main']);
          show_nav_option($lang['nav_categories_edit'], "categories.php?action=modifycats");
          show_nav_option($lang['nav_categories_add'], "categories.php?action=addcat");
          }
          if ($user_info['user_level'] == ADMIN || ($user_info['user_level'] == MODERADOR && $user_info['user_moderador_imagenes'] == 1)) {
          show_nav_header($lang['nav_images_main']);
          show_nav_option($lang['nav_images_edit'], "images.php?action=modifyimages");
          show_nav_option($lang['nav_images_add'], "images.php?action=addimages");
          show_nav_option($lang['nav_images_validate'], "validateimages.php?action=validateimages");
          show_nav_option($lang['nav_images_check'], "checkimages.php?action=checkimages");
          show_nav_option($lang['nav_images_thumbnailer'], "thumbnailer.php?action=checkthumbnails");
          show_nav_option($lang['nav_images_resizer'], "resizer.php?action=selectoptions");
          }
          if ($user_info['user_level'] == ADMIN || ($user_info['user_level'] == MODERADOR && $user_info['user_moderador_comentarios'] == 1)) {
          show_nav_header($lang['nav_comments_main']);
          show_nav_option($lang['nav_comments_edit'], "comments.php?action=modifycomments");
          }
          if ($user_info['user_level'] == ADMIN || ($user_info['user_level'] == MODERADOR && $user_info['user_moderador_usuarios'] == 1)) {
          show_nav_header($lang['nav_users_main']);
          show_nav_option($lang['nav_users_edit'], "users.php?action=modifyusers");
          if (!defined('USER_INTEGRATION')) {
            show_nav_option($lang['nav_users_add'], "users.php?action=addusers");
          }
          show_nav_option($lang['nav_usergroups'], "usergroups.php?action=modifygroups");
          if (!defined('USER_INTEGRATION')) {
            show_nav_option($lang['nav_users_email'], "email.php?action=emailusers");
          }
          }
         
         
    if ($user_info['user_level'] == ADMIN && $user_info['user_level'] != MODERADOR && $user_info['user_level'] != GUEST) {
          show_nav_header($lang['nav_users_moderadores_main']);
          show_nav_option($lang['nav_users_moderadores_edit'], "users.php?action=findusers&usuario=moderadores");
          show_nav_header($lang['nav_general_main']);
          show_nav_option($lang['nav_general_settings'], "settings.php?action=modifysettings");
          show_nav_option($lang['nav_general_templates'], "templates.php?action=modifytemplates");
          show_nav_option($lang['nav_general_backup'], "backup.php?action=modifybackups");
          show_nav_option($lang['nav_general_stats'], "stats.php?action=resetstats");
    show_nav_option("phpinfo()", "phpinfo.php");

          if (@is_dir("plugins")) {
            show_nav_header("PlugIns");
            $handle = @opendir("plugins/");
            while ($file = @readdir($handle)) {
              if (eregi("^\.{1,2}$", $file) || !eregi("\.php$", $file)) {
                continue;
              }
              $plugin_file = file("./plugins/".$file);
              $plugin_file[0] = trim($plugin_file[0]);
              if (preg_match("/PLUGIN_TITLE:([a-zäöüß0-9\-_ ]+)/i", $plugin_file[0], $regs)) {
                show_nav_option(trim($regs[1]), "./plugins/".$file);
              }
              else {
                show_nav_option($file, "./plugins/".$file);
              }
            }
          }
          ////////// Fin nuevo tipo de usuario //////
افتح
admin/users.php
ابحث عن
Code: [Select]
$user_invisible = intval($HTTP_POST_VARS['user_invisible']);استبدلة با
Code: [Select]
////// Nuevo tipo de usuario //////
   $user_moderador_categorias = intval($HTTP_POST_VARS['user_moderador_categorias']);
  $user_moderador_imagenes = intval($HTTP_POST_VARS['user_moderador_imagenes']);
  $user_moderador_comentarios = intval($HTTP_POST_VARS['user_moderador_comentarios']);
  $user_moderador_usuarios = intval($HTTP_POST_VARS['user_moderador_usuarios']);
  //// Fin nuevo tipo de usuario ////
ابحث مرة اخري
Code: [Select]
$sql = "UPDATE ".USERS_TABLE."
            SET ".get_user_table_field("", "user_level")." = $user_level, ".get_user_table_field("", "user_name")." = '$user_name',$passinsert ".get_user_table_field("", "user_email")." = '$user_email', ".get_user_table_field("", "user_showemail")." = $user_showemail, ".get_user_table_field("", "user_allowemails")." = $user_allowemails, ".get_user_table_field("", "user_invisible")." = $user_invisible, ".get_user_table_field("", "user_joindate")." = $user_joindate, ".get_user_table_field("", "user_lastaction")." = $user_lastaction, ".get_user_table_field("", "user_homepage")." = '$user_homepage', ".get_user_table_field("", "user_icq")." = '$user_icq'".$additional_sql."
            WHERE ".get_user_table_field("", "user_id")." = $user_id";
    $result = $site_db->query($sql);
استبدلة با
Code: [Select]
////////// Nuevo tipo de usuario //////
/* **** Antes *******
 $sql = "UPDATE ".USERS_TABLE."
            SET ".get_user_table_field("", "user_level")." = $user_level, ".get_user_table_field("", "user_name")." = '$user_name',$passinsert ".get_user_table_field("", "user_email")." = '$user_email', ".get_user_table_field("", "user_showemail")." = $user_showemail, ".get_user_table_field("", "user_allowemails")." = $user_allowemails, ".get_user_table_field("", "user_invisible")." = $user_invisible, ".get_user_table_field("", "user_joindate")." = $user_joindate, ".get_user_table_field("", "user_lastaction")." = $user_lastaction, ".get_user_table_field("", "user_homepage")." = '$user_homepage', ".get_user_table_field("", "user_icq")." = '$user_icq'".$additional_sql."
            WHERE ".get_user_table_field("", "user_id")." = $user_id";
    $result = $site_db->query($sql);
// ********* Ahora ************
*/
  $sql = "UPDATE ".USERS_TABLE."
            SET ".get_user_table_field("", "user_level")." = $user_level, ".get_user_table_field("", "user_name")." = '$user_name',$passinsert ".get_user_table_field("", "user_email")." = '$user_email', ".get_user_table_field("", "user_showemail")." = $user_showemail, ".get_user_table_field("", "user_allowemails")." = $user_allowemails, ".get_user_table_field("", "user_invisible")." = $user_invisible, ".get_user_table_field("", "user_joindate")." = $user_joindate, ".get_user_table_field("", "user_lastaction")." = $user_lastaction, ".get_user_table_field("", "user_homepage")." = '$user_homepage', ".get_user_table_field("", "user_icq")." = '$user_icq', user_moderador_categorias = '$user_moderador_categorias', user_moderador_imagenes = '$user_moderador_imagenes', user_moderador_comentarios = '$user_moderador_comentarios', user_moderador_usuarios = '$user_moderador_usuarios'".$additional_sql."
            WHERE ".get_user_table_field("", "user_id")." = $user_id";
    $result = $site_db->query($sql);
/////// Fin nuevo tipo de usuario //////
ابحث عن
Code: [Select]
show_userlevel_select_row($lang['field_userlevel'], "user_level", $user_row['user_level']);استبدلة با
Code: [Select]
///// Nuevo tipo de usuario //////
  /* ***** Antes *****
  show_userlevel_select_row($lang['field_userlevel'], "user_level", $user_row['user_level']);
  */
  // ******** Ahora ******
  if ($user_info['user_level'] == ADMIN){
  show_userlevel_select_row($lang['field_userlevel'], "user_level", $user_row['user_level']);
  }
  else {
  show_userlevel_select_row_moderadores($lang['field_userlevel'], "user_level", $user_row['user_level']);
  }
  ////////// Fin nuevo tipo de usuario //////
ابحث عن
Code: [Select]
show_date_input_row($lang['field_lastaction'].$lang['date_desc'], "user_lastaction", $user_row['user_lastaction'], $textinput_size);
اضف بعدة
Code: [Select]
///// Nuevo tipo de usuario //////
 if ($user_info['user_level'] == ADMIN && $user_row['user_level'] == MODERADOR){
 show_radio_row($lang['field_moderador_categorias'], "user_moderador_categorias", $user_row['user_moderador_categorias'],1);
 show_radio_row($lang['field_moderador_imagenes'], "user_moderador_imagenes", $user_row['user_moderador_imagenes'], 1);
 show_radio_row($lang['field_moderador_comentarios'], "user_moderador_comentarios", $user_row['user_moderador_comentarios'], 1);
 show_radio_row($lang['field_moderador_usuarios'], "user_moderador_usuarios", $user_row['user_moderador_usuarios'], 1);
 }
////////// Fin nuevo tipo de usuario ///////
ابحث عن
Code: [Select]
show_userlevel_select_row($lang['field_userlevel']);اضف بعدة
Code: [Select]
//// Nuevo tipo de usuario //////
   /* ***** Antes *****
  show_userlevel_select_row($lang['field_userlevel']);
  */
  // ******** Ahora ******
  if ($user_info['user_level'] == ADMIN){
  show_userlevel_select_row($lang['field_userlevel']);
  }
  else {
  show_userlevel_select_row_moderadores($lang['field_userlevel']);
  }
   ////////// Fin nuevo tipo de usuario //////
ابحث عن
Code: [Select]
$sql = "SELECT COUNT(*) AS users
          FROM ".USERS_TABLE."
          WHERE $condition AND ".get_user_table_field("", "user_id")." <> ".GUEST;
استبدل با
Code: [Select]
//// Nuevo tipo de usuario /////////////
/* ***** Antes *********
 $sql = "SELECT COUNT(*) AS users
          FROM ".USERS_TABLE."
          WHERE $condition AND ".get_user_table_field("", "user_id")." <> ".GUEST;
*/
// ***** Ahora ********
if (($user_info['user_level'] == ADMIN) && ($usuario <> "moderadores")) {
 $sql = "SELECT COUNT(*) AS users
          FROM ".USERS_TABLE."
          WHERE $condition AND ".get_user_table_field("", "user_id")." <> ".GUEST;
}
else {
if (($user_info['user_level'] == ADMIN) && ($usuario == "moderadores")) {
 $sql = "SELECT COUNT(*) AS users
          FROM ".USERS_TABLE."
          WHERE user_level = 5";
 }
 }
if ($user_info['user_level'] == MODERADOR) {
 $sql = "SELECT COUNT(*) AS users
          FROM ".USERS_TABLE."
          WHERE $condition AND ".get_user_table_field("", "user_id")." <> ".GUEST;
 }
////////// Fin nuevo tipo de usuario //////
ابحث عن
Code: [Select]
$sql = "SELECT ".get_user_table_field("", "user_id").get_user_table_field(", ", "user_name").get_user_table_field(", ", "user_email").get_user_table_field(", ", "user_joindate").get_user_table_field(", ", "user_lastaction")."
            FROM ".USERS_TABLE."
            WHERE $condition AND ".get_user_table_field("", "user_id")." <> ".GUEST."
            ORDER BY $orderby $direction
            LIMIT $limitstart, $limitnumber";
استبدل با
Code: [Select]
//// Nuevo tipo de usuario /////////////
  /* ***** Antes *********
    $sql = "SELECT ".get_user_table_field("", "user_id").get_user_table_field(", ", "user_name").get_user_table_field(", ", "user_email").get_user_table_field(", ", "user_joindate").get_user_table_field(", ", "user_lastaction")."
            FROM ".USERS_TABLE."
            WHERE $condition AND ".get_user_table_field("", "user_id")." <> ".GUEST."
            ORDER BY $orderby $direction
            LIMIT $limitstart, $limitnumber";
*/
// ***** Ahora *******
if (($user_info['user_level'] == ADMIN) && ($usuario <> "moderadores")) {
    $sql = "SELECT ".get_user_table_field("", "user_id").get_user_table_field(", ", "user_name").get_user_table_field(", ", "user_email").get_user_table_field(", ", "user_joindate").get_user_table_field(", ", "user_lastaction")."
            FROM ".USERS_TABLE."
            WHERE $condition AND ".get_user_table_field("", "user_id")." <> ".GUEST."
            ORDER BY $orderby $direction
            LIMIT $limitstart, $limitnumber";
}
else {
if (($user_info['user_level'] == ADMIN) && ($usuario == "moderadores")) {
    $sql = "SELECT ".get_user_table_field("", "user_id").get_user_table_field(", ", "user_name").get_user_table_field(", ", "user_email").get_user_table_field(", ", "user_joindate").get_user_table_field(", ", "user_lastaction")."
            FROM ".USERS_TABLE."
            WHERE user_level = 5";
}
}
if ($user_info['user_level'] == MODERADOR) {
    $sql = "SELECT ".get_user_table_field("", "user_id").get_user_table_field(", ", "user_name").get_user_table_field(", ", "user_email").get_user_table_field(", ", "user_joindate").get_user_table_field(", ", "user_lastaction")."
            FROM ".USERS_TABLE."
            WHERE $condition AND user_level = 1 OR user_level = 2
            ORDER BY $orderby $direction
            LIMIT $limitstart, $limitnumber";
}
////////// Fin nuevo tipo de usuario //////
استبدلة با
Code: [Select]
show_text_link($lang['permissions'], "usergroups.php?action=editpermissions&user_id=".$user_row[$user_table_fields['user_id']]);
   show_text_link($lang['nav_usergroups'], "usergroups.php?action=edituser&user_id=".$user_row[$user_table_fields['user_id']]);
ابحث عن
Code: [Select]
//// Nuevo tipo de usuario /////////////
      /* ****** Antes *********
   show_text_link($lang['permissions'], "usergroups.php?action=editpermissions&user_id=".$user_row[$user_table_fields['user_id']]);
   show_text_link($lang['nav_usergroups'], "usergroups.php?action=edituser&user_id=".$user_row[$user_table_fields['user_id']]);
   */
   // ***** Ahora ********
   if ($user_info['user_level'] == ADMIN){
   show_text_link($lang['permissions'], "usergroups.php?action=editpermissions&user_id=".$user_row[$user_table_fields['user_id']]);
   show_text_link($lang['nav_usergroups'], "usergroups.php?action=edituser&user_id=".$user_row[$user_table_fields['user_id']]);
   }
    ////////// Fin nuevo tipo de usuario //////
ابحث عن
Code: [Select]
$user_invisible = intval($HTTP_POST_VARS['user_invisible_'.$i]);اضف بعدة
Code: [Select]
////// Nuevo tipo de usuario //////
  $user_moderador_categorias = intval($HTTP_POST_VARS['user_moderador_categorias_'.$i]);
  $user_moderador_imagenes = intval($HTTP_POST_VARS['user_moderador_imagenes_'.$i]);
  $user_moderador_comentarios = intval($HTTP_POST_VARS['user_moderador_comentarios_'.$i]);
  $user_moderador_usuarios = intval($HTTP_POST_VARS['user_moderador_usuarios_'.$i]);
   ////////// Fin nuevo tipo de usuario ////////
ابحث عن
Code: [Select]
show_userlevel_select_row($lang['field_userlevel'], "user_level_".$i);استبدل با
Code: [Select]
///// Nuevo tipo de usuario //////
     /* **** Antes *****
    show_userlevel_select_row($lang['field_userlevel'], "user_level_".$i);
    */
    // ******** Ahora ******
    if ($user_info['user_level'] == ADMIN){
    show_userlevel_select_row($lang['field_userlevel'], "user_level_".$i);
    }
    else {
    show_userlevel_select_row_moderadores($lang['field_userlevel'], "user_level_".$i);
    }
     ////////// Fin nuevo tipo de usuario ///////
ارسل الصفحة
install_moderador.php
الي الملف الرئيسي
install_moderador.php
للتحميل صفحة install_moderador.php
http://swalfbnat.com/up/download.php?filename=e7927667f3.rar

6
Arabic / قسم الدعم الفني / تصغير الصور المصغرة
« on: September 11, 2008, 03:50:03 PM »
الـ طريقة  :mrgreen:
ابحث في
style.css
اخر الصفحة و
الصــق
Code: [Select]
/*--Thumbnail----------------------------------------------*/
.4images {display:block; background: transparent; position:relative; width:114px; height:85px; margin:0 auto -10 auto;}
.4images img {display:block; position:absolute; left:2px; top:2px; border:5px solid #FFD5EC; background:#FFF2F9 ;width:100px; height:75px; }
افتح صفحة
thumbnail_bit.html
ابحث عن
Code: [Select]
{thumbnail}استبدل با
Code: [Select]
<em class="4images">{thumbnail}النـهـايــة
مثال
في موقعي
http://2game2.com

7
المجموعة الاول
Code: [Select]
$mime_type_match['123'] = array("application/vnd.lotus-1-2-3", "application/lotus");
$mime_type_match['3dmf'] = array("x-world/x-3dmf");
$mime_type_match['3dml'] = array("text/vnd.in3d.3dml", "model/vnd.flatland.3dml", "text/vnd.in3d.3dml");
$mime_type_match['3gp'] = array("video/3gpp", "audio/3gpp");
$mime_type_match['a'] = array("application/octet-stream");
$mime_type_match['aab'] = array("application/x-authorware-bin");
$mime_type_match['aam'] = array("application/x-authorware-map");
$mime_type_match['aas'] = array("application/x-authorware-seg");
$mime_type_match['abc'] = array("text/vnd.abc");
$mime_type_match['acc'] = array("chemical/x-synopsys-accord");
$mime_type_match['acgi'] = array("text/html");
$mime_type_match['acu'] = array("application/vnd.acucobol");
$mime_type_match['aep'] = array("application/vnd.audiograph");
$mime_type_match['afl'] = array("video/animaflex");
$mime_type_match['afp'] = array("application/vnd.ibm.modcap");
$mime_type_match['ai'] = array("application/postscript");
$mime_type_match['aif'] = array("audio/aiff", "audio/x-aiff");
$mime_type_match['aifc'] = array("audio/x-aiff", "audio/aiff");
$mime_type_match['aiff'] = array("audio/x-aiff", "audio/aiff");
$mime_type_match['aim'] = array("application/x-aim");
$mime_type_match['aip'] = array("text/x-audiosoft-intra");
$mime_type_match['ani'] = array("application/x-navi-animation");
$mime_type_match['ano'] = array("application/x-annotator");
$mime_type_match['aos'] = array("application/x-nokia-9000-communicator-add-on-software");
$mime_type_match['apm'] = array("application/studiom");
$mime_type_match['apr'] = array("application/vnd.lotus-approach");
$mime_type_match['aps'] = array("application/mime");
$mime_type_match['arc'] = array("application/octet-stream");
$mime_type_match['arj'] = array("application/arj", "application/octet-stream");
$mime_type_match['art'] = array("image/x-jg");
$mime_type_match['asc'] = array("text/plain");
$mime_type_match['asd'] = array("application/astound");
$mime_type_match['asf'] = array("application/vnd.ms-asf", "video/x-ms-asf");
$mime_type_match['asm'] = array("text/x-asm");
$mime_type_match['asn'] = array("application/astound");
$mime_type_match['aso'] = array("application/vnd.accpac.simply.aso");
$mime_type_match['asp'] = array("application/x-asap", "text/asp");
$mime_type_match['asx'] = array("application/x-mplayer2", "video/x-ms-asf", "video/x-ms-asf-plugin");
$mime_type_match['au'] = array("audio/basic", "audio/x-au");
$mime_type_match['avb'] = array("application/octet-stream");
$mime_type_match['avi'] = array("video/quicktime", "application/x-troff-msvideo", "video/avi", "video/msvideo", "video/x-msvideo");
$mime_type_match['avs'] = array("video/avs-video");
$mime_type_match['avx'] = array("video/x-rad-screenplay");
$mime_type_match['bcpio'] = array("application/x-bcpio");
$mime_type_match['bh2'] = array("application/vnd.fujitsu.oasysprs");
$mime_type_match['bin'] = array("application/mac-binary", "application/macbinary", "application/octet-stream", "application/x-binary", "application/x-macbinary");
$mime_type_match['bld'] = array("application/bld");
$mime_type_match['bld2'] = array("application/bld2");
$mime_type_match['bm'] = array("image/bmp");
$mime_type_match['bmi'] = array("application/vnd.bmi");
$mime_type_match['bmp'] = array("image/bitmap", "image/bmp", "image/x-bmp", "image/x-windows-bmp");
$mime_type_match['boo'] = array("application/book");
$mime_type_match['book'] = array("application/book");
$mime_type_match['box'] = array("application/vnd.previewsystems.box");
$mime_type_match['boz'] = array("application/x-bzip2");
$mime_type_match['bpk'] = array("application/octet-stream");
$mime_type_match['bsh'] = array("application/x-bsh");
$mime_type_match['btf'] = array("image/prs.btif");
$mime_type_match['btif'] = array("image/prs.btif");
$mime_type_match['bz'] = array("application/x-bzip");
$mime_type_match['bz2'] = array("application/x-bzip2");
$mime_type_match['c'] = array("text/x-c", "text/plain");
$mime_type_match['c++'] = array("text/plain");
$mime_type_match['cal'] = array("image/x-cals");
$mime_type_match['cat'] = array("application/vnd.ms-pki.seccat");
$mime_type_match['cc'] = array("text/plain", "text/x-c");
$mime_type_match['ccad'] = array("application/clariscad");
$mime_type_match['ccn'] = array("application/x-cnc");
$mime_type_match['cco'] = array("application/x-cocoa");
$mime_type_match['cdf'] = array("application/cdf", "application/x-netcdf", "application/x-cdf");
$mime_type_match['cdkey'] = array("application/vnd.mediastation.cdkey");
$mime_type_match['cdx'] = array("chemical/x-cdx", "chemical/x-chem3d");
$mime_type_match['cer'] = array("application/pkix-cert", "application/x-x509-ca-cert");
$mime_type_match['cgi'] = array("magnus-internal/cgi");
$mime_type_match['cgm'] = array("image/cgm");
$mime_type_match['cha'] = array("application/x-chat");
$mime_type_match['chat'] = array("application/x-chat");
$mime_type_match['chm'] = array("chemical/x-chemdraw", "chemical/x-cs-chemdraw");
$mime_type_match['cif'] = array("chemical/x-cif");
$mime_type_match['cii'] = array("application/vnd.anser-web-certificate-issue-initiation");
$mime_type_match['cla'] = array("application/vnd.claymore");
$mime_type_match['class'] = array("application/java", "application/java-byte-code", "application/octet-stream", "application/x-java-class", "application/x-java.vm");
$mime_type_match['clp'] = array("application/x-msclip");
$mime_type_match['cmc'] = array("application/vnd.cosmocaller");
$mime_type_match['cmdf'] = array("chemical/x-cmdf");
$mime_type_match['cml'] = array("chemical/x-cml");
$mime_type_match['cmp'] = array("application/vnd.yellowriver-custom-menu");
$mime_type_match['cmx'] = array("application/x-cmx", "image/x-cmx");
$mime_type_match['cod'] = array("image/cis-cod");
$mime_type_match['com'] = array("text/plain", "application/octet-stream");
$mime_type_match['conf'] = array("text/plain");
$mime_type_match['config'] = array("application/x-ns-proxy-autoconfig");
$mime_type_match['cpio'] = array("application/x-cpio");
$mime_type_match['cpp'] = array("text/x-c");
$mime_type_match['cpt'] = array("application/mac-compactpro", "application/x-compactpro", "application/x-cpt");
$mime_type_match['crd'] = array("application/x-mscardfile");
$mime_type_match['crl'] = array("application/pkix-crl", "application/pkcs-crl");
$mime_type_match['crt'] = array("application/pkix-cert", "application/x-x509-ca-cert", "application/x-x509-user-cert");
$mime_type_match['csh'] = array("application/x-csh", "text/x-script.csh");
$mime_type_match['csm'] = array("chemical/x-csml");
$mime_type_match['csml'] = array("chemical/x-csml");
$mime_type_match['csp'] = array("application/vnd.commonspace");
$mime_type_match['css'] = array("text/css", "application/x-pointplus");
$mime_type_match['cst'] = array("application/vnd.commonspace");
$mime_type_match['cub'] = array("chemical/x-gaussian-cube");
$mime_type_match['curl'] = array("text/vnd.curl");
$mime_type_match['cw'] = array("application/prs.cww");
$mime_type_match['cww'] = array("application/prs.cww");
$mime_type_match['cxx'] = array("text/plain");
$mime_type_match['daf'] = array("application/vnd.Mobius.DAF");
$mime_type_match['dcm'] = array("x-lml/x-evm");
$mime_type_match['dcr'] = array("application/x-director");
$mime_type_match['dcx'] = array("image/x-dcx");
$mime_type_match['ddd'] = array("application/vnd.fujixerox.ddd");
$mime_type_match['deepv'] = array("application/x-deepv");
$mime_type_match['def'] = array("text/plain");
$mime_type_match['der'] = array("application/pkix-cert", "application/x-x509-ca-cert");
$mime_type_match['dib'] = array("image/bmp");
$mime_type_match['dic'] = array("text/plain");
$mime_type_match['dif'] = array("video/x-dv");
$mime_type_match['dir'] = array("application/x-director");
$mime_type_match['dis'] = array("application/vnd.Mobius.DIS");
$mime_type_match['dl'] = array("video/dl", "video/x-dl");
$mime_type_match['dll'] = array("application/x-msdownload");
$mime_type_match['dms'] = array("application/octet-stream");
$mime_type_match['dna'] = array("application/vnd.dna");
$mime_type_match['doc'] = array("application/msword");
$mime_type_match['dor'] = array("model/vnd.gdl", "model/vnd.gs.gdl");
$mime_type_match['dot'] = array("application/msword", "application/x-dot");
$mime_type_match['dp'] = array("application/commonground");
$mime_type_match['dpg'] = array("application/vnd.dpgraph");
$mime_type_match['dpgraph'] = array("application/vnd.dpgraph");
$mime_type_match['drw'] = array("application/drafting");
$mime_type_match['dsc'] = array("text/prs.lines.tag");
$mime_type_match['dtd'] = array("application/xml", "text/xml");
$mime_type_match['dump'] = array("application/octet-stream");
$mime_type_match['dv'] = array("video/x-dv");
$mime_type_match['dvi'] = array("application/x-dvi");
$mime_type_match['dwf'] = array("model/vnd.dwf", "drawing/x-dwf", "drawing/x-dwf");
$mime_type_match['dwg'] = array("image/vnd.dwg", "application/acad", "application/autocad", "image/vnd", "image/x-dwg");
$mime_type_match['dx'] = array("chemical/x-jcamp-dx");
$mime_type_match['dxf'] = array("image/vnd.dxf", "application/dxf", "image/x-dwg", "image/x-dxf");
$mime_type_match['dxr'] = array("application/vnd.dxr", "application/x-director");
$mime_type_match['ebk'] = array("application/x-expandedbook");
$mime_type_match['ecelp4800'] = array("audio/vnd.nuera.ecelp4800");
$mime_type_match['ecelp7470'] = array("audio/vnd.nuera.ecelp7470");
$mime_type_match['edm'] = array("application/vnd.novadigm.EDM");
$mime_type_match['edx'] = array("application/vnd.novadigm.EDX");
$mime_type_match['ei6'] = array("application/vnd.pg.osasli");
$mime_type_match['el'] = array("text/x-script.elisp");
$mime_type_match['elc'] = array("application/x-bytecode.elisp", "application/x-elc");
$mime_type_match['emb'] = array("chemical/x-embl-dl-nucleotide");
$mime_type_match['embl'] = array("chemical/x-embl-dl-nucleotide");
$mime_type_match['eml'] = array("message/rfc822");
$mime_type_match['enc'] = array("video/mpeg");
$mime_type_match['env'] = array("application/x-envoy");
$mime_type_match['eol'] = array("audio/vnd.digital-winds");
$mime_type_match['epb'] = array("application/x-epublisher");
$mime_type_match['eps'] = array("application/postscript");
$mime_type_match['es'] = array("application/x-esrehber", "audio/echospeech");
$mime_type_match['esl'] = array("audio/echospeech");
$mime_type_match['etc'] = array("application/x-earthtime");
$mime_type_match['etx'] = array("text/x-setext");
$mime_type_match['evm'] = array("x-lml/x-evm");
$mime_type_match['evy'] = array("application/envoy", "application/x-envoy");
$mime_type_match['exc'] = array("text/plain");
$mime_type_match['exe'] = array("application/octet-stream", "application/x-msdownload");
$mime_type_match['ext'] = array("application/vnd.novadigm.EXT");
$mime_type_match['ez'] = array("application/andrew-inset");
$mime_type_match['f'] = array("text/plain", "text/x-fortran");
$mime_type_match['f77'] = array("text/x-fortran");
$mime_type_match['f90'] = array("text/plain", "text/x-fortran");
$mime_type_match['faxmgr'] = array("application/x-fax-manager");
$mime_type_match['faxmgrjob'] = array("application/x-fax-manager-job");
$mime_type_match['fbs'] = array("image/vnd.fastbidsheet");
$mime_type_match['fdf'] = array("application/vnd.fdf");
$mime_type_match['fdml'] = array("text/html");
$mime_type_match['fg5'] = array("application/vnd.fujitsu.oasysgp");
$mime_type_match['fgd'] = array("application/x-director");
$mime_type_match['fh'] = array("image/x-freehand");
$mime_type_match['fh4'] = array("image/x-freehand");
$mime_type_match['fh5'] = array("image/x-freehand");
$mime_type_match['fh7'] = array("image/x-freehand");
$mime_type_match['fhc'] = array("image/x-freehand");
$mime_type_match['fif'] = array("application/fractals", "image/fif");
$mime_type_match['fli'] = array("video/fli", "video/x-fli");
$mime_type_match['flo'] = array("image/florian");
$mime_type_match['flx'] = array("text/vnd.fmi.flexstor", "text/html");
$mime_type_match['fly'] = array("text/vnd.fly");
$mime_type_match['fm'] = array("application/x-framemaker", "application/x-maker");
$mime_type_match['fmf'] = array("video/x-atomic3d-feature");
$mime_type_match['fml'] = array("application/file-mirror-list", "application/x-file-mirror-list");
$mime_type_match['for'] = array("text/plain", "text/x-fortran");
$mime_type_match['fp5'] = array("application/filemaker5");
$mime_type_match['fpx'] = array("application/vnd.netfpx", "image/vnd.fpx", "image/vnd.net-fpx", "image/x-fpx");
$mime_type_match['frame'] = array("application/x-framemaker");
$mime_type_match['frl'] = array("application/freeloader");
$mime_type_match['frm'] = array("application/vnd.ufdl", "application/vnd.xfdl", "application/x-framemaker");
$mime_type_match['fst'] = array("image/vnd.fst");
$mime_type_match['fti'] = array("application/vnd.anser-web-funds-transfer-initiation");
$mime_type_match['funk'] = array("audio/make");
$mime_type_match['fvi'] = array("video/isivideo");
$mime_type_match['fvt'] = array("video/vnd.fvt");
$mime_type_match['g'] = array("text/plain");
$mime_type_match['g3'] = array("image/g3fax");
$mime_type_match['gac'] = array("application/vnd.groove-account");
$mime_type_match['gau'] = array("chemical/x-gaussian-input");
$mime_type_match['gdb'] = array("x-lml/x-gdb");
$mime_type_match['gdl'] = array("model/vnd.gdl", "model/vnd.gs.gdl");
$mime_type_match['gif'] = array("image/gif");
$mime_type_match['gim'] = array("application/vnd.groove-identity-message");
$mime_type_match['gl'] = array("video/gl", "video/x-gl");
$mime_type_match['gph'] = array("application/vnd.FloGraphIt");
$mime_type_match['gps'] = array("application/x-gps");
$mime_type_match['gqf'] = array("application/vnd.grafeq");
$mime_type_match['gqs'] = array("application/vnd.grafeq");
$mime_type_match['grv'] = array("application/vnd.groove-injector");
$mime_type_match['gsd'] = array("audio/x-gsm");
$mime_type_match['gsm'] = array("model/vnd.gdl", "model/vnd.gs.gdl", "audio/x-gsm");
$mime_type_match['gsp'] = array("application/x-gsp");
$mime_type_match['gss'] = array("application/x-gss");
$mime_type_match['gtar'] = array("application/x-gtar");
$mime_type_match['gtm'] = array("application/vnd.froove-tool-message", "application/vnd.groove-tool-message");
$mime_type_match['gtp'] = array("application/bsi-gtp");
$mime_type_match['gtw'] = array("model/vnd.gtw");
$mime_type_match['gz'] = array("application/x-compressed", "application/x-gzip");
$mime_type_match['gzip'] = array("application/x-gzip", "multipart/x-gzip");
$mime_type_match['h'] = array("text/plain", "text/x-h");
$mime_type_match['hdf'] = array("application/x-hdf");
$mime_type_match['hdml'] = array("text/x-hdml");
$mime_type_match['help'] = array("application/x-helpfile");
$mime_type_match['hgl'] = array("application/vnd.hp-HPGL");
$mime_type_match['hh'] = array("text/plain", "text/x-h");
$mime_type_match['hlb'] = array("text/x-script");
$mime_type_match['hlp'] = array("application/hlp", "application/winhlp", "application/x-helpfile", "application/x-winhelp");
$mime_type_match['hpg'] = array("application/vnd.hp-HPGL");
$mime_type_match['hpgl'] = array("application/vnd.hp-HPGL");
$mime_type_match['hpi'] = array("application/vnd.hp-hpid");
$mime_type_match['hpid'] = array("application/vnd.hp-hpid");
$mime_type_match['hps'] = array("application/vnd.hp-hps");
$mime_type_match['hqx'] = array("application/mac-binhex40", "application/binhex", "application/binhex4", "application/mac-binhex", "application/x-binhex40", "application/x-mac-binhex40");
$mime_type_match['hta'] = array("application/hta");
$mime_type_match['htc'] = array("text/x-component");
$mime_type_match['htm'] = array("text/html");
$mime_type_match['html'] = array("text/html");
$mime_type_match['htmls'] = array("text/html");
$mime_type_match['htt'] = array("text/webviewhtml");
$mime_type_match['htx'] = array("text/html");
$mime_type_match['ic0'] = array("application/vnd.commerce-battelle");
$mime_type_match['ic1'] = array("application/vnd.commerce-battelle");
$mime_type_match['ic2'] = array("application/vnd.commerce-battelle");
$mime_type_match['ic3'] = array("application/vnd.commerce-battelle");
$mime_type_match['ic4'] = array("application/vnd.commerce-battelle");
$mime_type_match['ic5'] = array("application/vnd.commerce-battelle");
$mime_type_match['ic6'] = array("application/vnd.commerce-battelle");
$mime_type_match['ic7'] = array("application/vnd.commerce-battelle");
$mime_type_match['ic8'] = array("application/vnd.commerce-battelle");
$mime_type_match['ica'] = array("application/vnd.commerce-battelle");
$mime_type_match['icc'] = array("application/vnd.commerce-battelle");
$mime_type_match['icd'] = array("application/vnd.commerce-battelle");
$mime_type_match['ice'] = array("x-conference/x-cooltalk");
$mime_type_match['icf'] = array("application/vnd.commerce-battelle");
$mime_type_match['ico'] = array("image/x-icon");
$mime_type_match['idc'] = array("text/plain");
$mime_type_match['ief'] = array("image/ief");
$mime_type_match['iefs'] = array("image/ief");
$mime_type_match['ifm'] = array("application/vnd.shana.informed.formdata");
$mime_type_match['ifs'] = array("image/ifs");
$mime_type_match['iges'] = array("model/iges", "application/iges");
$mime_type_match['igs'] = array("model/iges", "application/iges");
$mime_type_match['iif'] = array("application/vnd.shana.informed.interchange");
$mime_type_match['iii'] = array("application/x-iphone");
$mime_type_match['ima'] = array("application/x-ima");
$mime_type_match['imap'] = array("application/x-httpd-imap");
$mime_type_match['imd'] = array("application/immedia");
$mime_type_match['imp'] = array("application/vnd.accpac.simply.imp");
$mime_type_match['ims'] = array("application/immedia");
$mime_type_match['inf'] = array("application/inf");
$mime_type_match['ins'] = array("application/x-NET-Install", "application/x-insight", "application/x-internet-signup");
$mime_type_match['insight'] = array("application/x-insight");
$mime_type_match['inst'] = array("application/x-install");
$mime_type_match['ip'] = array("application/x-ip2");
$mime_type_match['ipk'] = array("application/vnd.shana.informed.package");
$mime_type_match['ips'] = array("application/x-ipscript");
$mime_type_match['ipx'] = array("application/x-ipix");
$mime_type_match['ism'] = array("model/vnd.gdl", "model/vnd.gs.gdl");
$mime_type_match['isp'] = array("application/x-internet-signup");
$mime_type_match['ist'] = array("chemical/x-isostar");
$mime_type_match['istr'] = array("chemical/x-isostar");
$mime_type_match['isu'] = array("video/x-isvideo");
$mime_type_match['it'] = array("audio/it", "audio/x-mod");
$mime_type_match['itp'] = array("application/vnd.shana.informed.formtemp");
$mime_type_match['itz'] = array("audio/x-mod");
$mime_type_match['iv'] = array("application/x-inventor");
$mime_type_match['ivf'] = array("video/x-ivf");
$mime_type_match['ivr'] = array("i-world/i-vrml");
$mime_type_match['ivy'] = array("application/x-livescreen");
$mime_type_match['jad'] = array("text/vnd.sun.j2me.app-descriptor");
$mime_type_match['jam'] = array("audio/x-jam");
$mime_type_match['jar'] = array("application/java-archive", "application/x-java-archive");
$mime_type_match['jav'] = array("text/plain", "text/x-java-source");
$mime_type_match['java'] = array("text/plain", "text/x-java-source");
$mime_type_match['jcm'] = array("application/x-java-commerce");
$mime_type_match['jdx'] = array("chemical/x-jcamp-dx");
$mime_type_match['jfif'] = array("image/jpeg", "image/pjpeg");
$mime_type_match['jfif-tbnl'] = array("image/jpeg");
$mime_type_match['jpe'] = array("image/jpeg", "image/pjpeg");
$mime_type_match['jpeg'] = array("image/jpeg", "image/pjpeg");
$mime_type_match['jpg'] = array("image/jpeg", "image/pjpeg");
$mime_type_match['jps'] = array("image/x-jps");
$mime_type_match['js'] = array("application/x-javascript", "application/x-ns-proxy-autoconfig");
$mime_type_match['jut'] = array("image/jutvision");
$mime_type_match['jvs'] = array("application/x-ns-proxy-autoconfig");
$mime_type_match['jwc'] = array("application/jwc");
$mime_type_match['kar'] = array("audio/midi", "music/x-karaoke");
$mime_type_match['kin'] = array("chemical/x-kinemage");
$mime_type_match['ksh'] = array("application/x-ksh", "text/x-script.ksh");
$mime_type_match['la'] = array("audio/nspaudio", "audio/x-nspaudio");
$mime_type_match['lak'] = array("x-lml/x-lak");
$mime_type_match['lam'] = array("audio/x-liveaudio");
$mime_type_match['latex'] = array("application/x-latex");
$mime_type_match['lcc'] = array("application/fastman");
$mime_type_match['lcl'] = array("application/x-digitalloca");
$mime_type_match['lcr'] = array("application/x-digitalloca");
$mime_type_match['lgh'] = array("application/lgh");
$mime_type_match['lha'] = array("application/lha", "application/octet-stream", "application/x-lha");
$mime_type_match['lhx'] = array("application/octet-stream");
$mime_type_match['lic'] = array("application/x-enterlicense");
$mime_type_match['licmgr'] = array("application/x-licensemgr");
$mime_type_match['list'] = array("text/plain");
$mime_type_match['list3820'] = array("application/vnd.ibm.modcap");
$mime_type_match['listafp'] = array("application/vnd.ibm.modcap");
$mime_type_match['lma'] = array("audio/nspaudio", "audio/x-nspaudio");
$mime_type_match['lml'] = array("x-lml/x-lml");
$mime_type_match['lmlpack'] = array("x-lml/x-lmlpack");
$mime_type_match['lmp'] = array("model/vnd.gdl", "model/vnd.gs.gdl");
$mime_type_match['log'] = array("text/plain");
$mime_type_match['lsf'] = array("video/x-la-asf", "video/x-ms-asf");
$mime_type_match['lsp'] = array("application/x-lisp", "text/x-script.lisp");
$mime_type_match['lst'] = array("text/plain");
$mime_type_match['lsx'] = array("text/x-la-asf", "video/x-la-asf", "video/x-ms-asf");
$mime_type_match['ltx'] = array("application/x-latex");
$mime_type_match['lvp'] = array("audio/vnd.lucent.voice");
$mime_type_match['lwp'] = array("application/vnd.lotus-wordpro");
$mime_type_match['lzh'] = array("application/octet-stream", "application/x-lzh");
$mime_type_match['lzx'] = array("application/lzx", "application/octet-stream", "application/x-lzx");
$mime_type_match['m'] = array("text/plain", "text/x-m");
$mime_type_match['m13'] = array("application/x-msmediaview");
$mime_type_match['m14'] = array("application/x-msmediaview");
$mime_type_match['m1v'] = array("video/mpeg");
$mime_type_match['m2a'] = array("audio/mpeg");
$mime_type_match['m2v'] = array("video/mpeg");
$mime_type_match['m3a'] = array("audio/mpeg");
$mime_type_match['m3u'] = array("audio/mpegurl", "audio/x-mpegurl", "audio/x-mpequrl", "audio/x-scpls", "uadio/scpls");
$mime_type_match['ma'] = array("application/mathematica-old", "application/mathematica");
$mime_type_match['mag'] = array("application/vnd.ecowin.chart");
$mime_type_match['mail'] = array("application/x-mailfolder");
$mime_type_match['maker'] = array("application/x-framemaker");
$mime_type_match['man'] = array("application/x-troff-man");
$mime_type_match['map'] = array("application/x-navimap", "magnus-internal/imagemap");
$mime_type_match['mar'] = array("text/plain");
$mime_type_match['mb'] = array("application/mathematica-old", "application/mathematica");
$mime_type_match['mbd'] = array("application/mbedlet");
$mime_type_match['mbm'] = array("image/x-epoc-mbm");
$mime_type_match['mc$'] = array("application/x-magic-cap-package-1.0");
$mime_type_match['mcd'] = array("application/vnd.mcd", "application/vnd.vectorworks", "application/mcad", "application/x-mathcad");
$mime_type_match['mcf'] = array("image/vasa", "text/mcf");
$mime_type_match['mcm'] = array("chemical/x-macmolecule");
$mime_type_match['mcp'] = array("application/netmc");
$mime_type_match['mct'] = array("application/x-mascot");
$mime_type_match['mdb'] = array("application/msaccess", "application/x-msaccess");
$mime_type_match['mdz'] = array("audio/x-mod");
$mime_type_match['me'] = array("application/x-troff-me");
$mime_type_match['med'] = array("application/x-att-a2bmusic-pu");
$mime_type_match['mes'] = array("application/x-att-a2bmusic");
$mime_type_match['mesh'] = array("model/mesh");
$mime_type_match['mht'] = array("message/rfc822");
$mime_type_match['mhtml'] = array("message/rfc822");
$mime_type_match['mi'] = array("application/x-mif");
$mime_type_match['mid'] = array("application/x-midi", "audio/mid", "audio/midi", "audio/x-mid", "audio/x-midi", "music/crescendo", "x-music/x-midi");
$mime_type_match['midi'] = array("application/x-midi", "audio/midi", "audio/x-mid", "audio/x-midi", "music/crescendo", "x-music/x-midi");
$mime_type_match['mif'] = array("application/vnd.mif", "application/x-frame", "application/x-mif");
$mime_type_match['mil'] = array("image/x-cals");
$mime_type_match['mime'] = array("message/rfc822", "www/mime");
$mime_type_match['mio'] = array("audio/x-mio");
$mime_type_match['mjf'] = array("audio/x-vnd.AudioExplosion.MjuiceMediaFile");
$mime_type_match['mjpg'] = array("video/x-motion-jpeg");
$mime_type_match['ml5'] = array("application/ml5");
$mime_type_match['mm'] = array("application/base64", "application/x-meme");
$mime_type_match['mmd'] = array("chemical/x-macromodel", "chemical/x-macromodel-input");
$mime_type_match['mme'] = array("application/base64");
$mime_type_match['mmod'] = array("chemical/x-macromodel-input");
$mime_type_match['mmr'] = array("image/vnd.fujixerox.edmics-mmr");
$mime_type_match['mng'] = array("video/x-mng");
$mime_type_match['mny'] = array("application/x-msmoney");
$mime_type_match['moc'] = array("application/x-mocha");
$mime_type_match['mocha'] = array("application/x-mocha");
$mime_type_match['mod'] = array("audio/mod", "audio/x-mod");
$mime_type_match['mof'] = array("application/x-yumekara");
$mime_type_match['mol'] = array("chemical/x-mdl-molfile", "chemical/x-mdl-molfile");
$mime_type_match['moov'] = array("video/quicktime");
$mime_type_match['mop'] = array("chemical/x-mopac-input");
$mime_type_match['mov'] = array("video/quicktime");
$mime_type_match['movie'] = array("video/x-sgi-movie");
$mime_type_match['mp2'] = array("video/mpeg", "audio/mpeg", "audio/x-mpeg", "video/x-mpeg", "video/x-mpeg2a");
$mime_type_match['mp2a'] = array("audio/x-mpeg2");
$mime_type_match['mp2v'] = array("video/x-mpeg2");
$mime_type_match['mp3'] = array("video/mpeg", "audio/mp3", "audio/mpeg", "audio/mpeg3", "audio/mpg", "audio/x-mpeg", "audio/x-mpeg-3", "video/x-mpeg");
$mime_type_match['mp3url'] = array("audio/x-mpegurl");
$mime_type_match['mpa'] = array("video/mpeg", "audio/mpeg");
$mime_type_match['mpa2'] = array("audio/x-mpeg2");
$mime_type_match['mpc'] = array("application/x-project");
$mime_type_match['mpd'] = array("application/vnd.ms-project");
$mime_type_match['mpe'] = array("video/mpeg");
$mime_type_match['mpeg'] = array("video/mpeg");
$mime_type_match['mpf'] = array("text/vnd.ms-mediapackage", "text/vnd-mediapackage");
$mime_type_match['mpg'] = array("video/mpegaudio/mpeg");
$mime_type_match['mpga'] = array("audio/mpeg");
$mime_type_match['mpp'] = array("application/vnd.ms-project");
$mime_type_match['mps'] = array("application/x-mapserver", "video/x-mpeg-system");
$mime_type_match['mpt'] = array("application/vnd.ms-project", "application/x-project");
$mime_type_match['mpv'] = array("application/x-project", "video/mpeg");
$mime_type_match['mpv2'] = array("video/mpeg", "video/x-mpeg2");
$mime_type_match['mpx'] = array("application/x-project");
$mime_type_match['mpy'] = array("application/vnd.ibm.MiniPay");
$mime_type_match['mrc'] = array("application/marc");
$mime_type_match['mrl'] = array("text/x-mrml");
$mime_type_match['ms'] = array("application/x-troff-ms");
$mime_type_match['msf'] = array("application/vnd.epson.msf");
$mime_type_match['msh'] = array("model/mesh");
$mime_type_match['msl'] = array("application/vnd.Mobius.MSL");
$mime_type_match['msm'] = array("model/vnd.gdl", "model/vnd.gs.gdl");
$mime_type_match['mss'] = array("audio/mss");
$mime_type_match['msv'] = array("application/x-mystars-view");
$mime_type_match['mts'] = array("model/vnd.mts", "application/metastream");
$mime_type_match['mus'] = array("application/vnd.musician");
$mime_type_match['mv'] = array("video/x-sgi-movie");
$mime_type_match['mwc'] = array("application/vnd.dpgraph");
$mime_type_match['mxs'] = array("application/vnd.triscape.mxs");
$mime_type_match['my'] = array("audio/make");
$mime_type_match['mzz'] = array("application/x-vnd.AudioExplosion.mzz");
$mime_type_match['nap'] = array("image/naplps");
$mime_type_match['naplps'] = array("image/naplps");
$mime_type_match['nb'] = array("application/mathematica");
$mime_type_match['nc'] = array("application/x-netcdf");
$mime_type_match['nclk'] = array("text/html");
$mime_type_match['ncm'] = array("application/vnd.nokia.configuration-message");
$mime_type_match['ndb'] = array("x-lml/x-ndb");
$mime_type_match['ndl'] = array("application/vnd.lotus-notes");
$mime_type_match['nif'] = array("application/x-nif", "image/x-niff");
$mime_type_match['niff'] = array("image/x-niff");
$mime_type_match['nix'] = array("application/x-mix-transfer");
$mime_type_match['nls'] = array("text/nls");
$mime_type_match['nml'] = array("application/vnd.enliven");
$mime_type_match['nmz'] = array("application/x-scream");
$mime_type_match['nnd'] = array("application/vnd.noblenet-directory");
$mime_type_match['nns'] = array("application/vnd.noblenet-sealer");
$mime_type_match['nnw'] = array("application/vnd.noblenet-web");
$mime_type_match['npx'] = array("application/x-netfpx");
$mime_type_match['ns2'] = array("application/vnd.lotus-notes");
$mime_type_match['ns3'] = array("application/vnd.lotus-notes");
$mime_type_match['ns4'] = array("application/vnd.lotus-notes");
$mime_type_match['nsc'] = array("application/x-conference");
$mime_type_match['nsf'] = array("application/vnd.lotus-notes");
$mime_type_match['nsg'] = array("application/vnd.lotus-notes");
$mime_type_match['nsh'] = array("application/vnd.lotus-notes");
$mime_type_match['ntf'] = array("application/vnd.lotus-notes");
$mime_type_match['nvd'] = array("application/x-navidoc");
$mime_type_match['nvm'] = array("application/x-navimap");
$mime_type_match['nws'] = array("message/rfc822");
$mime_type_match['o'] = array("application/octet-stream");
$mime_type_match['oa2'] = array("application/vnd.fujitsu.oasys2");
$mime_type_match['oa3'] = array("application/vnd.fujitsu.oasys3");
$mime_type_match['oas'] = array("application/vnd.fujitsu.oasys");
$mime_type_match['obd'] = array("application/x-msbinder");
$mime_type_match['oda'] = array("application/oda");
$mime_type_match['omc'] = array("application/x-omc");
$mime_type_match['omcd'] = array("application/x-omcdatamaker");
$mime_type_match['omcr'] = array("application/x-omcregerator");
$mime_type_match['or2'] = array("application/vnd.lotus-organizer");
$mime_type_match['or3'] = array("application/vnd.lotus-organizer");
$mime_type_match['org'] = array("application/vnd.lotus-organizer");
$mime_type_match['orq'] = array("application/ocsp-request");
$mime_type_match['ors'] = array("application/ocsp-response");
$mime_type_match['ota'] = array("image/x-ota-bitmap");
$mime_type_match['p'] = array("text/x-pascal");
$mime_type_match['p10'] = array("application/pkcs10", "application/x-pkcs10");
$mime_type_match['p12'] = array("application/pkcs-12", "application/x-pkcs12");
$mime_type_match['p7a'] = array("application/x-pkcs7-signature");
$mime_type_match['p7b'] = array("application/x-pkcs7-certificates");
$mime_type_match['p7c'] = array("application/pkcs7-mime", "application/x-pkcs7-mime");
$mime_type_match['p7m'] = array("application/pkcs7-mime", "application/x-pkcs7-mime");
$mime_type_match['p7r'] = array("application/x-pkcs7-certreqresp");
$mime_type_match['p7s'] = array("application/pkcs7-signature");
$mime_type_match['pac'] = array("application/x-ns-proxy-autoconfig", "audio/x-pac");
$mime_type_match['pae'] = array("audio/x-epac");
$mime_type_match['pan'] = array("application/x-pan");
$mime_type_match['part'] = array("application/pro_eng");
$mime_type_match['pas'] = array("text/pascal");
$mime_type_match['pat'] = array("audio/x-pat");
$mime_type_match['pbd'] = array("application/vnd.powerbuilder6-s", "application/vnd.powerbuilder6", "application/vnd.powerbuilder7-s", "application/vnd.powerbuilder75-s", "application/vnd.powerbuilder75", "application/vnd.powerbuilder7");
$mime_type_match['pbm'] = array("image/x-portable-bitmap");
$mime_type_match['pcd'] = array("image/x-photo-cd");
$mime_type_match['pcl'] = array("application/vnd.hp-PCL", "application/x-pcl");
$mime_type_match['pct'] = array("image/x-pict");
$mime_type_match['pcx'] = array("image/x-pcx");
$mime_type_match['pda'] = array("image/x-pda");
$mime_type_match['pdb'] = array("chemical/x-pdb");
$mime_type_match['pdf'] = array("application/pdf");
$mime_type_match['pfr'] = array("application/font-tdpfr");
$mime_type_match['pfunk'] = array("audio/make", "audio/make.my.funk");
$mime_type_match['pfx'] = array("application/x-pkcs12");
$mime_type_match['pgm'] = array("image/x-portable-graymap", "image/x-portable-greymap");
$mime_type_match['pgn'] = array("application/x-chess-pgn");
$mime_type_match['pgp'] = array("application/pgp-encrypted");
$mime_type_match['pic'] = array("image/pict");
$mime_type_match['pict'] = array("image/pict", "image/x-pict");
$mime_type_match['pkg'] = array("application/x-newton-compatible-pkg");
$mime_type_match['pki'] = array("application/pkixcmp");
$mime_type_match['pko'] = array("application/vnd.ms-pki.pko");
$mime_type_match['pl'] = array("text/plain", "text/x-script.perl");
$mime_type_match['plc'] = array("application/vnd.Mobius.PLC");
$mime_type_match['plg'] = array("text/html");
$mime_type_match['plj'] = array("audio/vnd.everad.plj");
$mime_type_match['pls'] = array("audio/mpegurl", "audio/scpls", "audio/x-mpequrl", "audio/x-scpls", "audio/scpls");
$mime_type_match['plx'] = array("application/x-PiXCLscript");
$mime_type_match['pm'] = array("application/x-perl", "image/x-xpixmap", "text/x-script.perl-module");
$mime_type_match['pm4'] = array("application/x-pagemaker");
$mime_type_match['pm5'] = array("application/x-pagemaker");
$mime_type_match['pml'] = array("application/vnd.ctc-posml");
$mime_type_match['png'] = array("image/png", "image/x-png");
$mime_type_match['pnm'] = array("application/x-portable-anymap", "image/x-portable-anymap");
$mime_type_match['pot'] = array("application/vnd.ms-powerpoint", "application/mspowerpoint");
$mime_type_match['pov'] = array("model/x-pov");
$mime_type_match['ppa'] = array("application/vnd.ms-powerpoint");
$mime_type_match['ppm'] = array("image/x-portable-pixmap");
$mime_type_match['pps'] = array("application/vnd.ms-powerpoint", "application/mspowerpoint");
$mime_type_match['ppt'] = array("application/vnd.ms-powerpoint", "application/mspowerpoint", "application/powerpoint", "application/x-mspowerpoint");
$mime_type_match['ppz'] = array("application/mspowerpoint", "application/ppt");
$mime_type_match['pqf'] = array("application/x-cprplayer");
$mime_type_match['pqi'] = array("application/cprplayer");
$mime_type_match['pre'] = array("application/vnd.lotus-freelance", "application/x-freelance");
$mime_type_match['prf'] = array("application/pics-rules");
$mime_type_match['proxy'] = array("application/x-ns-proxy-autoconfig");
$mime_type_match['prt'] = array("application/pro_eng");
$mime_type_match['prz'] = array("application/vnd.lotus-freelance");
$mime_type_match['ps'] = array("application/postscript");
$mime_type_match['psd'] = array("application/octet-stream");
$mime_type_match['pseg3820'] = array("application/vnd.ibm.modcap");
$mime_type_match['psid'] = array("audio/prs.sid");
$mime_type_match['pti'] = array("image/prs.pti");
$mime_type_match['ptlk'] = array("application/listenup");
$mime_type_match['pub'] = array("application/x-mspublisher");
$mime_type_match['puz'] = array("application/x-crossword");
$mime_type_match['pvu'] = array("paleovu/x-pv");
$mime_type_match['pwn'] = array("application/vnd.3M.Post-it-Notes");
$mime_type_match['pwz'] = array("application/vnd.ms-powerpoint");
$mime_type_match['py'] = array("text/x-script.phyton");
$mime_type_match['pyc'] = array("applicaiton/x-bytecode.python");
$mime_type_match['qam'] = array("application/vnd.epson.quickanime");
$mime_type_match['qbo'] = array("application/vnd.intu.qbo");
$mime_type_match['qca'] = array("application/vnd.ericsson.quickcall");
$mime_type_match['qcall'] = array("application/vnd.ericsson.quickcall");
$mime_type_match['qcp'] = array("audio/vnd.qcelp");
$mime_type_match['qd3'] = array("x-world/x-3dmf");
$mime_type_match['qd3d'] = array("x-world/x-3dmf");
$mime_type_match['qfx'] = array("application/vnd.intu.qfx");
$mime_type_match['qif'] = array("image/x-quicktime");
$mime_type_match['qps'] = array("application/vnd.publishare-delta-tree");
$mime_type_match['qry'] = array("text/html");
$mime_type_match['qt'] = array("video/quicktime");
$mime_type_match['qtc'] = array("video/x-qtc");
$mime_type_match['qti'] = array("image/x-quicktime");
$mime_type_match['qtif'] = array("image/x-quicktime");
$mime_type_match['qtvr'] = array("video/quicktime");
$mime_type_match['r3t'] = array("text/vnd.rn-realtext3d");
$mime_type_match['ra'] = array("application/x-pn-realaudio", "audio/vnd.rn-realaudio", "audio/x-pn-realaudio", "audio/x-pn-realaudio-plugin", "audio/x-realaudio");
$mime_type_match['ram'] = array("application/x-pn-realaudio", "audio/x-pn-realaudio", "audio/x-pn-realaudio-plugin");
$mime_type_match['rar'] = array("application/rar");
$mime_type_match['ras'] = array("application/x-cmu-raster", "image/cmu-raster", "image/x-cmu-raster");
$mime_type_match['rast'] = array("image/cmu-raster");
$mime_type_match['rb'] = array("application/x-rocketbook");
$mime_type_match['rct'] = array("application/prs.nprend");
$mime_type_match['rep'] = array("application/vnd.businessobjects");
$mime_type_match['rexx'] = array("text/x-script.rexx");
$mime_type_match['rf'] = array("image/vnd.rn-realflash");
$mime_type_match['rgb'] = array("image/x-rgb");
$mime_type_match['rjs'] = array("application/vnd.rn-realsystem-rjs");
$mime_type_match['rlc'] = array("image/vnd.fujixerox.edmics-rlc");
$mime_type_match['rlf'] = array("application/x-richlink");
$mime_type_match['rm'] = array("application/vnd.rn-realmedia", "application/x-pn-realaudio", "audio/x-pn-realaudio", "audio/x-pn-realaudio-plugin");
$mime_type_match['rmi'] = array("audio/mid");
$mime_type_match['rmm'] = array("audio/x-pn-realaudio");
$mime_type_match['rmp'] = array("application/vnd.rn-rn_music_package", "audio/x-pn-realaudio", "audio/x-pn-realaudio-plugin");
$mime_type_match['rmx'] = array("application/vnd.rn-realsystem-rmx");
$mime_type_match['rnd'] = array("application/prs.nprend");
$mime_type_match['rng'] = array("application/ringing-tones", "application/vnd.nokia.ringing-tone");
$mime_type_match['rnx'] = array("application/vnd.rn-realplayer");
$mime_type_match['roff'] = array("application/x-troff");
$mime_type_match['rp'] = array("image/vnd.rn-realpix");
$mime_type_match['rpm'] = array("application/x-pn-realaudio", "audio/x-pn-RealAudio-plugin", "audio/x-pn-realaudio-plugin");
$mime_type_match['rsm'] = array("model/vnd.gdl", "model/vnd.gs.gdl");
$mime_type_match['rsml'] = array("application/vnd.rn-rsml");
$mime_type_match['rt'] = array("text/richtext", "text/vnd.rn-realtext");
$mime_type_match['rte'] = array("x-lml/x-gps");
$mime_type_match['rtf'] = array("text/richtext", "application/msword", "application/rtf", "application/x-rtf", "text/rtf");
$mime_type_match['rtg'] = array("application/metastream");
$mime_type_match['rts'] = array("application/x-rtsl");
$mime_type_match['rtx'] = array("text/richtext", "application/rtf");
$mime_type_match['rv'] = array("video/vnd.rn-realvideo");
$mime_type_match['rxn'] = array("chemical/x-mdl-rxn", "chemical/x-mdl-rxnfile");
$mime_type_match['s'] = array("text/x-asm");
$mime_type_match['s3m'] = array("audio/s3m", "audio/x-mod");
$mime_type_match['s3z'] = array("audio/x-mod");
$mime_type_match['sam'] = array("application/vnd.lotus-wordpro");
$mime_type_match['saveme'] = array("application/octet-stream");
$mime_type_match['sbk'] = array("application/x-tbook", "audio/x-sbk");
$mime_type_match['sc'] = array("application/x-showcase");
$mime_type_match['scd'] = array("application/x-msschedule");
$mime_type_match['scm'] = array("application/vnd.lotus-screencam", "application/x-lotusscreencam", "text/x-script.guile", "text/x-script.scheme", "video/x-scm");
$mime_type_match['scp'] = array("text/plain");
$mime_type_match['sct'] = array("text/scriptlet");
$mime_type_match['sdf'] = array("application/e-score", "chemical/x-mdl-sdf");
$mime_type_match['sdml'] = array("text/plain");
$mime_type_match['sdp'] = array("application/sdp", "application/x-sdp");
$mime_type_match['sdr'] = array("application/sounder");
$mime_type_match['sds'] = array("application/x-onlive");
$mime_type_match['sea'] = array("application/sea", "application/x-sea", "application/x-stuffit");
$mime_type_match['see'] = array("application/vnd.seemail");
$mime_type_match['ser'] = array("application/x-java-serialized-object");
$mime_type_match['set'] = array("application/set");
$mime_type_match['sgi-lpr'] = array("application/x-sgi-lpr");
$mime_type_match['sgm'] = array("text/sgml", "text/x-sgml");
$mime_type_match['sgml'] = array("text/sgml", "text/x-sgml");
$mime_type_match['sh'] = array("application/x-bsh", "application/x-sh", "application/x-shar", "text/x-script.sh");
$mime_type_match['sha'] = array("application/x-shar");
$mime_type_match['shar'] = array("application/x-bsh", "application/x-shar");
$mime_type_match['sho'] = array("application/x-showcase");
$mime_type_match['show'] = array("application/x-showcase");
$mime_type_match['showcase'] = array("application/x-showcase");
$mime_type_match['shtml'] = array("text/html", "magnus-internal/parsed-html", "text/x-server-parsed-html");
$mime_type_match['shw'] = array("application/presentations");
$mime_type_match['si'] = array("text/vnd.wap.si");
$mime_type_match['sic'] = array("application/vnd.wap.sic");
$mime_type_match['sid'] = array("audio/prs.sid", "audio/x-psid");
$mime_type_match['silo'] = array("model/mesh");
$mime_type_match['sis'] = array("application/vnd.symbian.install");
$mime_type_match['sit'] = array("application/x-sit", "application/x-stuffit");
$mime_type_match['skc'] = array("chemical/x-mdl-isis");
$mime_type_match['skd'] = array("application/vnd.koan", "application/x-koan");
$mime_type_match['skm'] = array("application/vnd.koan", "application/x-koan");
$mime_type_match['skp'] = array("application/vnd.koan", "application/x-koan");
$mime_type_match['skt'] = array("application/vnd.koan", "application/x-koan");
$mime_type_match['sl'] = array("text/vnd.wap.sl", "application/x-seelogo");
$mime_type_match['slc'] = array("application/vnd.wap.slc", "application/x-salsa");
$mime_type_match['slides'] = array("application/x-showcase");
$mime_type_match['slt'] = array("application/vnd.epson.salt");
$mime_type_match['smd'] = array("chemical/x-smd");
$mime_type_match['smi'] = array("application/smil", "chemical/x-daylight-smiles", "chemical/x-x-daylight-smiles");
$mime_type_match['smil'] = array("application/smil");
$mime_type_match['smp'] = array("application/studiom");
$mime_type_match['snd'] = array("audio/basic", "audio/x-adpcm");
$mime_type_match['sol'] = array("application/solids");
$mime_type_match['spc'] = array("application/x-pkcs7-certificates", "chemical/x-galactic-spc", "text/x-speech");
$mime_type_match['spl'] = array("application/futuresplash", "application/x-futuresplash");
$mime_type_match['spo'] = array("text/vnd.in3d.spot");
$mime_type_match['spot'] = array("text/vnd.in3d.spot");
$mime_type_match['spr'] = array("application/x-sprite");
$mime_type_match['sprite'] = array("application/x-sprite");
$mime_type_match['spt'] = array("application/x-spt");
$mime_type_match['src'] = array("application/x-wais-source");
$mime_type_match['ssf'] = array("application/vnd.epson.ssf");
$mime_type_match['ssi'] = array("text/x-server-parsed-html");
$mime_type_match['ssm'] = array("application/streamingmedia");
$mime_type_match['sst'] = array("application/vnd.ms-pki.certstore");
$mime_type_match['step'] = array("application/step");
$mime_type_match['stf'] = array("application/vnd.wt.stf");
$mime_type_match['stk'] = array("application/hyperstudio");
$mime_type_match['stl'] = array("application/sla", "application/vnd.ms-pki.stl", "application/x-navistyle");
$mime_type_match['stp'] = array("application/step");
$mime_type_match['str'] = array("application/vnd.pg.format", "audio/x-str");
$mime_type_match['sv4cpio'] = array("application/x-sv4cpio");
$mime_type_match['sv4crc'] = array("application/x-sv4crc");
$mime_type_match['svf'] = array("image/vnd.svf", "image/vnd", "image/x-dwg");
$mime_type_match['svg'] = array("image/svg-xml");
$mime_type_match['svh'] = array("image/svh");
$mime_type_match['svr'] = array("application/x-world", "x-world/x-svr");
$mime_type_match['swf'] = array("application/x-shockwave-flash");
$mime_type_match['swfl'] = array("application/x-shockwave-flash");
$mime_type_match['sys'] = array("video/x-mpeg-system");
الصق هذ الكود في
صفحة
includes/upload_definitions.php



8
 اذ طلع مثل هذ الخطاء
Error uploading image file:
exampl.mp3: Invalid file type (mp3, audio/mpg)
-----------------------------------
انسخ الكود با اللون الحمر
وقام باستبدلة
ْْxxxx
-----------------------------
وانسخ الكود با اللون الاخضر
وقام باستبدلة
0000000
---------------------------
$mime_type_match['0000000'] = array("xxxx");
مثل
$mime_type_match['mp3'] = array("audio/mpg");
----------------
اضف الكود
في صفحة
includes/upload_definitions.php
افتح ملف
templates/الثيم المسخدم/media/
اضف صفحة باسم
xxxx.html
مثل
mp3.html
--------------------------------------
ارجو ان يكون الدرس مفهوم
للمزيد من اكود التشغيل
upload_definitions.php
http://www.4homepages.de/forum/index.php?topic=20036.0

9
في اي صفحة في الثيم
اضف

Code: [Select]
<center><FORM>
<img border="0" src="/quran.jpg"><p>
<SELECT NAME="list">
<OPTION SELECTED VALUE="http://www.alafasy.com/audio/5atma_7af9_24/ram/001.ram">
الفاتحة
<OPTION VALUE="http://www.alafasy.com/audio/5atma_7af9_24/ram/002.ram">البقرة
<OPTION VALUE="http://www.alafasy.com/audio/5atma_7af9_24/ram/003.ram">آل عمران
<OPTION VALUE="http://www.alafasy.com/audio/5atma_7af9_24/ram/004.ram">النساء
<OPTION VALUE="http://www.alafasy.com/audio/5atma_7af9_24/ram/005.ram">المائدة
<OPTION VALUE="http://www.alafasy.com/audio/5atma_7af9_24/ram/006.ram">الأنعام
<OPTION VALUE="http://www.alafasy.com/audio/5atma_7af9_24/ram/007.ram">الأعراف
<OPTION VALUE="http://www.alafasy.com/audio/5atma_7af9_24/ram/008.ram">الأنفال
<OPTION VALUE="http://www.alafasy.com/audio/5atma_7af9_24/ram/009.ram">التوبة
<OPTION VALUE="http://www.alafasy.com/audio/5atma_7af9_24/ram/010.ram">يونس
<OPTION VALUE="http://www.alafasy.com/audio/5atma_7af9_24/ram/011.ram">هود
<OPTION VALUE="http://www.alafasy.com/audio/5atma_7af9_24/ram/012.ram">يوسف
<OPTION VALUE="http://www.alafasy.com/audio/5atma_7af9_24/ram/013.ram">الرعد
<OPTION VALUE="http://www.alafasy.com/audio/5atma_7af9_24/ram/014.ram">ابراهيم
<OPTION VALUE="http://www.alafasy.com/audio/5atma_7af9_24/ram/015.ram">الحجر
<OPTION VALUE="http://www.alafasy.com/audio/5atma_7af9_24/ram/016.ram">النحل
<OPTION VALUE="http://www.alafasy.com/audio/5atma_7af9_24/ram/017.ram">الإسراء
<OPTION VALUE="http://www.alafasy.com/audio/5atma_7af9_24/ram/018.ram">الكهف
<OPTION VALUE="http://www.alafasy.com/audio/5atma_7af9_24/ram/019.ram">مريم
<OPTION VALUE="http://www.alafasy.com/audio/5atma_7af9_24/ram/020.ram">طه
<OPTION VALUE="http://www.alafasy.com/audio/5atma_7af9_24/ram/021.ram">الأنبياء
<OPTION VALUE="http://www.alafasy.com/audio/5atma_7af9_24/ram/022.ram">الحج
<OPTION VALUE="http://www.alafasy.com/audio/5atma_7af9_24/ram/023.ram">المؤمنون
<OPTION VALUE="http://www.alafasy.com/audio/5atma_7af9_24/ram/024.ram">النور
<OPTION VALUE="http://www.alafasy.com/audio/5atma_7af9_24/ram/025.ram">الفرقان
<OPTION VALUE="http://www.alafasy.com/audio/5atma_7af9_24/ram/026.ram">الشعراء
<OPTION VALUE="http://www.alafasy.com/audio/5atma_7af9_24/ram/027.ram">النمل
<OPTION VALUE="http://www.alafasy.com/audio/5atma_7af9_24/ram/028.ram">القصص
<OPTION VALUE="http://www.alafasy.com/audio/5atma_7af9_24/ram/029.ram">العنكبوت
<OPTION VALUE="http://www.alafasy.com/audio/5atma_7af9_24/ram/030.ram">الروم
<OPTION VALUE="http://www.alafasy.com/audio/5atma_7af9_24/ram/031.ram">لقمان
<OPTION VALUE="http://www.alafasy.com/audio/5atma_7af9_24/ram/032.ram">السجدة
<OPTION VALUE="http://www.alafasy.com/audio/5atma_7af9_24/ram/033.ram">الأحزاب
<OPTION VALUE="http://www.alafasy.com/audio/5atma_7af9_24/ram/034.ram">سبأ
<OPTION VALUE="http://www.alafasy.com/audio/5atma_7af9_24/ram/035.ram">فاطر
<OPTION VALUE="http://www.alafasy.com/audio/5atma_7af9_24/ram/036.ram">يس
<OPTION VALUE="http://www.alafasy.com/audio/5atma_7af9_24/ram/037.ram">الصافات
<OPTION VALUE="http://www.alafasy.com/audio/5atma_7af9_24/ram/038.ram">ص
<OPTION VALUE="http://www.alafasy.com/audio/5atma_7af9_24/ram/039.ram">الزمر
<OPTION VALUE="http://www.alafasy.com/audio/5atma_7af9_24/ram/040.ram">غافر
<OPTION VALUE="http://www.alafasy.com/audio/5atma_7af9_24/ram/041.ram">فصلت
<OPTION VALUE="http://www.alafasy.com/audio/5atma_7af9_24/ram/042.ram">الشورى
<OPTION VALUE="http://www.alafasy.com/audio/5atma_7af9_24/ram/043.ram">الزخرف
<OPTION VALUE="http://www.alafasy.com/audio/5atma_7af9_24/ram/044.ram">الدخان
<OPTION VALUE="http://www.alafasy.com/audio/5atma_7af9_24/ram/045.ram">الجاثية
<OPTION VALUE="http://www.alafasy.com/audio/5atma_7af9_24/ram/046.ram">الأحقاف
<OPTION VALUE="http://www.alafasy.com/audio/5atma_7af9_24/ram/047.ram">محمد
<OPTION VALUE="http://www.alafasy.com/audio/5atma_7af9_24/ram/048.ram">الفتح
<OPTION VALUE="http://www.alafasy.com/audio/5atma_7af9_24/ram/049.ram">الحجرات
<OPTION VALUE="http://www.alafasy.com/audio/5atma_7af9_24/ram/050.ram">ق
<OPTION VALUE="http://www.alafasy.com/audio/5atma_7af9_24/ram/051.ram">الذاريات
<OPTION VALUE="http://www.alafasy.com/audio/5atma_7af9_24/ram/052.ram">الطور
<OPTION VALUE="http://www.alafasy.com/audio/5atma_7af9_24/ram/053.ram">النجم
<OPTION VALUE="http://www.alafasy.com/audio/5atma_7af9_24/ram/054.ram">القمر
<OPTION VALUE="http://www.alafasy.com/audio/5atma_7af9_24/ram/055.ram">الرحمن
<OPTION VALUE="http://www.alafasy.com/audio/5atma_7af9_24/ram/056.ram">الواقعة
<OPTION VALUE="http://www.alafasy.com/audio/5atma_7af9_24/ram/057.ram">الحديد
<OPTION VALUE="http://www.alafasy.com/audio/5atma_7af9_24/ram/058.ram">المجادلة
<OPTION VALUE="http://www.alafasy.com/audio/5atma_7af9_24/ram/059.ram">الحشر
<OPTION VALUE="http://www.alafasy.com/audio/5atma_7af9_24/ram/060.ram">الممتحنة
<OPTION VALUE="http://www.alafasy.com/audio/5atma_7af9_24/ram/061.ram">الصف
<OPTION VALUE="http://www.alafasy.com/audio/5atma_7af9_24/ram/062.ram">الجمعة
<OPTION VALUE="http://www.alafasy.com/audio/5atma_7af9_24/ram/063.ram">المنافقون
<OPTION VALUE="http://www.alafasy.com/audio/5atma_7af9_24/ram/064.ram">التغابن
<OPTION VALUE="http://www.alafasy.com/audio/5atma_7af9_24/ram/065.ram">الطلاق
<OPTION VALUE="http://www.alafasy.com/audio/5atma_7af9_24/ram/066.ram">التحريم
<OPTION VALUE="http://www.alafasy.com/audio/5atma_7af9_24/ram/067.ram">الملك
<OPTION VALUE="http://www.alafasy.com/audio/5atma_7af9_24/ram/068.ram">القلم
<OPTION VALUE="http://www.alafasy.com/audio/5atma_7af9_24/ram/069.ram">الحاقة
<OPTION VALUE="http://www.alafasy.com/audio/5atma_7af9_24/ram/070.ram">المعارج
<OPTION VALUE="http://www.alafasy.com/audio/5atma_7af9_24/ram/071.ram">نوح
<OPTION VALUE="http://www.alafasy.com/audio/5atma_7af9_24/ram/072.ram">الجن
<OPTION VALUE="http://www.alafasy.com/audio/5atma_7af9_24/ram/073.ram">المزمل
<OPTION VALUE="http://www.alafasy.com/audio/5atma_7af9_24/ram/074.ram">المدثر
<OPTION VALUE="http://www.alafasy.com/audio/5atma_7af9_24/ram/075.ram">القيامة
<OPTION VALUE="http://www.alafasy.com/audio/5atma_7af9_24/ram/076.ram">الإنسان
<OPTION VALUE="http://www.alafasy.com/audio/5atma_7af9_24/ram/077.ram">المرسلات
<OPTION VALUE="http://www.alafasy.com/audio/5atma_7af9_24/ram/078.ram">النبأ
<OPTION VALUE="http://www.alafasy.com/audio/5atma_7af9_24/ram/079.ram">النازعات
<OPTION VALUE="http://www.alafasy.com/audio/5atma_7af9_24/ram/080.ram">عبس
<OPTION VALUE="http://www.alafasy.com/audio/5atma_7af9_24/ram/081.ram">التكوير
<OPTION VALUE="http://www.alafasy.com/audio/5atma_7af9_24/ram/082.ram">الانفطار
<OPTION VALUE="http://www.alafasy.com/audio/5atma_7af9_24/ram/083.ram">المطففين
<OPTION VALUE="http://www.alafasy.com/audio/5atma_7af9_24/ram/084.ram">الانشقاق
<OPTION VALUE="http://www.alafasy.com/audio/5atma_7af9_24/ram/085.ram">البروج
<OPTION VALUE="http://www.alafasy.com/audio/5atma_7af9_24/ram/086.ram">الطارق
<OPTION VALUE="http://www.alafasy.com/audio/5atma_7af9_24/ram/087.ram">الأعلى
<OPTION VALUE="http://www.alafasy.com/audio/5atma_7af9_24/ram/088.ram">الغاشية
<OPTION VALUE="http://www.alafasy.com/audio/5atma_7af9_24/ram/089.ram">الفجر
<OPTION VALUE="http://www.alafasy.com/audio/5atma_7af9_24/ram/090.ram">البلد
<OPTION VALUE="http://www.alafasy.com/audio/5atma_7af9_24/ram/091.ram">الشمس
<OPTION VALUE="http://www.alafasy.com/audio/5atma_7af9_24/ram/092.ram">الليل
<OPTION VALUE="http://www.alafasy.com/audio/5atma_7af9_24/ram/093.ram">الضحى
<OPTION VALUE="http://www.alafasy.com/audio/5atma_7af9_24/ram/094.ram">الشرح
<OPTION VALUE="http://www.alafasy.com/audio/5atma_7af9_24/ram/095.ram">التين
<OPTION VALUE="http://www.alafasy.com/audio/5atma_7af9_24/ram/096.ram">العلق
<OPTION VALUE="http://www.alafasy.com/audio/5atma_7af9_24/ram/097.ram">القدر
<OPTION VALUE="http://www.alafasy.com/audio/5atma_7af9_24/ram/098.ram">البينة
<OPTION VALUE="http://www.alafasy.com/audio/5atma_7af9_24/ram/099.ram">الزلزلة
<OPTION VALUE="http://www.alafasy.com/audio/5atma_7af9_24/ram/100.ram">العاديات
<OPTION VALUE="http://www.alafasy.com/audio/5atma_7af9_24/ram/101.ram">القارعة
<OPTION VALUE="http://www.alafasy.com/audio/5atma_7af9_24/ram/102.ram">التكاثر
<OPTION VALUE="http://www.alafasy.com/audio/5atma_7af9_24/ram/103.ram">العصر
<OPTION VALUE="http://www.alafasy.com/audio/5atma_7af9_24/ram/104.ram">الهمزة
<OPTION VALUE="http://www.alafasy.com/audio/5atma_7af9_24/ram/105.ram">الفيل
<OPTION VALUE="http://www.alafasy.com/audio/5atma_7af9_24/ram/106.ram">قريش
<OPTION VALUE="http://www.alafasy.com/audio/5atma_7af9_24/ram/107.ram">الماعون
<OPTION VALUE="http://www.alafasy.com/audio/5atma_7af9_24/ram/108.ram">الكوثر
<OPTION VALUE="http://www.alafasy.com/audio/5atma_7af9_24/ram/109.ram">الكافرون
<OPTION VALUE="http://www.alafasy.com/audio/5atma_7af9_24/ram/110.ram">النصر
<OPTION VALUE="http://www.alafasy.com/audio/5atma_7af9_24/ram/111.ram">المسد
<OPTION VALUE="http://www.alafasy.com/audio/5atma_7af9_24/ram/112.ram">الإخلاص
<OPTION VALUE="http://www.alafasy.com/audio/5atma_7af9_24/ram/113.ram">الفلق
<OPTION VALUE="http://www.alafasy.com/audio/5atma_7af9_24/ram/114.ram">الناس</SELECT><br>
<br>
<INPUT TYPE=BUTTON VALUE="إستماع" ONCLICK="top.location.href=this.form.list.options[this.form.list.selectedIndex].value">
</p>
</p>
</FORM></center>

10
Templates & Styles (Releases & Support) / [Style] for admin (NEW)
« on: November 23, 2007, 02:31:04 AM »
 style for admin new

11
Arabic / قسم الدعم الفني / الترحيب بالزائر
« on: November 21, 2007, 06:28:40 PM »
اضف الكود في اي مكن
في ثيم الموقع
 
Code: [Select]
  <script language=JavaScript>
        var h=(new Date()).getHours();
        if (h > 23 || h < 7) document.write("ليلة طيبة");
        if (h > 6 && h < 12) document.write("صباح الخير");
        if (h > 11 && h < 19) document.write("اهلا");
        if (h > 18 && h < 24) document. write("مساء الخير");
      </script>

12
حمل الملف من المرفقات
ارسال الصور التي في الملف
الي ملف الثيم دخال
images
مثال
اسم الثيم/images/tags/subjoin.gif
ضع هذ الكود في اي
مكان في الثيم
Code: [Select]
<!--Begoodbe mod  -->
<table width="100%" border="0" cellspacing="0" cellpadding="3">
  <tr>
    <td class="head3" valign="top" style="background-image:url('{template_url}/images/cat.gif');" width="100%">
<span lang="ar-sa">ترشيح المواقع</span></td>
  </tr>
  <tr>
    <td align="center" valign="top" class="row1">

<a href="http://del.icio.us/post?v=4&noui&jump=close&url={list_url}" target="_blank"><img src="{template_url}/images/tags/delicious.16px.gif" alt="delicious" width="16" height="16" border="0"></a>

<a href="http://subjoin.su.funpic.de/submit.php?url={list_url}" target="_blank"><img src="{template_url}/images/tags/subjoin.gif" alt="Subjoin it!" width="16" height="16" border="0"></a>


<a href="http://tools.splitbrain.org/scuttle/bookmarks.php?action=add&address={list_url}&title={site_name}&description={image_name}" target="_blank"><img src="{template_url}/images/tags/scuttle.16px.gif" alt="scuttle" width="16" height="16" border="0" /></a>
 

  <a href="http://www.diigo.com/post?url={list_url}&title={site_name}-{image_name}&comments=" target="_blank"><img src="{template_url}/images/tags/diigo.gif" alt="diigo" width="16" height="16" border="0" /></a>
 
  <a href="http://cgi.fark.com/cgi/fark/edit.pl?new_url={list_url}&amp;new_comment={site_name}-{image_name}&amp;linktype=Misc" target="_blank"><img src="{template_url}/images/tags/fark.png" alt="fark" width="16" height="16" border="0"></a>
 
  <a href="http://feedmelinks.com/categorize?from=toolbar&amp;op=submit&amp;url={list_url}&amp;name={site_name}-{image_name}" target="_blank">
  <img src="{template_url}/images/tags/feedmelinks.png" alt="feedmelinks" width="16" height="16" border="0"></a>
 
  <a href="http://www.furl.net/storeIt.jsp?t={site_name}-{image_name}&u={list_url}" target="_blank"><img src="{template_url}/images/tags/furl.16px.gif" alt="furl" width="16" height="16" border="0"></a>
 
  <a href="http://www.blinkbits.com/bookmarklets/save.php?v=1&amp;source_url={list_url}&amp;title={site_name}&amp;body={image_name}" target="_blank"><img src="{template_url}/images/tags/blinkbits.png" alt="blinkbits" width="16" height="16" border="0"></a>
  <br />
  <a href="http://www.blinklist.com/index.php?Action=Blink/addblink.php&amp;Description=&amp;Url={list_url}&amp;Title={site_name}-{image_name}" target="_blank"><img src="{template_url}/images/tags/blinklist.png" alt="blinklits" width="16" height="16" border="0"></a>
 
  <a href="http://blogmarks.net/my/new.php?mini=1&amp;simple=1&amp;url={list_url}&amp;title={site_name}-{image_name}" target="_blank"><img src="{template_url}/images/tags/blogmarks.png" alt="blogmarks" width="16" height="16" border="0"></a>
 
  <a href="http://co.mments.com/track?url={list_url}&amp;title={site_name}-{image_name}" target="_blank"><img src="{template_url}/images/tags/co.mments.gif" alt="co.mments" width="16" height="16" border="0"></a>
   
 
  <a href="http://www.connotea.org/addpopup?continue=confirm&amp;uri={list_url}&amp;title={site_name}-{image_name}" target="_blank"><img src="{template_url}/images/tags/connotea.png" alt="connotea" width="16" height="16" border="0"></a>
 
  <a href="http://de.lirio.us/rubric/post?uri={list_url};title={site_name}-{image_name};when_done=go_back" target="_blank"><img src="{template_url}/images/tags/delirious.png" alt="delirious" width="16" height="16" border="0"></a>
 
 
  <a href="http://digg.com/submit?phase=2&amp;url={list_url}&amp;title={site_name}-{image_name}" target="_blank"><img src="{template_url}/images/tags/digg.png" alt="digg" width="16" height="16" border="0"></a>
 
   
  <a href="http://www.linkagogo.com/go/AddNoPopup?url={list_url}&amp;title={site_name}-{image_name}" target="_blank"><img src="{template_url}/images/tags/linkagogo.png" alt="linkagogo" width="16" height="16" border="0"></a>
 
 
  <br />
  <a href="http://ma.gnolia.com/beta/bookmarklet/add?url={list_url}&amp;title={site_name}&amp;description={image_name}" target="_blank"><img src="{template_url}/images/tags/magnolia.png" alt="magnolia" width="16" height="16" border="0"></a>
 
 
  <a href="http://www.netvouz.com/action/submitBookmark?url={list_url}&amp;title={site_name}&amp;description={image_name}" target="_blank"><img src="{template_url}/images/tags/netvouz.png" alt="netvouz" width="16" height="16" border="0"></a>
 
 
 
  <a href="http://www.newsvine.com/_tools/seed&amp;save?u={list_url}&amp;h={site_name}-{image_name}" target="_blank"><img src="{template_url}/images/tags/newsvine.png" alt="newsvine" width="16" height="16" border="0"></a>
 
 
 
  <a href="http://www.rawsugar.com/tagger/?turl={list_url}&amp;tttl={site_name}-{image_name}" target="_blank"><img src="{template_url}/images/tags/rawsugar.png" alt="rawsugar" width="16" height="16" border="0"></a>
 
 
  <a href="http://reddit.com/submit?url={list_url}&amp;title={site_name}-{image_name}" target="_blank"><img src="{template_url}/images/tags/reddit.png" alt="reddit" width="16" height="16" border="0"></a>
 

  <a href="http://www.shadows.com/features/tcr.htm?url={list_url}&amp;title={site_name}-{image_name}" target="_blank"><img src="{template_url}/images/tags/shadows.png" alt="shadows" width="16" height="16" border="0"></a>
 

  <a href="http://www.simpy.com/simpy/LinkAdd.do?href={list_url}&amp;title={site_name}-{image_name}" target="_blank"><img src="{template_url}/images/tags/simpy.png" alt="simpy" width="16" height="16" border="0"></a>
 
 
  <br />
 
 
  <a href="http://smarking.com/editbookmark/?url={list_url}&amp;description={site_name}-{image_name}" target="_blank"><img src="{template_url}/images/tags/smarking.png" alt="smarking" width="16" height="16" border="0"></a>
 
 
  <a href="http://www.spurl.net/spurl.php?v=3&title={site_name}-{image_name}&url={list_url}" target="_blank"><img src="{template_url}/images/tags/spurl.16px.gif" alt="spurl" width="16" height="16" border="0"></a>
 
   
  <a href="http://tailrank.com/share/?text=&amp;link_href={list_url}&amp;title={site_name}-{image_name}" target="_blank"><img src="{template_url}/images/tags/tailrank.png" alt="tailrank" width="16" height="16" border="0"></a>
 
   
  <a href="http://wists.com/r.php?c=&amp;r={list_url}&amp;title={site_name}-{image_name}" target="_blank"><img src="{template_url}/images/tags/wists.png" alt="wists" width="16" height="16" border="0"></a>
 
 
  <a href="http://myweb2.search.yahoo.com/myresults/bookmarklet?u={list_url}&amp;={site_name}-{image_name}" target="_blank"><img src="{template_url}/images/tags/yahoomyweb.png" alt="yahoomyweb" width="16" height="16" border="0"></a> </p>
 
 <a href="http://www.begoodbe.com" target="_blank"><img src="{template_url}/images/tags/begoodbe.png" alt="begoodbe" width="16" height="16" border="0"></a>
 
  </td>
  </tr>
</table>
<!--Begoodbe mod end -->

13
افتح ملف :
includes/page_header.php
اضاف هذ الكود قبل ?>:
في انهاية الصفحة
Code: [Select]
$site_template->register_vars(array(
  "lang_keyword" => $lang['keywords'], //---[/[MOD] Tag Clouds]
  "show_tag_clouds" => get_tag_clouds() //---[/[MOD] Tag Clouds]
));
افتح ملف:
includes/functions.php
اضاف هذ الكود قبل ?>:
في انهاية الصفحة
Code: [Select]
//---[ [MOD] Tag Cloud]
function get_tag_clouds() {
global $site_db, $lang, $site_sess, $mode;
$output = "";
   
  $sql = "SELECT i.word_id, i.word_text, COUNT(c.word_id) AS quantity
  FROM ".WORDLIST_TABLE." i
LEFT JOIN ".WORDMATCH_TABLE." c ON i.word_id = c.word_id
WHERE keys_match > 0
  GROUP BY i.word_text
  ORDER BY  RAND()
LIMIT 20";

  $result = $site_db->query($sql);
  while ($row = $site_db->fetch_array($result)) {
    $tags[$row['word_text']] = $row['quantity'];
  }
 
  //uncommentnext line to sort the tag array in reverse order (+ => -)
   //arsort($tags);   
        $max_size = 250; // max font size in %
        $min_size = 50; // min font size in %
       
        // largest and smallest array values
        $max_qty = max(array_values($tags));
        $min_qty = min(array_values($tags));
       
        // find the range of values
        $spread = $max_qty - $min_qty;
        if ($spread == 0) { // we don't want to divide by zero
                $spread = 1;
        }
       
        // set the font-size increment
        $step = ($max_size - $min_size) / ($spread);
       
        // loop through the tag array
        foreach ($tags as $key => $value) {
                // calculate font-size
                // find the $value in excess of $min_qty
                // multiply by the font-size increment ($size)
                // and add the $min_size set above
                $size = round($min_size + (($value - $min_qty) * $step));
       
                $output .= '<a href="'.$site_sess->url(ROOT_PATH."search.php?search_keywords=".$key.((!empty($mode)) ? "&amp;mode=".$mode : "")).'" style="font-size:'.$size.'%;color:rgb('.mt_rand(0, 255).', '.mt_rand(0, 255).', '.mt_rand(0, 255).');font-family:Verdana, Arial, Helvetica, sans-serif;" title="'.$value.' '.$lang['tagged_with'].' '.$key.'">'.$key.'</a> ';
        }

 
  return $output;
}
//---[/[MOD] Tag Cloud]
افتح ملف اللغة 
 main.php
اضاف هذ الكود قبل ?>:
في انهاية الصفحة
Code: [Select]
$lang['tagged_with'] = "صورة في كلمة: ";يمكنك وضع هذ الكود في اي مكن في
الثيم الموقع
Code: [Select]
{show_tag_clouds}

14
Arabic / قسم الدعم الفني / الصور الشخصية
« on: November 15, 2007, 10:34:32 AM »
ملفات التي سنقوم بتعديل علية
***********************
/member.php
/details.php
/includes/upload.php
/includes/db_field_definitions.php
/admin/settings.php
/admin/admin_functions.php
/lang/<yourlanguage>/admin.php
/lang/<yourlanguage>/main.php
/templates/<yourtemplate>/member_profile.html
/templates/<yourtemplate>/member_editprofile.html
/templates/<yourtemplate>/comment_bit.html
****************************************
افتح ملف
member.php
ابحث عن
Quote
    $site_template->register_vars(array(
      "user_id" => $user_row['user_id'],
      "user_name" => (isset($user_row['user_name'])) ? htmlspecialchars($user_row['user_name']) : REPLACE_EMPTY,
      "user_email" => $user_email,
      "user_email_save" => $user_email_save,
      "user_mailform_link" => $user_mailform_link,
تبديل 
Quote
    $site_template->register_vars(array(
    "lang_avatar" => $lang['avatar'],
    "user_avatar_current" => ($config['avatar_use']) ? "<img src=\"".TEMPLATE_PATH."/avatars/".(($user_row['user_avatar'] == "") ? "blank.gif" : $user_row['user_avatar'])."\" name=\"icons\" border=\"0\" alt=\"\">" : "",
      "user_id" => $user_row['user_id'],
      "user_name" => (isset($user_row['user_name'])) ? htmlspecialchars($user_row['user_name']) : REPLACE_EMPTY,
      "user_email" => $user_email,
      "user_email_save" => $user_email_save,
      "user_mailform_link" => $user_mailform_link,
بحث
Quote
   if (!$error) {
   $additional_sql = "";
    if (!empty($additional_user_fields)) {
      $table_fields = $site_db->get_table_fields(USERS_TABLE);
      foreach ($additional_user_fields as $key => $val) {
        if (isset($HTTP_POST_VARS[$key]) && isset($table_fields[$key])) {
          $additional_sql .= ", $key = '".un_htmlspecialchars(trim($HTTP_POST_VARS[$key]))."'";
        }
      }
    }

    $sql = "UPDATE ".USERS_TABLE."
            SET ".get_user_table_field("", "user_email")." = '$user_email', ".get_user_table_field("", "user_showemail")." = $user_showemail, ".get_user_table_field("", "user_allowemails")." = $user_allowemails, ".get_user_table_field("", "user_invisible")." = $user_invisible, ".get_user_table_field("", "user_homepage")." = '$user_homepage', ".get_user_table_field("", "user_icq")." = '$user_icq'".$additional_sql."
            WHERE ".get_user_table_field("", "user_id")." = ".$user_info['user_id'];
    $site_db->query($sql);
    $msg_color = 1;
    $msg .= $lang['update_profile_success'];
    if (!empty($new_email_msg)) {
      $msg .= "<br />".$new_email_msg;
    }
    $user_info = $site_sess->load_user_info($user_info['user_id']);
  }
  else {
    $update_process = 1;
  }
  $action = "editprofile";
}
اضاف اعلى
Quote
// Upload Avatar file
  if (!$error) {
     if (!empty($HTTP_POST_FILES['avatar_file']['tmp_name']) && $HTTP_POST_FILES['avatar_file']['tmp_name'] != "none") {
    include(ROOT_PATH.'includes/upload.php');
    $site_upload = new Upload();
    $new_name = $site_upload->upload_file("avatar_file", "avatar", $config['template_dir'], $user_info['user_id']);
     if (!$new_name) {
     $msg .= (($msg != "") ? "<br />" : "")."<b>".$lang['file_upload_error'].": ".$new_name."</b><br />".$site_upload->get_upload_errors();
     $error = 1;
     }else{
    $HTTP_POST_VARS['user_avatar'] = "users/".$new_name;
    $avatars_dir = TEMPLATE_DIR."/".$config['template_dir']."/avatars/users/";
    $dir = opendir($avatars_dir);
    $contents = array();
    while ($contents[] = readdir($dir)){;}
    closedir($dir);
    foreach ($contents as $line){
      $filename = substr($line,0,(strlen($line)-strlen(strrchr($line,"."))));
      $extension = substr(strrchr($line,"."), 1);
      $filename2 = substr($new_name,0,(strlen($new_name)-strlen(strrchr($new_name,"."))));
      $extension2 = substr(strrchr($new_name,"."), 1);
      if ($filename == $filename2 && $extension != $extension2) {
      unlink($avatars_dir.$line);
      }
    }

     }
    }
  }
// End Avatar file
ابحث
Quote
    $user_icq = $user_info['user_icq'];
اضاف بعد ذلك
Quote
  $user_avatar = $user_info['user_avatar'];
ابحث
Quote
  $site_template->register_vars(array(
    "user_name" => htmlspecialchars(stripslashes($user_name)),
بدل
Quote
//-----------------------
//------ Avatar ---------
//-----------------------
  if ($config['avatar_use']){
   $images = "";
  $checked = ($user_avatar == "blank.gif" || $user_avatar == "") ? " selected" : "";
  $images .= "\n<option value=\"blank.gif\"$checked>none</option>\n";
  $dir = opendir(TEMPLATE_PATH."/avatars/users/");
  $contents = array();
  while ($contents[] = readdir($dir)){;}
  closedir($dir);
  natcasesort ($contents);
  foreach ($contents as $line){
   $filename = substr($line,0,(strlen($line)-strlen(strrchr($line,"."))));
   if ($filename == $user_info['user_id']) {
     $checked = (stristr($user_avatar, "users/")) ? " selected" : "";
     $images .= "\n<option value=\"users/$line\"$checked>".$lang['custom']."</option>\n";
   }
  }
   $dir = opendir(TEMPLATE_PATH."/avatars/");
   $contents = array();
   while ($contents[] = readdir($dir)){;}
   closedir($dir);
   natcasesort ($contents);
   $checked = "";
   foreach ($contents as $line){
      $filename = substr($line,0,(strlen($line)-strlen(strrchr($line,"."))));
      $extension = substr(strrchr($line,"."), 1);
      $checked = "";
      if ($line == $user_avatar) { $checked = " selected"; }
      if (strcasecmp($extension,"gif")==0 || strcasecmp($extension,"jpg")==0 || strcasecmp($extension,"jpeg")==0 || strcasecmp($extension,"png")==0 ){
         if ($line != "blank.gif") {
        $filename = str_replace("_", " ", $filename);
        $images .= "<option value=\"$line\"$checked>$filename</option>\n";
       }
      }
   }
  }
//----------------------
//----- End Avatar -----
//----------------------

  $site_template->register_vars(array(
   "lang_avatar" => $lang['avatar'],
   "lang_avatar_file" => $lang['avatar_file'],
   "lang_avatar_dim" => $lang['avatar_max_dim']." ".$config['avatar_width']."x".$config['avatar_height'].$lang['px'],
   "lang_avatar_select" => $lang['avatar_select'],
   "user_avatar_images" => $images,
   "user_avatar_current" => ($config['avatar_use']) ? "<img src=\"".TEMPLATE_PATH."/avatars/".(($user_avatar == "") ? "blank.gif" : $user_avatar)."\" name=\"icons\" border=\"0\" alt=\"\">" : "",
   "lang_or" => $lang['or'],
   "user_avatar_file" => $config['avatar_user_custom'],
    "user_name" => htmlspecialchars(stripslashes($user_name)),
افتح ملف
details.php
ابحث
Quote
      $comment_user_id = $comment_row[$i]['user_id'];
اضاف بعد ذلك
Quote
    $user_row_comment = get_user_info($comment_user_id);
ابحث
Quote
        "comment_id" => $comment_row[$i]['comment_id'],
اضاف بعد ذلك
Quote
    "user_avatar_current" => ($config['avatar_use']) ? "<img src=\"".TEMPLATE_PATH."/avatars/".(($user_row_comment['user_avatar'] == "") ? "blank.gif" : $user_row_comment['user_avatar'])."\" name=\"icons\" border=\"0\" hspace=\"15\" alt=\"\">" : "",
افتح ملف
/includes/upload.php
ابحث عن
Quote
    $this->max_height['media'] = $config['max_image_height'];

    $this->max_size['thumb'] = $config['max_thumb_size'] * 1024;
    $this->max_size['media'] = $config['max_media_size'] * 1024;
بدل
Quote
    $this->max_height['media'] = $config['max_image_height'];
  $this->max_width['avatar'] = $config['avatar_width'];
  $this->max_height['avatar'] = $config['avatar_height'];

    $this->max_size['thumb'] = $config['max_thumb_size'] * 1024;
    $this->max_size['media'] = $config['max_media_size'] * 1024;
    $this->max_size['avatar'] = 99999999999;
ابحث
Quote
  function copy_file() {
اضاف بعد ذلك
Quote
  if ($this->image_type == "avatar") {
    if (file_exists($this->upload_path[$this->image_type]."/".$this->file_name)) {
        @unlink($this->upload_path[$this->image_type]."/".$this->file_name);
      }
      $ok = move_uploaded_file($this->upload_file, $this->upload_path[$this->image_type]."/".$this->file_name);
  }else{
ابحث
Quote
    @chmod($this->upload_path[$this->image_type]."/".$this->file_name, CHMOD_FILES);
بدل
Quote
  }
    @chmod($this->upload_path[$this->image_type]."/".$this->file_name, CHMOD_FILES);
ابحث
Quote
    if ($cat_id) {
      $this->upload_path['thumb'] = THUMB_PATH."/".$cat_id;
      $this->upload_path['media'] = MEDIA_PATH."/".$cat_id;
    }
    else {
      $this->upload_path['thumb'] = THUMB_TEMP_PATH;
      $this->upload_path['media'] = MEDIA_TEMP_PATH;
    }

    if ($file_name != "") {
بدل
Quote
    if ($cat_id) {
      $this->upload_path['thumb'] = THUMB_PATH."/".$cat_id;
      $this->upload_path['media'] = MEDIA_PATH."/".$cat_id;
    $this->upload_path['avatar'] = TEMPLATE_DIR."/".$cat_id."/avatars/users";
    }
    else {
      $this->upload_path['thumb'] = THUMB_TEMP_PATH;
      $this->upload_path['media'] = MEDIA_TEMP_PATH;
    }

    if ($file_name != "" && $this->image_type != "avatar") {
بحث
Quote
    $this->mime_type = $this->HTTP_POST_FILES[$this->field_name]['type'];
بدل
Quote
if ($this->image_type == "avatar") {
    $this->file_name = $file_name.".".$this->extension;
  }

    $this->mime_type = $this->HTTP_POST_FILES[$this->field_name]['type'];
ابحث
Quote
    //Thumbnails
    $this->accepted_mime_types['thumb'] = array(
      "image/jpeg",
      "image/pjpeg",
      "image/gif",
      "image/x-png"
    );
    $this->accepted_extensions['thumb'] = array(
      "jpg",
      "jpeg",
      "gif",
      "png"
    );
اضافة في الاسفال
Quote
  //Avatar
    $this->accepted_mime_types['avatar'] = array(
      "image/jpeg",
      "image/pjpeg",
      "image/gif",
      "image/x-png"
    );
    $this->accepted_extensions['avatar'] = array(
      "jpg",
      "jpeg",
      "gif",
      "png"
    );
ابحث
Quote
      $error_msg .= "<b>".$this->file_name.":</b> ".$msg."<br />";
بدل
Quote
      $error_msg .= "<b>".(($this->image_type == "avatar") ? $this->HTTP_POST_FILES[$this->field_name]['name'] : $this->file_name).":</b> ".$msg."<br />";
افتح ملف
/includes/db_field_definitions.php
ضع في اخر السطر
Quote
$additional_user_fields['user_avatar'] = array($lang['avatar'], "avatar", 0);
افتح ملف
/admin/settings.php
ابحث
Quote
  show_setting_row("highlight_admin", "radio");
ضعة فوق الكود
Quote
  show_table_separator($setting_group[8], 2, "#setting_group_8");
  show_setting_row("avatar_use", "radio");
  show_setting_row("avatar_user_custom", "radio");
  show_setting_row("avatar_width");
  show_setting_row("avatar_height");

افتح
/admin/admin_functions.php
ابحث
Quote
      case "text":
      default:
        show_input_row($val[0], $field_name, $value);
   
      } // end switch
    }
  }
}
?>
بدلة
Quote
   case "avatar":
    show_avatar_row($val[0], $field_name, $value);
    break;
      case "text":
      default:
        show_input_row($val[0], $field_name, $value);
   
      } // end switch
    }
  }
}
//-----------------------
//------ Avatar ---------
//-----------------------
function show_avatar_row($title, $name, $value = "blank.gif"){
  global $config;
  if ($config['avatar_use']){
  $dir = opendir(TEMPLATE_PATH."/avatars/");
  $contents = array();
  while ($contents[] = readdir($dir)){;}
  closedir($dir);
  natcasesort ($contents);
  echo "<tr width=\"50%\"class=\"".get_row_bg()."\" valign='top'>\n<td><p class=\"rowtitle\">".$title."</p></td>\n";
  echo "<td width=\"50%\" height=\"115\" valign=\"middle\">\n<table>\n<tr>\n<td>\n<SELECT name=\"$name\" size=\"6\" onkeypress=\"if(window.event.keyCode==13){this.form.submit();}\" onChange=\"document.form.icons_$name.src='".TEMPLATE_PATH."/avatars/'+document.form.$name.options[document.form.$name.selectedIndex].value;\">";
   if ($value == "blank.gif" || $value == "") {
   $checked = " selected";
   }else{
   $checked = "";
   }
   echo "<option value=\"blank.gif\"$checked>none</option>\n";
  foreach ($contents as $line){
     $filename = substr($line,0,(strlen($line)-strlen(strrchr($line,"."))));
     $extension = substr(strrchr($line,"."), 1);
     $checked = "";
     if ($line == $value) { $checked = " selected"; }
     if (strcasecmp($extension,"gif")==0 || strcasecmp($extension,"jpg")==0 || strcasecmp($extension,"jpeg")==0 || strcasecmp($extension,"png")==0 ){
      if ($line != "blank.gif") {
      $filename = str_replace("_", " ", $filename);
      echo "<option value=\"$line\"$checked>$filename</option>\n";
      }
     }
  }
  echo "</select>\n</td>\n<td valign='middle' align='left'>\n<img align='center' src=\"".TEMPLATE_PATH."/avatars/".(($value == "") ? "blank.gif" : $value)."\" name=\"icons_$name\" border=\"0\" alt=\"\">\n</td>\n</tr>\n</table>\n</td>\n";
  }
}
//----- End Avatar -----
?>
افتح ملف اللغة
lang/اللغة/admin.php
ضع الكود قبل
<?
Quote
/*-- Setting-Group 8 --*/
$setting_group[8]="الصور الشخصية";
$setting['avatar_use'] = "الصورة المستخدمة";
$setting['avatar_user_custom'] = ";كل المستخدمي يستطيعوم  ";
$setting['avatar_width'] = "Max. avatar width in pixel";
$setting['avatar_height'] = "Max. avatar height in pixel";
افتح ملف
/lang/اللغة/main.php
Quote
$lang['avatar'] = "الصور الشخصية: ";
$lang['avatar_file'] = "تحميل الصورة:";
$lang['avatar_max_dim'] = "Max. allowed";
$lang['avatar_select'] = "اختار الصورة الشخصية:";
$lang['custom'] = "اختار";
افتح الملف
/templates/اسم الثيم/member_profile.html
اضاف الكود
Quote
        {if user_avatar_current}
        <TR>
          <TD class="row2"><B>{lang_avatar}</B></TD>
          <TD class="row2">{user_avatar_current}</TD>
        </TR>
        {endif user_avatar_current}
افتح ملف
/templates/اسم الثيم/member_editprofile.html
اضاف الكود في الاعلى
Quote
<FORM method="post" action="{url_member}" name="creator" enctype="multipart/form-data">
  <TABLE width="100%" border="0" cellspacing="0" cellpadding="1">
    <TR>
      <TD valign="top" class="head1">
        <TABLE width="100%" border="0" cellpadding="4" cellspacing="0">
          <TR>
            <TD colspan="2" valign="top" class="head1">{lang_profile_of} {user_name}</TD>
          </TR>
          <TR>
            <TD class="row1"><B>{lang_email}</B></TD>
            <TD class="row1"><INPUT type="text" name="user_email"  size="30" value="{user_email}" class="input" /></TD>
          </TR>
          <TR>
            <TD class="row2"><B>{lang_email_confirm}</B></TD>
            <TD class="row2"><INPUT type="text" name="user_email2"  size="30" value="{user_email2}" class="input" /></TD>
          </TR>
          <TR>
            <TD class="row1"><B>{lang_show_email}</B></TD>
            <TD class="row1">
              <INPUT type="radio" name="user_showemail" value="1"{user_showemail_yes} />
              {lang_yes}&nbsp;&nbsp;&nbsp;
              <INPUT type="radio" name="user_showemail" value="0"{user_showemail_no} />
              {lang_no}</TD>
          </TR>
      <TR>
            <TD class="row2"><B>{lang_allow_emails}</B></TD>
            <TD class="row2">
              <INPUT type="radio" name="user_allowemails" value="1"{user_allowemails_yes} />
              {lang_yes}&nbsp;&nbsp;&nbsp;
              <INPUT type="radio" name="user_allowemails" value="0"{user_allowemails_no} />
              {lang_no}
      </TD>
          </TR>
          <TR>
            <TD class="row1"><B>{lang_invisible}</B></TD>
            <TD class="row1">
              <INPUT type="radio" name="user_invisible" value="1"{user_invisible_yes} />
              {lang_yes}&nbsp;&nbsp;&nbsp;
              <INPUT type="radio" name="user_invisible" value="0"{user_invisible_no} />
              {lang_no}
      </TD>
          </TR>
          <TR>
            <TD colspan="2" class="head1">{lang_optional_infos}</TD>
          </TR>
          <TR>
            <TD class="row1"><B>{lang_homepage}</B></TD>
            <TD class="row1"><INPUT type="text" name="user_homepage"  size="30" value="{user_homepage}" class="input" /></TD>
          </TR>
          <TR>
            <TD class="row2"><B>{lang_icq}</B></TD>
            <TD class="row2"><INPUT type="text" name="user_icq"  size="30" value="{user_icq}" class="input" /></TD>
          </TR>
                   {if user_avatar_images}
          <TR>
            <TD colspan="2" class="head1">{lang_avatar}</TD>
          </TR>

          <TR>
            <TD class="row2" valign="top">
            {if user_avatar_file}
              <B>{lang_avatar_file}</B><BR />
              <SPAN class="smalltext">
              <B>{lang_avatar_dim}</B>
              </SPAN>
              <BR>
              <b>{lang_or}</b><BR>
              {endif user_avatar_file}
              <B>
              {lang_avatar_select}
              </B>
            </TD>
            <TD class="row2">
            {if user_avatar_file}
              {lang_upload}
              <INPUT type="file" name="avatar_file"  size="30" class="input" />
              <BR />
              <BR />
              {endif user_avatar_file}
              <SELECT name="user_avatar" size="6" onkeypress="if(window.event.keyCode==13){ this.form.submit(); }" onChange="document.images.icons.src='{template_url}/avatars/'+document.creator.user_avatar.options[document.creator.user_avatar.selectedIndex].value;">{user_avatar_images}</SELECT>
              <TABLE width="100%" height="100" border="0">
                <TR>
                  <TD align="center">
                    {user_avatar_current}
                  </TD>
                </TR>
              </TABLE>
            </TD>
          </TR>
          {endif user_avatar_images}
        </TABLE>
      </TD>
    </TR>
  </TABLE>
  <INPUT type="hidden" name="action" value="updateprofile" />
  <P align="center">
    <INPUT type="submit" value="{lang_save}" class="button" />
    <INPUT type="reset" value="{lang_reset}" class="button" />
  </P>
</FORM>
افتح ملف
/templates/اسم الثيم/comment_bit.html
اضاف الكود في الملف
Quote
{if user_avatar_current}
  {user_avatar_current}
  {endif user_avatar_current}
حمل الملف الذي في المرفقات
ارسال ملف
install_avatar.php
في المجلد للمواقع
اضاف مجلد
باسم avatars
في مجلد الثيم
مثال
/templates/اسم الثيم/avatars/users/
اضاف صورة
باسم
blank.gif
في مجلد
/templates/<yourtemplate>/avatars
ارسال ملف
avatar.sql
الي المجلد الرائيسي

15
افتح ملف
 db_field_definitions.php
اضاف هذ الكود قبل
?>
Quote
$additional_image_fields['google_id'] = array($lang['google_video'], "text", 0);
$additional_image_fields['youtube_id'] = array($lang['youtube_video'], "text", 0);
افتح ملف
 details.html
ابحث عن
Quote
{image}
اضاف بعدة
Quote
{if google_id}
<embed style="width:400px; height:326px; "id="VideoPlayback" align="middle" type="application/x-shockwave-flash" src="http://video.google.com/googleplayer.swf?docId= {google_id}" allowScriptAccess="sameDomain" quality="best" bgcolor="#ffffff" scale="noScale" salign="TL" FlashVars="playerMode=embedded"> </embed>
{endif google_id}

{if youtube_id}
<object width="476" height="392"><param name="movie" value="http://www.youtube.com/v/{youtube_id}"></param><embed src="http://www.youtube.com/v/{youtube_id}" type="application/x-shockwave-flash" width="476" height="392" ></embed></object>
{endif youtube_id}
افتح ملف اللغة
lang/ملف اللغة/main.php
اضف الكود في في ملف اللغة
في نهاية الصفحة
Quote
$lang['google_video']="فيديو جوجل";
$lang ['youtube_video']="فيديو يوتوب";
حمل الملف الموجود في المرفقات
ارسال الملف
video_install.php
الي المجلد الرائيس ي
 http://yoursite/video_install.php

Pages: [1] 2