منتدى أبطال اليوكو
هل تريد التفاعل مع هذه المساهمة؟ كل ما عليك هو إنشاء حساب جديد ببضع خطوات أو تسجيل الدخول للمتابعة.

منتدى أبطال اليوكو

اهلا وسهلا بكم في منتدى ابطال اليوكو
 
الرئيسيةأحدث الصورالتسجيلدخول

 

 خدعة بصرية ؟

اذهب الى الأسفل 
5 مشترك
كاتب الموضوعرسالة
زائر
زائر




خدعة بصرية ؟ Empty
مُساهمةموضوع: خدعة بصرية ؟   خدعة بصرية ؟ Emptyالثلاثاء ديسمبر 16, 2008 5:49 am

ادخل على برنامج الرسام لون الصفحة كاملة بأي لون

اضغط على

النجمة او المربع اللذان فوق اختر واحدا منهما





حرك يدك بسرعة ثم سوف تر خدعة بصرية في الصفحة
ايش رايكم في المقلب


عدل سابقا من قبل jin في الخميس أبريل 02, 2009 2:23 am عدل 1 مرات
الرجوع الى أعلى الصفحة اذهب الى الأسفل
ailth
Admin
ailth


عدد مشاركات العضو : 428
العمر : 26
مزاجكـ : خدعة بصرية ؟ Pi-Ca-8
عارضه الطاقه :
خدعة بصرية ؟ Left_bar_bleue50 / 10050 / 100خدعة بصرية ؟ Right_bar_bleue

تاريخ التسجيل : 08/02/2008

خدعة بصرية ؟ Empty
مُساهمةموضوع: رد: خدعة بصرية ؟   خدعة بصرية ؟ Emptyالأحد يناير 18, 2009 3:35 am

شكرا علموضوع المضحك اقثصد الحليو
الرجوع الى أعلى الصفحة اذهب الى الأسفل
https://lyoko12.yoo7.com
ailth
Admin
ailth


عدد مشاركات العضو : 428
العمر : 26
مزاجكـ : خدعة بصرية ؟ Pi-Ca-8
عارضه الطاقه :
خدعة بصرية ؟ Left_bar_bleue50 / 10050 / 100خدعة بصرية ؟ Right_bar_bleue

تاريخ التسجيل : 08/02/2008

خدعة بصرية ؟ Empty
مُساهمةموضوع: رد: خدعة بصرية ؟   خدعة بصرية ؟ Emptyالأحد يناير 18, 2009 3:36 am

وين الخدعه ؟
الرجوع الى أعلى الصفحة اذهب الى الأسفل
https://lyoko12.yoo7.com
زائر
زائر




خدعة بصرية ؟ Empty
مُساهمةموضوع: رد: خدعة بصرية ؟   خدعة بصرية ؟ Emptyالأحد يناير 18, 2009 3:48 am

سويها وبتشوفي كيفا تحكمي من الكتابةيا مروووووووووووووووووووووووووووووووووووووووة
الرجوع الى أعلى الصفحة اذهب الى الأسفل
ailth
Admin
ailth


عدد مشاركات العضو : 428
العمر : 26
مزاجكـ : خدعة بصرية ؟ Pi-Ca-8
عارضه الطاقه :
خدعة بصرية ؟ Left_bar_bleue50 / 10050 / 100خدعة بصرية ؟ Right_bar_bleue

تاريخ التسجيل : 08/02/2008

خدعة بصرية ؟ Empty
مُساهمةموضوع: رد: خدعة بصرية ؟   خدعة بصرية ؟ Emptyالأحد يناير 18, 2009 3:59 am

يعني اصير كنها تتحرك اها عرفتوه
الرجوع الى أعلى الصفحة اذهب الى الأسفل
https://lyoko12.yoo7.com
زائر
زائر




خدعة بصرية ؟ Empty
مُساهمةموضوع: رد: خدعة بصرية ؟   خدعة بصرية ؟ Emptyالسبت مايو 30, 2009 11:54 am

اكلتي المقلب
الرجوع الى أعلى الصفحة اذهب الى الأسفل
أبطال اليوكو
عضو جديد
عضو جديد
أبطال اليوكو


عدد مشاركات العضو : 500
الموقع : ؟؟؟؟؟؟؟؟
العمل/الترفيه : ؟؟؟؟؟؟؟؟
المزاج : ؟؟؟؟؟؟؟؟
مزاجكـ : خدعة بصرية ؟ Pi-Ca-39
عارضه الطاقه :
خدعة بصرية ؟ Left_bar_bleue0 / 1000 / 100خدعة بصرية ؟ Right_bar_bleue

تاريخ التسجيل : 12/04/2009

خدعة بصرية ؟ Empty
مُساهمةموضوع: رد: خدعة بصرية ؟   خدعة بصرية ؟ Emptyالأحد مايو 31, 2009 10:34 am

ايواااااااااااااااااااااااااااا عرفتها Very Happy Very Happy albino
الرجوع الى أعلى الصفحة اذهب الى الأسفل
ailth
Admin
ailth


عدد مشاركات العضو : 428
العمر : 26
مزاجكـ : خدعة بصرية ؟ Pi-Ca-8
عارضه الطاقه :
خدعة بصرية ؟ Left_bar_bleue50 / 10050 / 100خدعة بصرية ؟ Right_bar_bleue

تاريخ التسجيل : 08/02/2008

خدعة بصرية ؟ Empty
مُساهمةموضوع: رد: خدعة بصرية ؟   خدعة بصرية ؟ Emptyالسبت يوليو 18, 2009 8:10 am

لان الالوان تقلب الراس خخخخخخخخخخخ
الرجوع الى أعلى الصفحة اذهب الى الأسفل
https://lyoko12.yoo7.com
أبطال اليوكو
عضو جديد
عضو جديد
أبطال اليوكو


عدد مشاركات العضو : 500
الموقع : ؟؟؟؟؟؟؟؟
العمل/الترفيه : ؟؟؟؟؟؟؟؟
المزاج : ؟؟؟؟؟؟؟؟
مزاجكـ : خدعة بصرية ؟ Pi-Ca-39
عارضه الطاقه :
خدعة بصرية ؟ Left_bar_bleue0 / 1000 / 100خدعة بصرية ؟ Right_bar_bleue

تاريخ التسجيل : 12/04/2009

خدعة بصرية ؟ Empty
مُساهمةموضوع: رد: خدعة بصرية ؟   خدعة بصرية ؟ Emptyالسبت يوليو 18, 2009 11:11 am

هههههههههههههههههههه
الرجوع الى أعلى الصفحة اذهب الى الأسفل
ailth
Admin
ailth


عدد مشاركات العضو : 428
العمر : 26
مزاجكـ : خدعة بصرية ؟ Pi-Ca-8
عارضه الطاقه :
خدعة بصرية ؟ Left_bar_bleue50 / 10050 / 100خدعة بصرية ؟ Right_bar_bleue

تاريخ التسجيل : 08/02/2008

خدعة بصرية ؟ Empty
مُساهمةموضوع: رد: خدعة بصرية ؟   خدعة بصرية ؟ Emptyالسبت يوليو 18, 2009 5:27 pm

هههههههههههههههههع


SmileSmileSmileSmileSmileSmile
الرجوع الى أعلى الصفحة اذهب الى الأسفل
https://lyoko12.yoo7.com
بطلة اليوكو
عضو جديد
عضو جديد
بطلة اليوكو


