صفحة 1 من 1

??? ?? ??? ???? ???? ??? ???? ?????

مرسل: الثلاثاء إبريل 12, 2011 11:25 pm
بواسطة كارم سامي
?????? ????? ?
???? ??? ?? ??? ???? ???? ??? ???? ????? ??? ?? ??????? ???? ???? ??????? ??? ???? .. ??????

??? ?? ??? ???? ???? ??? ???? ?????

مرسل: الأربعاء إبريل 13, 2011 4:08 pm
بواسطة Dawn birth
?? ???? ??????? ?????? ????? ??? ???? ?????? ???? ???? ????? ??? ??? ?? ?????? ???? ??????? ?????? ??? ????? ????? ?? ???? php ?????? ???????

??? ?? ??? ???? ???? ??? ???? ?????

مرسل: الأربعاء إبريل 13, 2011 6:14 pm
بواسطة Dawn birth
???? ??? ?????? ???? ?? ???? :
???? ???? ??? ????? ???? ?? ???? ????? ???? "sform.php" ?? ???? ?????? ??????? - ????? ??????? utf-8 ??? ???? ?? ???? ?? ????? ??????"

كود: تحديد الكل

<?php 
define('IN_PHPBB', true);
$phpbb_root_path = (defined('PHPBB_ROOT_PATH')) ? PHPBB_ROOT_PATH : './';
$phpEx = substr(strrchr(__FILE__, '.'), 1);
include($phpbb_root_path . 'common.' . $phpEx);
// Start session management
$user->session_begin();
$auth->acl($user->data);
$user->setup();
page_header('??????? ?????');
 $template->set_filenames(array(
'body' => 'sform_body.html',
));

///POST DATA:
$user_url = $_POST['fuser_www'];
$user_msg = $_POST['fuser_msg'];
$template-> assign_vars(array('SFORM_GET' => $_GET['get']));
///////outputs:
$separator = "\n----------------------------------------------------\n";
$url_output = "???? ?????: [url]".$user_url."[/url]";
$msg_output = "??????: ".$user_msg;
$final_output = "[quote]".$url_output.$separator.$msg_output."[/quote]";

$template-> assign_vars(array('SFORM_FORM' =>'<form action="?get=code" method="post">
<table class="tablebg" cellpadding="4" cellspacing="1" width="100%">
<tr>
<td class="row1">???? ???? ??????</td>
<td class="row2"><input type="text" name="fuser_www" style="width:500px; padding:10px 3px" /></td>
</tr>
<tr>
<td class="row1">??? ??????</td>
<td class="row2"><textarea style="width:600px; height:400px" name="fuser_msg"></textarea></td>
</tr>
<tr><td class="cat" colspan="2"><input type="submit" value="???? ??? ?????" /></tr>
</table>
</form>',
'SFORM_GENERATED' => "<table class='tablebg' cellpadding='4' cellspacing='1' width='100%'>
<tr><td class='cat'>???? ??? ????? ???? ?? ???????</textarea></td></tr>
<tr><td class='row1'><textarea style='width:500px' rows='10' cols='100'>$final_output</textarea></td></tr>
</table>
"
));

make_jumpbox(append_sid("{$phpbb_root_path}viewforum.$phpEx"));
page_footer();
?>
????? ???? ??? ????? ???? ?? ???? ????? ???? "sform_body.html" ?? ???? templates ????? ????????? ???? ???????.

كود: تحديد الكل

    <!-- INCLUDE overall_header.html -->
    <h2>?????? ????? </h2>
	<!-- IF SFORM_GET == 'code' -->
	{SFORM_GENERATED}
	   <!-- ELSE -->
	   {SFORM_FORM}
	   <!-- ENDIF -->
    <!-- INCLUDE jumpbox.html -->
    <!-- INCLUDE overall_footer.html --> 
??? ???? ????? ????? ??????? ???? ?????? ?????? ???? ??????

??? ?? ??? ???? ???? ??? ???? ?????

مرسل: الأربعاء إبريل 13, 2011 10:53 pm
بواسطة كارم سامي
????? ?? ?? Dawn birth ?????? ??? ???? ????? ?????? ??? ????? ???? ???? ??????? .. ????? ????????