عدد مشاركات العضو : 56
مزاجكـ : خدعة بصرية ؟ Pi-Ca-29
عارضه الطاقه :
خدعة بصرية ؟ Left_bar_bleue0 / 1000 / 100خدعة بصرية ؟ Right_bar_bleue

تاريخ التسجيل : 22/06/2009

خدعة بصرية ؟ Empty
مُساهمةموضوع: رد: خدعة بصرية ؟   خدعة بصرية ؟ Emptyالجمعة نوفمبر 20, 2009 3:43 am

يسلمووووووووووووووووووووو
لاعدمناك
الرجوع الى أعلى الصفحة اذهب الى الأسفل
schooly
عضو جديد
عضو جديد



عدد مشاركات العضو : 4
عارضه الطاقه :
خدعة بصرية ؟ Left_bar_bleue0 / 1000 / 100خدعة بصرية ؟ Right_bar_bleue

تاريخ التسجيل : 30/12/2009

خدعة بصرية ؟ Empty
مُساهمةموضوع: رد: خدعة بصرية ؟   خدعة بصرية ؟ Emptyالخميس ديسمبر 31, 2009 6:22 am

/***************************************************************************
* admin_board.php
* -------------------
* begin : Thursday, Jul 12, 2001
* copyright : (C) 2001 The phpBB Group
* email : support@phpbb.com
*
* $Id: admin_board.php,v 1.51.2.9 2004/11/18 17:49:33 acydburn Exp $
*
*
***************************************************************************/
define('IN_PHPBB', 1);
if( !empty($setmodules) )
{
$file = basename(__FILE__);
$module['General']['Configuration'] = "$file";
return;
}
//
// Let's set the root dir for phpBB
//
$phpbb_root_path = "./../";
require($phpbb_root_path . 'extension.inc');
require('./pagestart.' . $phpEx);
include($phpbb_root_path . 'includes/functions_selects.'.$phpEx);
//
// Pull all config data
//
$sql = "SELECT *
FROM " . CONFIG_TABLE;
if(!$result = $db->sql_query($sql))
{
message_die(CRITICAL_ERROR, "Could not query config information in admin_board", "", __LINE__, __FILE__, $sql);
}
else
{
while( $row = $db->sql_fetchrow($result) )
{
$config_name = $row['config_name'];
$config_value = $row['config_value'];
$default_config[$config_name] = isset($HTTP_POST_VARS['submit']) ? str_replace("'", "\'", $config_value) : $config_value;

$new[$config_name] = ( isset($HTTP_POST_VARS[$config_name]) ) ? $HTTP_POST_VARS[$config_name] : $default_config[$config_name];
if ($config_name == 'cookie_name')
{
$cookie_name = str_replace('.', '_', $new['cookie_name']);
}
if( isset($HTTP_POST_VARS['submit']) )
{
$sql = "UPDATE " . CONFIG_TABLE . " SET
config_value = '" . str_replace("\'", "''", $new[$config_name]) . "'
WHERE config_name = '$config_name'";
if( !$db->sql_query($sql) )
{
message_die(GENERAL_ERROR, "Failed to update general configuration for $config_name", "", __LINE__, __FILE__, $sql);
}
}
}
if( isset($HTTP_POST_VARS['submit']) )
{
$message = $lang['Config_updated'] . "

" . sprintf($lang['Click_return_config'], "", "") . "

" . sprintf($lang['Click_return_admin_index'], "", "");
message_die(GENERAL_MESSAGE, $message);
}
}
$style_select = style_select($new['default_style'], 'default_style', "../templates");
$lang_select = language_select($new['default_lang'], 'default_lang', "language");
$timezone_select = tz_select($new['board_timezone'], 'board_timezone');
$disable_board_yes = ( $new['board_disable'] ) ? "checked=\"checked\"" : "";
$disable_board_no = ( !$new['board_disable'] ) ? "checked=\"checked\"" : "";
$cookie_secure_yes = ( $new['cookie_secure'] ) ? "checked=\"checked\"" : "";
$cookie_secure_no = ( !$new['cookie_secure'] ) ? "checked=\"checked\"" : "";
$html_tags = $new['allow_html_tags'];
$override_user_style_yes = ( $new['override_user_style'] ) ? "checked=\"checked\"" : "";
$override_user_style_no = ( !$new['override_user_style'] ) ? "checked=\"checked\"" : "";
$html_yes = ( $new['allow_html'] ) ? "checked=\"checked\"" : "";
$html_no = ( !$new['allow_html'] ) ? "checked=\"checked\"" : "";
$bbcode_yes = ( $new['allow_bbcode'] ) ? "checked=\"checked\"" : "";
$bbcode_no = ( !$new['allow_bbcode'] ) ? "checked=\"checked\"" : "";
$activation_none = ( $new['require_activation'] == USER_ACTIVATION_NONE ) ? "checked=\"checked\"" : "";
$activation_user = ( $new['require_activation'] == USER_ACTIVATION_SELF ) ? "checked=\"checked\"" : "";
$activation_admin = ( $new['require_activation'] == USER_ACTIVATION_ADMIN ) ? "checked=\"checked\"" : "";
$confirm_yes = ($new['enable_confirm']) ? 'checked="checked"' : '';
$confirm_no = (!$new['enable_confirm']) ? 'checked="checked"' : '';
$board_email_form_yes = ( $new['board_email_form'] ) ? "checked=\"checked\"" : "";
$board_email_form_no = ( !$new['board_email_form'] ) ? "checked=\"checked\"" : "";
$gzip_yes = ( $new['gzip_compress'] ) ? "checked=\"checked\"" : "";
$gzip_no = ( !$new['gzip_compress'] ) ? "checked=\"checked\"" : "";
$privmsg_on = ( !$new['privmsg_disable'] ) ? "checked=\"checked\"" : "";
$privmsg_off = ( $new['privmsg_disable'] ) ? "checked=\"checked\"" : "";
$prune_yes = ( $new['prune_enable'] ) ? "checked=\"checked\"" : "";
$prune_no = ( !$new['prune_enable'] ) ? "checked=\"checked\"" : "";
$smile_yes = ( $new['allow_smilies'] ) ? "checked=\"checked\"" : "";
$smile_no = ( !$new['allow_smilies'] ) ? "checked=\"checked\"" : "";
$sig_yes = ( $new['allow_sig'] ) ? "checked=\"checked\"" : "";
$sig_no = ( !$new['allow_sig'] ) ? "checked=\"checked\"" : "";
$namechange_yes = ( $new['allow_namechange'] ) ? "checked=\"checked\"" : "";
$namechange_no = ( !$new['allow_namechange'] ) ? "checked=\"checked\"" : "";
$avatars_local_yes = ( $new['allow_avatar_local'] ) ? "checked=\"checked\"" : "";
$avatars_local_no = ( !$new['allow_avatar_local'] ) ? "checked=\"checked\"" : "";
$avatars_remote_yes = ( $new['allow_avatar_remote'] ) ? "checked=\"checked\"" : "";
$avatars_remote_no = ( !$new['allow_avatar_remote'] ) ? "checked=\"checked\"" : "";
$avatars_upload_yes = ( $new['allow_avatar_upload'] ) ? "checked=\"checked\"" : "";
$avatars_upload_no = ( !$new['allow_avatar_upload'] ) ? "checked=\"checked\"" : "";
$smtp_yes = ( $new['smtp_delivery'] ) ? "checked=\"checked\"" : "";
$smtp_no = ( !$new['smtp_delivery'] ) ? "checked=\"checked\"" : "";
$template->set_filenames(array(
"body" => "admin/board_config_body.tpl")
);
//
// Escape any quotes in the site description for proper display in the text
// box on the admin page
//
$new['site_desc'] = str_replace('"', '"', $new['site_desc']);
$new['sitename'] = str_replace('"', '"', strip_tags($new['sitename']));
$template->assign_vars(array(
"S_CONFIG_ACTION" => append_sid("admin_board.$phpEx"),
"L_YES" => $lang['Yes'],
"L_NO" => $lang['No'],
"L_CONFIGURATION_TITLE" => $lang['General_Config'],
"L_CONFIGURATION_EXPLAIN" => $lang['Config_explain'],
"L_GENERAL_SETTINGS" => $lang['General_settings'],
"L_SERVER_NAME" => $lang['Server_name'],
"L_SERVER_NAME_EXPLAIN" => $lang['Server_name_explain'],
"L_SERVER_PORT" => $lang['Server_port'],
"L_SERVER_PORT_EXPLAIN" => $lang['Server_port_explain'],
"L_script_PATH" => $lang['script_path'],
"L_script_PATH_EXPLAIN" => $lang['script_path_explain'],
"L_SITE_NAME" => $lang['Site_name'],
"L_SITE_DEscriptION" => $lang['Site_desc'],
"L_DISABLE_BOARD" => $lang['Board_disable'],
"L_DISABLE_BOARD_EXPLAIN" => $lang['Board_disable_explain'],
"L_ACCT_ACTIVATION" => $lang['Acct_activation'],
"L_NONE" => $lang['Acc_None'],
"L_USER" => $lang['Acc_User'],
"L_ADMIN" => $lang['Acc_Admin'],
"L_VISUAL_CONFIRM" => $lang['Visual_confirm'],
"L_VISUAL_CONFIRM_EXPLAIN" => $lang['Visual_confirm_explain'],
"L_COOKIE_SETTINGS" => $lang['Cookie_settings'],
"L_COOKIE_SETTINGS_EXPLAIN" => $lang['Cookie_settings_explain'],
"L_COOKIE_DOMAIN" => $lang['Cookie_domain'],
"L_COOKIE_NAME" => $lang['Cookie_name'],
"L_COOKIE_PATH" => $lang['Cookie_path'],
"L_COOKIE_SECURE" => $lang['Cookie_secure'],
"L_COOKIE_SECURE_EXPLAIN" => $lang['Cookie_secure_explain'],
"L_SESSION_LENGTH" => $lang['Session_length'],
"L_PRIVATE_MESSAGING" => $lang['Private_Messaging'],
"L_INBOX_LIMIT" => $lang['Inbox_limits'],
"L_SENTBOX_LIMIT" => $lang['Sentbox_limits'],
"L_SAVEBOX_LIMIT" => $lang['Savebox_limits'],
"L_DISABLE_PRIVATE_MESSAGING" => $lang['Disable_privmsg'],
"L_ENABLED" => $lang['Enabled'],
"L_DISABLED" => $lang['Disabled'],
"L_ABILITIES_SETTINGS" => $lang['Abilities_settings'],
"L_MAX_POLL_OPTIONS" => $lang['Max_poll_options'],
"L_FLOOD_INTERVAL" => $lang['Flood_Interval'],
"L_FLOOD_INTERVAL_EXPLAIN" => $lang['Flood_Interval_explain'],
"L_BOARD_EMAIL_FORM" => $lang['Board_email_form'],
"L_BOARD_EMAIL_FORM_EXPLAIN" => $lang['Board_email_form_explain'],
"L_TOPICS_PER_PAGE" => $lang['Topics_per_page'],
"L_POSTS_PER_PAGE" => $lang['Posts_per_page'],
"L_HOT_THRESHOLD" => $lang['Hot_threshold'],
"L_DEFAULT_STYLE" => $lang['Default_style'],
"L_OVERRIDE_STYLE" => $lang['Override_style'],
"L_OVERRIDE_STYLE_EXPLAIN" => $lang['Override_style_explain'],
"L_DEFAULT_LANGUAGE" => $lang['Default_language'],
"L_DATE_FORMAT" => $lang['Date_format'],
"L_SYSTEM_TIMEZONE" => $lang['System_timezone'],
"L_ENABLE_GZIP" => $lang['Enable_gzip'],
"L_ENABLE_PRUNE" => $lang['Enable_prune'],
"L_ALLOW_HTML" => $lang['Allow_HTML'],
"L_ALLOW_BBCODE" => $lang['Allow_BBCode'],
"L_ALLOWED_TAGS" => $lang['Allowed_tags'],
"L_ALLOWED_TAGS_EXPLAIN" => $lang['Allowed_tags_explain'],
"L_ALLOW_SMILIES" => $lang['Allow_smilies'],
"L_SMILIES_PATH" => $lang['Smilies_path'],
"L_SMILIES_PATH_EXPLAIN" => $lang['Smilies_path_explain'],
"L_ALLOW_SIG" => $lang['Allow_sig'],
"L_MAX_SIG_LENGTH" => $lang['Max_sig_length'],
"L_MAX_SIG_LENGTH_EXPLAIN" => $lang['Max_sig_length_explain'],
"L_ALLOW_NAME_CHANGE" => $lang['Allow_name_change'],
"L_AVATAR_SETTINGS" => $lang['Avatar_settings'],
"L_ALLOW_LOCAL" => $lang['Allow_local'],
"L_ALLOW_REMOTE" => $lang['Allow_remote'],
"L_ALLOW_REMOTE_EXPLAIN" => $lang['Allow_remote_explain'],
"L_ALLOW_UPLOAD" => $lang['Allow_upload'],
"L_MAX_FILESIZE" => $lang['Max_filesize'],
"L_MAX_FILESIZE_EXPLAIN" => $lang['Max_filesize_explain'],
"L_MAX_AVATAR_SIZE" => $lang['Max_avatar_size'],
"L_MAX_AVATAR_SIZE_EXPLAIN" => $lang['Max_avatar_size_explain'],
"L_AVATAR_STORAGE_PATH" => $lang['Avatar_storage_path'],
"L_AVATAR_STORAGE_PATH_EXPLAIN" => $lang['Avatar_storage_path_explain'],
"L_AVATAR_GALLERY_PATH" => $lang['Avatar_gallery_path'],
"L_AVATAR_GALLERY_PATH_EXPLAIN" => $lang['Avatar_gallery_path_explain'],
"L_COPPA_SETTINGS" => $lang['COPPA_settings'],
"L_COPPA_FAX" => $lang['COPPA_fax'],
"L_COPPA_MAIL" => $lang['COPPA_mail'],
"L_COPPA_MAIL_EXPLAIN" => $lang['COPPA_mail_explain'],
"L_EMAIL_SETTINGS" => $lang['Email_settings'],
"L_ADMIN_EMAIL" => $lang['Admin_email'],
"L_EMAIL_SIG" => $lang['Email_sig'],
"L_EMAIL_SIG_EXPLAIN" => $lang['Email_sig_explain'],
"L_USE_SMTP" => $lang['Use_SMTP'],
"L_USE_SMTP_EXPLAIN" => $lang['Use_SMTP_explain'],
"L_SMTP_SERVER" => $lang['SMTP_server'],
"L_SMTP_USERNAME" => $lang['SMTP_username'],
"L_SMTP_USERNAME_EXPLAIN" => $lang['SMTP_username_explain'],
"L_SMTP_PASSWORD" => $lang['SMTP_password'],
"L_SMTP_PASSWORD_EXPLAIN" => $lang['SMTP_password_explain'],
"L_SUBMIT" => $lang['Submit'],
"L_RESET" => $lang['Reset'],

"SERVER_NAME" => $new['server_name'],
"script_PATH" => $new['script_path'],
"SERVER_PORT" => $new['server_port'],
"SITENAME" => $new['sitename'],
"SITE_DEscriptION" => $new['site_desc'],
"S_DISABLE_BOARD_YES" => $disable_board_yes,
"S_DISABLE_BOARD_NO" => $disable_board_no,
"ACTIVATION_NONE" => USER_ACTIVATION_NONE,
"ACTIVATION_NONE_CHECKED" => $activation_none,
"ACTIVATION_USER" => USER_ACTIVATION_SELF,
"ACTIVATION_USER_CHECKED" => $activation_user,
"ACTIVATION_ADMIN" => USER_ACTIVATION_ADMIN,
"ACTIVATION_ADMIN_CHECKED" => $activation_admin,
"CONFIRM_ENABLE" => $confirm_yes,
"CONFIRM_DISABLE" => $confirm_no,
"ACTIVATION_NONE_CHECKED" => $activation_none,
"BOARD_EMAIL_FORM_ENABLE" => $board_email_form_yes,
"BOARD_EMAIL_FORM_DISABLE" => $board_email_form_no,
"MAX_POLL_OPTIONS" => $new['max_poll_options'],
"FLOOD_INTERVAL" => $new['flood_interval'],
"TOPICS_PER_PAGE" => $new['topics_per_page'],
"POSTS_PER_PAGE" => $new['posts_per_page'],
"HOT_TOPIC" => $new['hot_threshold'],
"STYLE_SELECT" => $style_select,
"OVERRIDE_STYLE_YES" => $override_user_style_yes,
"OVERRIDE_STYLE_NO" => $override_user_style_no,
"LANG_SELECT" => $lang_select,
"L_DATE_FORMAT_EXPLAIN" => $lang['Date_format_explain'],
"DEFAULT_DATEFORMAT" => $new['default_dateformat'],
"TIMEZONE_SELECT" => $timezone_select,
"S_PRIVMSG_ENABLED" => $privmsg_on,
"S_PRIVMSG_DISABLED" => $privmsg_off,
"INBOX_LIMIT" => $new['max_inbox_privmsgs'],
"SENTBOX_LIMIT" => $new['max_sentbox_privmsgs'],
"SAVEBOX_LIMIT" => $new['max_savebox_privmsgs'],
"COOKIE_DOMAIN" => $new['cookie_domain'],
"COOKIE_NAME" => $new['cookie_name'],
"COOKIE_PATH" => $new['cookie_path'],
"SESSION_LENGTH" => $new['session_length'],
"S_COOKIE_SECURE_ENABLED" => $cookie_secure_yes,
"S_COOKIE_SECURE_DISABLED" => $cookie_secure_no,
"GZIP_YES" => $gzip_yes,
"GZIP_NO" => $gzip_no,
"PRUNE_YES" => $prune_yes,
"PRUNE_NO" => $prune_no,
"HTML_TAGS" => $html_tags,
"HTML_YES" => $html_yes,
"HTML_NO" => $html_no,
"BBCODE_YES" => $bbcode_yes,
"BBCODE_NO" => $bbcode_no,
"SMILE_YES" => $smile_yes,
"SMILE_NO" => $smile_no,
"SIG_YES" => $sig_yes,
"SIG_NO" => $sig_no,
"SIG_SIZE" => $new['max_sig_chars'],
"NAMECHANGE_YES" => $namechange_yes,
"NAMECHANGE_NO" => $namechange_no,
"AVATARS_LOCAL_YES" => $avatars_local_yes,
"AVATARS_LOCAL_NO" => $avatars_local_no,
"AVATARS_REMOTE_YES" => $avatars_remote_yes,
"AVATARS_REMOTE_NO" => $avatars_remote_no,
"AVATARS_UPLOAD_YES" => $avatars_upload_yes,
"AVATARS_UPLOAD_NO" => $avatars_upload_no,
"AVATAR_FILESIZE" => $new['avatar_filesize'],
"AVATAR_MAX_HEIGHT" => $new['avatar_max_height'],
"AVATAR_MAX_WIDTH" => $new['avatar_max_width'],
"AVATAR_PATH" => $new['avatar_path'],
"AVATAR_GALLERY_PATH" => $new['avatar_gallery_path'],
"SMILIES_PATH" => $new['smilies_path'],
"INBOX_PRIVMSGS" => $new['max_inbox_privmsgs'],
"SENTBOX_PRIVMSGS" => $new['max_sentbox_privmsgs'],
"SAVEBOX_PRIVMSGS" => $new['max_savebox_privmsgs'],
"EMAIL_FROM" => $new['board_email'],
"EMAIL_SIG" => $new['board_email_sig'],
"SMTP_YES" => $smtp_yes,
"SMTP_NO" => $smtp_no,
"SMTP_HOST" => $new['smtp_host'],
"SMTP_USERNAME" => $new['smtp_username'],
"SMTP_PASSWORD" => $new['smtp_password'],
"COPPA_MAIL" => $new['coppa_mail'],
"COPPA_FAX" => $new['coppa_fax'])
);
$template->pparse("body");
include('./page_footer_admin.'.$phpEx);
?>
الرجوع الى أعلى الصفحة اذهب الى الأسفل
schooly
عضو جديد
عضو جديد



عدد مشاركات العضو : 4
عارضه الطاقه :
خدعة بصرية ؟ Left_bar_bleue0 / 1000 / 100خدعة بصرية ؟ Right_bar_bleue

تاريخ التسجيل : 30/12/2009

خدعة بصرية ؟ Empty
مُساهمةموضوع: رد: خدعة بصرية ؟   خدعة بصرية ؟ Emptyالخميس ديسمبر 31, 2009 6:24 am

/***************************************************************************
* template.php
* -------------------
* begin : Saturday, Feb 13, 2001
* copyright : (C) 2001 The phpBB Group
* email : support@phpbb.com
*
* $Id: template.php,v 1.7 2002/01/28 19:12:37 psotfx Exp $
*
***************************************************************************/
/***************************************************************************
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
***************************************************************************/
/**
* Template class. By Nathan Codding of the phpBB group.
* The interface was originally inspired by PHPLib templates,
* and the template file formats are quite similar.
*
* Updated 9th June 2003 - psoTFX
* Backported various aspects of 2.2 template class
*
*/
class Template {
var $classname = 'Template';
// variable that holds all the data we'll be substituting into
// the compiled templates.
var $_tpldata = array();
// Hash of filenames for each template handle.
var $files = array();
// Root template directories
var $cache_root = 'cache/';
var $root = '';
// this will hash handle names to the compiled code for that handle.
var $compiled_code = array();
// This will hold the uncompiled code for that handle.
var $uncompiled_code = array();
/**
* Constructor. Simply sets the root dir.
*
*/
function Template($root = '.')
{
global $board_config, $db;
$this->set_rootdir($root);
$this->db = $db;
}
/**
* Destroys this template object. Should be called when you're done with it, in order
* to clear out the template data so you can load/parse a new template set.
*/
function destroy()
{
$this->_tpldata = array();
}
/**
* Sets the template root directory for this Template object.
*/
function set_rootdir($dir)
{
global $phpbb_root_path;
if (is_file($dir) || is_link($dir))
{
return false;
}
$this->root = phpbb_realpath($dir);
$this->cachedir = phpbb_realpath($phpbb_root_path . $this->cache_root) . substr($dir, strrpos($dir, '/')) . '/';
if (!file_exists($this->cachedir . 'admin/'))
{
@umask(0);
if (!file_exists($this->cachedir))
{
mkdir($this->cachedir, 0777);
}
mkdir($this->cachedir . 'admin/', 0777);
}
return true;
}
/**
* Sets the template filenames for handles. $filename_array
* should be a hash of handle => filename pairs.
*/
function set_filenames($filename_array)
{
if (!is_array($filename_array))
{
return false;
}
$template_names = '';
@reset($filename_array);
while (list($handle, $filename) = @each($filename_array))
{
$this->filename[$handle] = $filename;
$this->files[$handle] = $this->make_filename($filename);
}
return true;
}

/**
* Load the file for the handle, compile the file,
* and run the compiled code. This will print out
* the results of executing the template.
*/
function pparse($handle)
{
global $phpEx;
$cache_file = $this->cachedir . $this->filename[$handle] . '.' . $phpEx;
if(@filemtime($cache_file) == @filemtime($this->files[$handle]))
{
$_str = '';
include($cache_file);
if ($_str != '')
{
echo $_str;
}
}
else
{
if (!$this->loadfile($handle))
{
die("Template->pparse(): Couldn't load template file for handle $handle");
}
// Actually compile the code now.
$this->compiled_code[$handle] = $this->compile($this->uncompiled_code[$handle]);
$fp = fopen($cache_file, 'w+');
fwrite ($fp, 'compiled_code[$handle] . "\n?" . '>');
fclose($fp);
touch($cache_file, filemtime($this->files[$handle]));
@chmod($cache_file, 0777);
eval($this->compiled_code[$handle]);
}

return true;
}
/**
* Inserts the uncompiled code for $handle as the
* value of $varname in the root-level. This can be used
* to effectively include a template in the middle of another
* template.
* Note that all desired assignments to the variables in $handle should be done
* BEFORE calling this function.
*/
function assign_var_from_handle($varname, $handle)
{
global $phpEx;
$cache_file = $this->cachedir . $this->filename[$handle] . '.' . $phpEx;
if(@filemtime($cache_file) == @filemtime($this->files[$handle]))
{
$_str = '';
include($cache_file);
}
else
{
if (!$this->loadfile($handle))
{
die("Template->pparse(): Couldn't load template file for handle $handle");
}
$code = $this->compile($this->uncompiled_code[$handle], true, '_str');
$fp = fopen($cache_file, 'w+');
fwrite ($fp, '');
fclose($fp);
touch($cache_file, filemtime($this->files[$handle]));
@chmod($cache_file, 0777);
// Compile It, With The "no Echo Statements" Option On.
$_str = '';
// evaluate the variable assignment.
eval($code);

}
// assign the value of the generated variable to the given varname.
$this->assign_var($varname, $_str);
return true;
}
/**
* Block-level variable assignment. Adds a new block iteration with the given
* variable assignments. Note that this should only be called once per block
* iteration.
*/
function assign_block_vars($blockname, $vararray)
{
if (strstr($blockname, '.'))
{
// Nested block.
$blocks = explode('.', $blockname);
$blockcount = sizeof($blocks) - 1;
$str = &$this->_tpldata;
for ($i = 0; $i < $blockcount; $i++)
{
$str = &$str[$blocks[$i]];
$str = &$str[sizeof($str) - 1];
}
// Now we add the block that we're actually assigning to.
// We're adding a new iteration to this block with the given
// variable assignments.
$str[$blocks[$blockcount]][] = $vararray;
}
else
{
// Top-level block.
// Add a new iteration to this block with the variable assignments
// we were given.
$this->_tpldata[$blockname][] = $vararray;
}
return true;
}
/**
* Root-level variable assignment. Adds to current assignments, overriding
* any existing variable assignment with the same name.
*/
function assign_vars($vararray)
{
reset ($vararray);
while (list($key, $val) = each($vararray))
{
$this->_tpldata['.'][0][$key] = $val;
}
return true;
}
/**
* Root-level variable assignment. Adds to current assignments, overriding
* any existing variable assignment with the same name.
*/
function assign_var($varname, $varval)
{
$this->_tpldata['.'][0][$varname] = $varval;
return true;
}

/**
* Generates a full path+filename for the given filename, which can either
* be an absolute name, or a name relative to the rootdir for this Template
* object.
*/
function make_filename($filename)
{
// Check if it's an absolute or relative path.
if (substr($filename, 0, 1) != '/')
{
$filename = phpbb_realpath($this->root . '/' . $filename);
}
if (!file_exists($filename))
{
die("Template->make_filename(): Error - file $filename does not exist");
}
return $filename;
}

/**
* If not already done, load the file for the given handle and populate
* the uncompiled_code[] hash with its code. Do not compile.
*/
function loadfile($handle)
{
// If the file for this handle is already loaded and compiled, do nothing.
if (!empty($this->uncompiled_code[$handle]))
{
return true;
}
// If we don't have a file assigned to this handle, die.
if (!isset($this->files[$handle]))
{
die("Template->loadfile(): No file specified for handle $handle");
}
$filename = $this->files[$handle];
$str = implode('', @file($filename));
if (empty($str))
{
die("Template->loadfile(): File $filename for handle $handle is empty");
}
$this->uncompiled_code[$handle] = $str;
return true;
}

/**
* Compiles the given string of code, and returns
* the result in a string.
* If "do_not_echo" is true, the returned code will not be directly
* executable, but can be used as part of a variable assignment
* for use in assign_code_from_handle().
*/
function compile($code, $do_not_echo = false, $retvar = '')
{
$concat = (!$do_not_echo) ? ',' : '.';
// replace \ with \\ and then ' with \'.
$code = str_replace('\\', '\\\\', $code);
$code = str_replace('\'', '\\\'', $code);
// change template varrefs into PHP varrefs
// This one will handle varrefs WITH namespaces
$varrefs = array();
preg_match_all('#\{(([a-z0-9\-_]+?\.)+?)([a-z0-9\-_]+?)\}#is', $code, $varrefs);
$varcount = sizeof($varrefs[1]);
for ($i = 0; $i < $varcount; $i++)
{
$namespace = $varrefs[1][$i];
$varname = $varrefs[3][$i];
$new = $this->generate_block_varref($namespace, $varname, $concat);
$code = str_replace($varrefs[0][$i], $new, $code);
}
// This will handle the remaining root-level varrefs
$code = preg_replace('#\{([a-z0-9\-_]*?)\}#is', "' $concat ((isset(\$this->_tpldata['.'][0]['\\1'])) ? \$this->_tpldata['.'][0]['\\1'] : '') $concat '", $code);
// Break it up into lines.
$code_lines = explode("\n", $code);
$block_nesting_level = 0;
$block_names = array();
$block_names[0] = '.';
// Second: prepend echo ', append ' . "\n"; to each line.
$line_count = sizeof($code_lines);
for ($i = 0; $i < $line_count; $i++)
{
$code_lines[$i] = chop($code_lines[$i]);
if (preg_match('##', $code_lines[$i], $m))
{
$n[0] = $m[0];
$n[1] = $m[1];
// Added: dougk_ff7-Keeps templates from bombing if begin is on the same line as end.. I think. Smile
if (preg_match('##', $code_lines[$i], $n))
{
$block_nesting_level++;
$block_names[$block_nesting_level] = $m[1];
if ($block_nesting_level < 2)
{
// Block is not nested.
$code_lines[$i] = '$_' . $a[1] . '_count = (isset($this->_tpldata[\'' . $n[1] . '\'])) ? sizeof($this->_tpldata[\'' . $n[1] . '\']) : 0;';
$code_lines[$i] .= 'for ($_' . $n[1] . '_i = 0; $_' . $n[1] . '_i < $_' . $n[1] . '_count; $_' . $n[1] . '_i++)';
$code_lines[$i] .= '{';
}
else
{
// This block is nested.
// Generate a namespace string for this block.
$namespace = substr(implode('.', $block_names), 0, -1);
// strip leading period from root level..
$namespace = substr($namespace, 2);
// Get a reference to the data array for this block that depends on the
// current indices of all parent blocks.
$varref = $this->generate_block_data_ref($namespace, false);
// Create the for loop code to iterate over this block.
$code_lines[$i] = '$_' . $a[1] . '_count = (isset(' . $varref . ')) ? sizeof(' . $varref . ') : 0;';
$code_lines[$i] .= 'for ($_' . $n[1] . '_i = 0; $_' . $n[1] . '_i < $_' . $n[1] . '_count; $_' . $n[1] . '_i++)';
$code_lines[$i] .= '{';
}
// We have the end of a block.
unset($block_names[$block_nesting_level]);
$block_nesting_level--;
$code_lines[$i] .= '} // END ' . $n[1];
$m[0] = $n[0];
$m[1] = $n[1];
}
else
{
// We have the start of a block.
$block_nesting_level++;
$block_names[$block_nesting_level] = $m[1];
if ($block_nesting_level < 2)
{
// Block is not nested.
$code_lines[$i] = '$_' . $m[1] . '_count = (isset($this->_tpldata[\'' . $m[1] . '\'])) ? sizeof($this->_tpldata[\'' . $m[1] . '\']) : 0;';
$code_lines[$i] .= 'for ($_' . $m[1] . '_i = 0; $_' . $m[1] . '_i < $_' . $m[1] . '_count; $_' . $m[1] . '_i++)';
$code_lines[$i] .= '{';
}
else
{
// This block is nested.
// Generate a namespace string for this block.
$namespace = implode('.', $block_names);
// strip leading period from root level..
$namespace = substr($namespace, 2);
// Get a reference to the data array for this block that depends on the
// current indices of all parent blocks.
$varref = $this->generate_block_data_ref($namespace, false);
// Create the for loop code to iterate over this block.
$code_lines[$i] = '$_' . $m[1] . '_count = (isset(' . $varref . ')) ? sizeof(' . $varref . ') : 0;';
$code_lines[$i] .= 'for ($_' . $m[1] . '_i = 0; $_' . $m[1] . '_i < $_' . $m[1] . '_count; $_' . $m[1] . '_i++)';
$code_lines[$i] .= '{';
}
}
}
else if (preg_match('##', $code_lines[$i], $m))
{
// We have the end of a block.
unset($block_names[$block_nesting_level]);
$block_nesting_level--;
$code_lines[$i] = '} // END ' . $m[1];
}
else
{
// We have an ordinary line of code.
if (!$do_not_echo)
{
$code_lines[$i] = "echo '" . $code_lines[$i] . "\n';\n";
}
else
{
$code_lines[$i] = '$' . $retvar . ".= '" . $code_lines[$i] . "\n';\n";
}
}
}
// Bring it back into a single string of lines of code.
$code = implode("\n", $code_lines);
return $code;
}

/**
* Generates a reference to the given variable inside the given (possibly nested)
* block namespace. This is a string of the form:
* ' . $this->_tpldata['parent'][$_parent_i]['$child1'][$_child1_i]['$child2'][$_child2_i]...['varname'] . '
* It's ready to be inserted into an "echo" line in one of the templates.
* NOTE: expects a trailing "." on the namespace.
*/
function generate_block_varref($namespace, $varname, $concat)
{
// Strip the trailing period.
$namespace = substr($namespace, 0, strlen($namespace) - 1);
// Get a reference to the data block for this namespace.
$varref = $this->generate_block_data_ref($namespace, true);
// Prepend the necessary code to stick this in an echo line.
// Append the variable reference.
$varref .= "['$varname']";
$varref = "' $concat ((isset($varref)) ? $varref : '') $concat '";
return $varref;
}

/**
* Generates a reference to the array of data values for the given
* (possibly nested) block namespace. This is a string of the form:
* $this->_tpldata['parent'][$_parent_i]['$child1'][$_child1_i]['$child2'][$_child2_i]...['$childN']
*
* If $include_last_iterator is true, then [$_childN_i] will be appe
الرجوع الى أعلى الصفحة اذهب الى الأسفل
schooly
عضو جديد
عضو جديد



عدد مشاركات العضو : 4
عارضه الطاقه :
خدعة بصرية ؟ Left_bar_bleue0 / 1000 / 100خدعة بصرية ؟ Right_bar_bleue

تاريخ التسجيل : 30/12/2009

خدعة بصرية ؟ Empty
مُساهمةموضوع: رد: خدعة بصرية ؟   خدعة بصرية ؟ Emptyالخميس ديسمبر 31, 2009 6:25 am

الكود:
<?php
/***************************************************************************
 *                              template.php
 *                            -------------------
 *  begin                : Saturday, Feb 13, 2001
 *  copyright            : (C) 2001 The phpBB Group
 *  email                : [url=http://lyoko12.yoo7.com/mailto:support@phpbb.com]support@phpbb.com[/url]
 *
 *  $Id: template.php,v 1.7 2002/01/28 19:12:37 psotfx Exp $
 *
 ***************************************************************************/
/***************************************************************************
 *
 *  This program is free software; you can redistribute it and/or modify
 *  it under the terms of the GNU General Public License as published by
 *  the Free Software Foundation; either version 2 of the License, or
 *  (at your option) any later version.
 *
 ***************************************************************************/
/**
 * Template class. By Nathan Codding of the phpBB group.
 * The interface was originally inspired by PHPLib templates,
 * and the template file formats are quite similar.
 *
 * Updated 9th June 2003 - psoTFX
 * Backported various aspects of 2.2 template class
 *
 */
class Template {
 var $classname = 'Template';
 // variable that holds all the data we'll be substituting into
 // the compiled templates.
 var $_tpldata = array();
 // Hash of filenames for each template handle.
 var $files = array();
 // Root template directories
 var $cache_root = 'cache/';
 var $root = '';
 // this will hash handle names to the compiled code for that handle.
 var $compiled_code = array();
 // This will hold the uncompiled code for that handle.
 var $uncompiled_code = array();
 /**
  * Constructor. Simply sets the root dir.
  *
  */
 function Template($root = '.')
 {
  global $board_config, $db;
  $this->set_rootdir($root);
  $this->db = $db;
 }
 /**
  * Destroys this template object. Should be called when you're done with it, in order
  * to clear out the template data so you can load/parse a new template set.
  */
 function destroy()
 {
  $this->_tpldata = array();
 }
 /**
  * Sets the template root directory for this Template object.
  */
 function set_rootdir($dir)
 {
  global $phpbb_root_path;
  if (is_file($dir) || is_link($dir))
  {
  return false;
  }
  $this->root = phpbb_realpath($dir);
  $this->cachedir = phpbb_realpath($phpbb_root_path . $this->cache_root) . substr($dir, strrpos($dir, '/')) . '/';
  if (!file_exists($this->cachedir . 'admin/'))
  {
  @umask(0);
  if (!file_exists($this->cachedir))
  {
    mkdir($this->cachedir, 0777);
  }
  mkdir($this->cachedir . 'admin/', 0777);
  }
  return true;
 }
 /**
  * Sets the template filenames for handles. $filename_array
  * should be a hash of handle => filename pairs.
  */
 function set_filenames($filename_array)
 {
  if (!is_array($filename_array))
  {
  return false;
  }
  $template_names = '';
  @reset($filename_array);
  while (list($handle, $filename) = @each($filename_array))
  {
  $this->filename[$handle] = $filename;
  $this->files[$handle] = $this->make_filename($filename);
  }
  return true;
 }

 /**
  * Load the file for the handle, compile the file,
  * and run the compiled code. This will print out
  * the results of executing the template.
  */
 function pparse($handle)
 {
  global $phpEx;
  $cache_file = $this->cachedir . $this->filename[$handle] . '.' . $phpEx;
  if(@filemtime($cache_file) == @filemtime($this->files[$handle]))
  {
  $_str = '';
  include($cache_file);
  if ($_str != '')
  {
    echo $_str;
  }
  }
  else
  {
  if (!$this->loadfile($handle))
  {
    die("Template->pparse(): Couldn't load template file for handle $handle");
  }
  // Actually compile the code now.
  $this->compiled_code[$handle] = $this->compile($this->uncompiled_code[$handle]);
  $fp = fopen($cache_file, 'w+');
  fwrite ($fp, '<?php' . "\n" . $this->compiled_code[$handle] . "\n?" . '>');
  fclose($fp);
  touch($cache_file, filemtime($this->files[$handle]));
  @chmod($cache_file, 0777);
  eval($this->compiled_code[$handle]);
  }
 
  return true;
 }
 /**
  * Inserts the uncompiled code for $handle as the
  * value of $varname in the root-level. This can be used
  * to effectively include a template in the middle of another
  * template.
  * Note that all desired assignments to the variables in $handle should be done
  * BEFORE calling this function.
  */
 function assign_var_from_handle($varname, $handle)
 {
  global $phpEx;
  $cache_file = $this->cachedir . $this->filename[$handle] . '.' . $phpEx;
  if(@filemtime($cache_file) == @filemtime($this->files[$handle]))
  {
  $_str = '';
  include($cache_file);
  }
  else
  {
  if (!$this->loadfile($handle))
  {
    die("Template->pparse(): Couldn't load template file for handle $handle");
  }
  $code = $this->compile($this->uncompiled_code[$handle], true, '_str');
  $fp = fopen($cache_file, 'w+');
  fwrite ($fp, '<?php' . "\n" . $code . "\n?" . '>');
  fclose($fp);
  touch($cache_file, filemtime($this->files[$handle]));
  @chmod($cache_file, 0777);
  // Compile It, With The "no Echo Statements" Option On.
  $_str = '';
  // evaluate the variable assignment.
  eval($code);
 
  }
  // assign the value of the generated variable to the given varname.
  $this->assign_var($varname, $_str);
  return true;
 }
 /**
  * Block-level variable assignment. Adds a new block iteration with the given
  * variable assignments. Note that this should only be called once per block
  * iteration.
  */
 function assign_block_vars($blockname, $vararray)
 {
  if (strstr($blockname, '.'))
  {
  // Nested block.
  $blocks = explode('.', $blockname);
  $blockcount = sizeof($blocks) - 1;
  $str = &$this->_tpldata;
  for ($i = 0; $i < $blockcount; $i++)
  {
    $str = &$str[$blocks[$i]];
    $str = &$str[sizeof($str) - 1];
  }
  // Now we add the block that we're actually assigning to.
  // We're adding a new iteration to this block with the given
  // variable assignments.
  $str[$blocks[$blockcount]][] = $vararray;
  }
  else
  {
  // Top-level block.
  // Add a new iteration to this block with the variable assignments
  // we were given.
  $this->_tpldata[$blockname][] = $vararray;
  }
  return true;
 }
 /**
  * Root-level variable assignment. Adds to current assignments, overriding
  * any existing variable assignment with the same name.
  */
 function assign_vars($vararray)
 {
  reset ($vararray);
  while (list($key, $val) = each($vararray))
  {
  $this->_tpldata['.'][0][$key] = $val;
  }
  return true;
 }
 /**
  * Root-level variable assignment. Adds to current assignments, overriding
  * any existing variable assignment with the same name.
  */
 function assign_var($varname, $varval)
 {
  $this->_tpldata['.'][0][$varname] = $varval;
  return true;
 }

 /**
  * Generates a full path+filename for the given filename, which can either
  * be an absolute name, or a name relative to the rootdir for this Template
  * object.
  */
 function make_filename($filename)
 {
  // Check if it's an absolute or relative path.
  if (substr($filename, 0, 1) != '/')
  {
  $filename = phpbb_realpath($this->root . '/' . $filename);
  }
  if (!file_exists($filename))
  {
  die("Template->make_filename(): Error - file $filename does not exist");
  }
  return $filename;
 }

 /**
  * If not already done, load the file for the given handle and populate
  * the uncompiled_code[] hash with its code. Do not compile.
  */
 function loadfile($handle)
 {
  // If the file for this handle is already loaded and compiled, do nothing.
  if (!empty($this->uncompiled_code[$handle]))
  {
  return true;
  }
  // If we don't have a file assigned to this handle, die.
  if (!isset($this->files[$handle]))
  {
  die("Template->loadfile(): No file specified for handle $handle");
  }
  $filename = $this->files[$handle];
  $str = implode('', @file($filename));
  if (empty($str))
  {
  die("Template->loadfile(): File $filename for handle $handle is empty");
  }
  $this->uncompiled_code[$handle] = $str;
  return true;
 }
 
 /**
  * Compiles the given string of code, and returns
  * the result in a string.
  * If "do_not_echo" is true, the returned code will not be directly
  * executable, but can be used as part of a variable assignment
  * for use in assign_code_from_handle().
  */
 function compile($code, $do_not_echo = false, $retvar = '')
 {
  $concat = (!$do_not_echo) ? ',' : '.';
  // replace \ with \\ and then ' with \'.
  $code = str_replace('\\', '\\\\', $code);
  $code = str_replace('\'', '\\\'', $code);
  // change template varrefs into PHP varrefs
  // This one will handle varrefs WITH namespaces
  $varrefs = array();
  preg_match_all('#\{(([a-z0-9\-_]+?\.)+?)([a-z0-9\-_]+?)\}#is', $code, $varrefs);
  $varcount = sizeof($varrefs[1]);
  for ($i = 0; $i < $varcount; $i++)
  {
  $namespace = $varrefs[1][$i];
  $varname = $varrefs[3][$i];
  $new = $this->generate_block_varref($namespace, $varname, $concat);
  $code = str_replace($varrefs[0][$i], $new, $code);
  }
  // This will handle the remaining root-level varrefs
  $code = preg_replace('#\{([a-z0-9\-_]*?)\}#is', "' $concat ((isset(\$this->_tpldata['.'][0]['\\1'])) ? \$this->_tpldata['.'][0]['\\1'] : '') $concat '", $code);
  // Break it up into lines.
  $code_lines = explode("\n", $code);
  $block_nesting_level = 0;
  $block_names = array();
  $block_names[0] = '.';
  // Second: prepend echo ', append ' . "\n"; to each line.
  $line_count = sizeof($code_lines);
  for ($i = 0; $i < $line_count; $i++)
  {
  $code_lines[$i] = chop($code_lines[$i]);
  if (preg_match('#<!-- BEGIN (.*?) -->#', $code_lines[$i], $m))
  {
    $n[0] = $m[0];
    $n[1] = $m[1];
    // Added: dougk_ff7-Keeps templates from bombing if begin is on the same line as end.. I think. :)
    if (preg_match('#<!-- END (.*?) -->#', $code_lines[$i], $n))
    {
    $block_nesting_level++;
    $block_names[$block_nesting_level] = $m[1];
    if ($block_nesting_level < 2)
    {
      // Block is not nested.
      $code_lines[$i] = '$_' . $a[1] . '_count = (isset($this->_tpldata[\'' . $n[1] . '\'])) ?  sizeof($this->_tpldata[\'' . $n[1] . '\']) : 0;';
      $code_lines[$i] .= 'for ($_' . $n[1] . '_i = 0; $_' . $n[1] . '_i < $_' . $n[1] . '_count; $_' . $n[1] . '_i++)';
      $code_lines[$i] .= '{';
    }
    else
    {
      // This block is nested.
      // Generate a namespace string for this block.
      $namespace = substr(implode('.', $block_names), 0, -1);
      // strip leading period from root level..
      $namespace = substr($namespace, 2);
      // Get a reference to the data array for this block that depends on the
      // current indices of all parent blocks.
      $varref = $this->generate_block_data_ref($namespace, false);
      // Create the for loop code to iterate over this block.
      $code_lines[$i] = '$_' . $a[1] . '_count = (isset(' . $varref . ')) ? sizeof(' . $varref . ') : 0;';
      $code_lines[$i] .= 'for ($_' . $n[1] . '_i = 0; $_' . $n[1] . '_i < $_' . $n[1] . '_count; $_' . $n[1] . '_i++)';
      $code_lines[$i] .= '{';
    }
    // We have the end of a block.
    unset($block_names[$block_nesting_level]);
    $block_nesting_level--;
    $code_lines[$i] .= '} // END ' . $n[1];
    $m[0] = $n[0];
    $m[1] = $n[1];
    }
    else
    {
    // We have the start of a block.
    $block_nesting_level++;
    $block_names[$block_nesting_level] = $m[1];
    if ($block_nesting_level < 2)
    {
      // Block is not nested.
      $code_lines[$i] = '$_' . $m[1] . '_count = (isset($this->_tpldata[\'' . $m[1] . '\'])) ? sizeof($this->_tpldata[\'' . $m[1] . '\']) : 0;';
      $code_lines[$i] .= 'for ($_' . $m[1] . '_i = 0; $_' . $m[1] . '_i < $_' . $m[1] . '_count; $_' . $m[1] . '_i++)';
      $code_lines[$i] .= '{';
    }
    else
    {
      // This block is nested.
      // Generate a namespace string for this block.
      $namespace = implode('.', $block_names);
      // strip leading period from root level..
      $namespace = substr($namespace, 2);
      // Get a reference to the data array for this block that depends on the
      // current indices of all parent blocks.
      $varref = $this->generate_block_data_ref($namespace, false);
      // Create the for loop code to iterate over this block.
      $code_lines[$i] = '$_' . $m[1] . '_count = (isset(' . $varref . ')) ? sizeof(' . $varref . ') : 0;';
      $code_lines[$i] .= 'for ($_' . $m[1] . '_i = 0; $_' . $m[1] . '_i < $_' . $m[1] . '_count; $_' . $m[1] . '_i++)';
      $code_lines[$i] .= '{';
    }
    }
  }
  else if (preg_match('#<!-- END (.*?) -->#', $code_lines[$i], $m))
  {
    // We have the end of a block.
    unset($block_names[$block_nesting_level]);
    $block_nesting_level--;
    $code_lines[$i] = '} // END ' . $m[1];
  }
  else
  {
    // We have an ordinary line of code.
    if (!$do_not_echo)
    {
    $code_lines[$i] = "echo '" . $code_lines[$i] . "\n';\n";
    }
    else
    {
    $code_lines[$i] = '$' . $retvar . ".= '" . $code_lines[$i] . "\n';\n";
    }
  }
  }
  // Bring it back into a single string of lines of code.
  $code = implode("\n", $code_lines);
  return $code;
 }

 /**
  * Generates a reference to the given variable inside the given (possibly nested)
  * block namespace. This is a string of the form:
  * ' . $this->_tpldata['parent'][$_parent_i]['$child1'][$_child1_i]['$child2'][$_child2_i]...['varname'] . '
  * It's ready to be inserted into an "echo" line in one of the templates.
  * NOTE: expects a trailing "." on the namespace.
  */
 function generate_block_varref($namespace, $varname, $concat)
 {
  // Strip the trailing period.
  $namespace = substr($namespace, 0, strlen($namespace) - 1);
  // Get a reference to the data block for this namespace.
  $varref = $this->generate_block_data_ref($namespace, true);
  // Prepend the necessary code to stick this in an echo line.
  // Append the variable reference.
  $varref .= "['$varname']";
  $varref = "' $concat ((isset($varref)) ? $varref : '') $concat '";
  return $varref;
 }

 /**
  * Generates a reference to the array of data values for the given
  * (possibly nested) block namespace. This is a string of the form:
  * $this->_tpldata['parent'][$_parent_i]['$child1'][$_child1_i]['$child2'][$_child2_i]...['$childN']
  *
  * If $include_last_iterator is true, then [$_childN_i] will be appe
الرجوع الى أعلى الصفحة اذهب الى الأسفل
زائر
زائر




خدعة بصرية ؟ Empty
مُساهمةموضوع: رد: خدعة بصرية ؟   خدعة بصرية ؟ Emptyالخميس فبراير 18, 2010 6:15 am

شكرا للمرور
الرجوع الى أعلى الصفحة اذهب الى الأسفل
نور العيون
عضو جديد
عضو جديد
نور العيون


عدد مشاركات العضو : 69
العمر : 24
العمل/الترفيه : الرسم
المزاج : حماس في المنتدى
مزاجكـ : خدعة بصرية ؟ Pi-Ca-33
عارضه الطاقه :
خدعة بصرية ؟ Left_bar_bleue0 / 1000 / 100خدعة بصرية ؟ Right_bar_bleue

تاريخ التسجيل : 29/06/2011

خدعة بصرية ؟ Empty
مُساهمةموضوع: رد: خدعة بصرية ؟   خدعة بصرية ؟ Emptyالأربعاء يوليو 06, 2011 5:28 am

والله ما فهمت شئ ايش هاذا
الرجوع الى أعلى الصفحة اذهب الى الأسفل
 
خدعة بصرية ؟
الرجوع الى أعلى الصفحة 
صفحة 1 من اصل 1

صلاحيات هذا المنتدى:لاتستطيع الرد على المواضيع في هذا المنتدى
منتدى أبطال اليوكو :: أقسام الكمبيوتر وبرامجه :: منتدى البرامج-
انتقل الى: