Upload
others
View
3
Download
0
Embed Size (px)
Citation preview
�������ManUtdBoss
����persianscript.ir �
��
������������ ��������� ������������ php� �
� �������
������������������������������������� � ��� ���!"���#����!$�%&����'��(�� � PHP �����(�#)*���!�+� ��
���������),�'���!��
��� ���!"�����-./�%��0�1��2&�3�:��
� ���������
�)��'$45�����6��
��#���"70�'$45���
8�����������'$45���
9���&�! ����
* ��:; ��9�).������2�"*�.��
<�=����:��
��>/��<#0 XAMPP - ��80����
��>/��<#0 notepad++ - ��80����
?�$���>/��<#0 Dreamweaver��
��@0�����#���*�%�����A������� :��
��,�2���� CSS HTML 9�).��B���2��
��,�2�C���! ����� php �!��B���%��
��
���������&���'�1)���������%����. � �'D1��E�F�2����1������#��'8B#�'��'8B#�������#������8G�%���!�&�#���H�%���A���I����
',���J��10�'8�K�+����L���� ���������E ��'8B#���#��(�� ���� ���#���8G��J��0�'M�0#����B�'�1)�M�"2���M����'DM���L
9 2�#!N���N/� �A����'D. ��
��
���������� config.php ������� admin
�H PHP:��<?php
$hostname = 'localhost';
$dbuser = 'root';
$dbpass = 'password';
$dbname = 'cms';
$persianscript = mysql_connect ($hostname, $dbuser, $dbpass);
mysql_select_db ($dbname, $persianscript);
/*** S I T E S E T T I N G ***/
$adminuser = "admin";
$adminpass = "admin";
$title = ' ����� ���� ��� ';
$email = '[email protected]';
�������ManUtdBoss
����persianscript.ir O
$desc = ' �� ���� ���� ';
?>
�����P�/�E ��Q��I� config.php ����� ��&�)"���!���C��7D!
��! �����(��4! ������.�� mysql_connect ��D��I�!�+���!���'�...
%�*�#�R!��� adminuser adminpass ���H���� � ����#���'��� � �C��7D���0�!�
%�*�#�R!��� title,email,desc ��� �&���K�#��0�2��K-F��S�I�)��T%�#� ��I�)���'��6�)��%�*�<#/�E� US�C�)8H
�"*���� �C�$�V��� �%��8H�L%�#���N��� (#����1���!"� � �W9������20����#/. ��
��
�������������� ��
W��L��#���'��� � �@7���!�� �X�# ���#��=�B
I��/ index.php ',��������G� admin ���1������ ��L�H����������#10�������-��'Y������
�*��D ����(��4! ���������#���'��� � �@7����� �%�#�T'"8G�U ��2 #! � ���1��������#���%�#��L���!�����������
�8�/� ���������"��<#/��� text ')H���� :
�H HTML: <form action="" method="POST">
����������:<input type="text" name="username" size="��"> <br/>
�������:<input type="password" name="password" size="��"> <br/>
<br/>
<input type="submit" value=" ���� " name="submit"> </form>
<#�Z��#���H���� ����K�>�� �%#���H�<�0�<#/��������L')H��&������ submit �'D��E� ���'$45���)*�'��#���[�(��� �
��& �����&�3E action <#/ ����2N��#��#�
���K�>�� �%#���H�<�0�2 �#��@7��'���� #��=�B�L��#������\ #�� ���#���'��]/��� �
�H���� php ����>��� � �<#/�%=������ �:
�H PHP: <?php
session_start();
if ( isset($_POST['username']) && isset($_POST['username']) )
{
include "config.php";
if ( ($_POST['username'] == $adminuser) && ($_POST['username'] == $adminpass) )
{
$_SESSION['user'] = $_POST['username'];
header ("Location: home.php");
}
}
?>
��E ��Q���� php ���1��^ #,� �.
�=�< ��Q�����'"8G�'T�D �U�C��! �� �T�, ��U���1�
'8� �'����K�>�� �%#���H�<�0�'H�2���5������Z����<� �Q���� Post ����(�,�E� ���&��#��<#/����L� ��#���C���! �
�H��#G�
��� ��_�40�H�I��/��������Q���� include ���1��20����#/.
'Y��'Z��'H��"*�'Z���2F#,���! �����@,�Q����(�,�E� ������[� username �� �����G�����[ adminuser
�������ManUtdBoss
����persianscript.ir `
(_�40�H�I��/�U�#H�%#��#��L����a)*� T�� &&) (�,�E� ������[ password �����G�����[��� adminpass (I��/
_�40�H�U��#H�%#��#��L(�,�E� ������[��� �& � username �D �I����>�#�� � user
�D ���� user ��H�2!� ����"*�<�=�',������ �I����#�...
����� ���b#,� ������')*�2!� �'Z���.��Q�����L2�.�:
�L ',���(�#H���� � ����K�>�� �%#���H�<�0�#���H
OL ����#��#���"*�_�40�H�I��/����'H�%���[������K�>�� �%#���H�<�0
'$45�'�� #���� �& � home.php
'$45 home.php ��'$45�������,���@[0'�1��%���� ����#���I���E#!�H�285
I��/�C���!$ index.php �����,:
�H PHP: <?php
session_start();
if ( isset($_POST['username']) && isset($_POST['username']) )
{
include "config.php";
if ( ($_POST['username'] == $adminuser) && ($_POST['username'] == $adminpass) )
{
$_SESSION['user'] = $_POST['username'];
header ("Location: home.php");
}
}
?>
<html>
<head>
<title> ���� � ��� </title>
</head>
<body>
<form action="" method="POST">
��� ������ :<input type="text" name="username" size="��"> <br/>
�� ���� :<input type="password" name="password" size="��"> <br/>
<br/>
<input type="submit" value="����" name="submit"> </form>
</body>
</html>
����&� ��28���LLL��#���I������#��%�.��'"8G�c'0�LK-F��&�#H���� � �+���!���������%�.��IB�#� C�
'!10 �N��������),���� �%�*�I��/�2�)��'H����H�'G�� charset % ��&�, UTFde without BOM �',��T�<#0���
��>/� notepad++ ���H�2H ����0�!�
�������!"#����$#�%%���� home.php ����������&� admin
I��/��!4Y�'H���F�&�)* home.php ����#���I���E#!�H�������,���@[0'�1��%����
�������ManUtdBoss
����persianscript.ir f
',���'!,���2 #! ��#��������Q[/�'$45�����'����0 ���'H���F�&�)*�L2�.� ���� � ����K�>�� �%#���H�<�0�'H�2"H
'���� �������������'0�!��(�#H���!,�gY� ��@�0� ����#H�������'H�%��'"8G�����D �&�)*����(��4! �����c'0�Z3�=�B
user��
I��/�%��!����� home ��"����:
�H PHP: <?php
session_start();
if ( isset($_SESSION['user']) ) {
if ( (isset($_GET['logout'])) && ($_GET['logout'] == "true") )
{
unset ($_SESSION['user']);
header ("Location: index.php");
}
?>
!� ����� ���� "# ��� �$%�� �� &�'� "�
<?php } else { header ("location: index.php"); } ?>
C�$�V��:
E ��Q������ php ���1��^ #,� �
���D �< ��Q���� start ���1�.
����D �'Y����Z��<� �Q����T��!/#Y�� � ��)"�����'H�U�� user �,�����G �L� ��'K�)��#���<�)���� �& �
(���@��)0.
��!4Y�#���Q�����L������#�h���� � �'$45�'���#Y#��C� (index.php)
��%�#��#���H�'Y����Z��<��N3�Q���� logout ���a)*� ���! #/� � logout ���#��#� true �D ��� �& ����� user �
unset �H
C��5�����'��'D�: http://site.ir/admin/home.php?logout=true
=�B unset c'�1����1�3� �c'�3��'0>��� ��� �����"�� ������#���H�2!� � ��'���D ��� user 'D��������L���
user �),�%�#��2!� set '��',���(�, ��0>��# ���#���'Z���C�$45�'��(��2�(��G���),�LLL 2!� � unset ���1�.
#�R!�'Z�� user 'D����#������ �'0�!��'H��"�0�@8����%>�3
��!,�0�'H��*�2!)"��& �"(���&�D0� ������������(�,���� �#���H�'Y�"2!� � ',���(�,���� �#���H�'H�'D��(����&�D0�LLL
'$45�'��(�#Z�#��C�������#�h��� index ��#���'��� � �&�)*���"
=�BI��/������ home.php �����:
�H PHP: <?php
session_start();
if ( isset($_SESSION['user']) ) {
if ( (isset($_GET['logout'])) && ($_GET['logout'] == "true") )
{
unset ($_SESSION['user']);
header ("Location: index.php");
}
?>
<!DOCTYPE HTML PUBLIC "-
�������ManUtdBoss
����persianscript.ir i
//W(C//DTD XHTML )*� Transitional//EN" "http://www.w(.org/TR/xhtml)/DTD/xhtml)-transitional.dtd">
<html xmlns="http://www.w(.org/)+++/xhtml"> <head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-,">
<title> ���� ���� </title>
<link href="files/style.css" rel="stylesheet" type="text/css">
</head>
<body>
<div id="main">
<img src="files/header.jpg" border="�"> <div class="navbar">
<ul>
<li><a href="home.php">����#��</a></li> <li><a href="../index.php" target="_blank"> -��.� ���� </a></li>
</ul>
</div>
</div>
<div id="sidebar">
<ul>
<li><a href="home.php">����#��</a></li> <li><a href="addnews.php"> /���� ��0 �1 </a></li>
<li><a href="addpage.php"> ��$�� 23 �1 </a></li>
<li><a href="addlink.php"> ���/� 4%�5 �1 </a></li>
<li><a href="news.php"> ���� ���0� </a></li>
<li><a href="pages.php"> ���� �� 23 </a></li>
<li><a href="links.php"> ���� 4%�5 �6 </a></li>
<li><a href="homepage.php"> ���� 23 ��7� </a></li>
<li><a href="?logout=true"><font color="red"><b>8��0!</b></font></a></li>
</ul>
</div>
<div class="content">
<div class="top-text">����#��</div> � /��%� 9%: ���� ;�0 �<. �.# ������ =� ��% �.� ���� � ����
-7� ��6 ��� �>� ?��=���
</div>
<div class="clear"></div>
</div>
</body></html>
<?php } else { header ("location: index.php"); } ?>
��#���I���E#!�H��)"��'8B#����������j��!,�0� ����#������\ #�����a)*� �C�$45�'��#���2 #! �
� ��������<��0��&=�����'H� ��2��*��H���H��/�������0�!����� �W9���(�#)*�'��k���C��5�'�. ��
��
��'���()��*��� ��
��!��������'D��(#��l�+���!������������H�E� ��� �����������7��'1����%�#� �+���!�� table ����"�� �������L
��� �(�$0��������%�����C�$�V�� <��)0�+���!���J(���0�25���>�3�&�3�LQ�$� phpmyqdmin �2 ��/
�"*...
����"�� �������I�������7����W��L<�0����-m�+���!��������!�� cms ����"�.
+���!���I��� cms ���� table <�0��� news ���� �2�L��� news �"*������%�*�(���� �C��7D�I�,
�������ManUtdBoss
����persianscript.ir n
I����������� (table) c������2��*��8�/�'3
�8�/ id %��K�^�0��� (int) 'D��(������K�W��#��'����H����C��5�'�� ��"* (AUTO_INCREMENT �"*�U
���� id ����7��+���!������ ����1����5� ��#��#* 6� ��#�� ��#��'H id (���&�D0�& ��L����&�3 id ��!1��C��5�'�
��"*T%��#1� �"�0)
�8�/ title �'D��(#��l�@8����#��#*�&���K�(��#��'H�L^�0���2�!� (text)
�8�/ content �',���@8����#��#*�'5-��(��#��'H�L2�!�^�0��� (text)
�8�/ fullcontent �',���@8����#��I�H��!���#��'H�L^�0��� 2�! (text)
�8�/ date 'D��(#��l�@8����#��E� ���o�����(��#��'H�L^�0��� VARCHAR (�(���0�Op)
�!4Y�'H���F�&�)*� id ���8H�"*��8�/�#*
I�� news �����,��:
�H: CREATE TABLE `news` (
`id` INT NOT NULL AUTO_INCREMENT ,
`title` TEXT NOT NULL ,
`content` TEXT NOT NULL ,
`fullcontent` TEXT NOT NULL ,
`date` VARCHAR( �� ) NOT NULL , PRIMARY KEY ( `id` )
) TYPE = MYISAM;
������0�!�]�#F import I��� phpmyadmin &�!"���!���I������>�#���
��
�'��(������+�,-./����'��0�����()�
�,�gY�W ���#ZD��#� ���������#��@��#� � �E� ���@7��%�#��=�).�L#ZD��#� �����*�� elrte ���1��(��4! �.
I��/�@7��%�*�H addnews.php �"*�#���q#,�'�.
�H PHP: <?php
session_start();
if ( isset($_SESSION['user']) ) {
if ( (isset($_GET['logout'])) && ($_GET['logout'] == "true") )
{
unset ($_SESSION['user']);
header ("Location: index.php");
}
?>
<!DOCTYPE HTML PUBLIC "-
//W(C//DTD XHTML )*� Transitional//EN" "http://www.w(.org/TR/xhtml)/DTD/xhtml)-transitional.dtd">
<html xmlns="http://www.w(.org/)+++/xhtml"> <head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-,">
<title> ���� ���� - /���� ��0 �1 </title>
<link href="files/style.css" rel="stylesheet" type="text/css">
<!-- jQuery and jQuery UI -->
<script src="elrte-)*�/js/jquery-)*@*@.min.js" type="text/javascript" charset="utf-,"></script> <script src="elrte-)*�/js/jquery-ui-)*,*A.custom.min.js" type="text/javascript" charset="utf-,"></script> <link rel="stylesheet" href="elrte-)*�/css/smoothness/jquery-ui-
�������ManUtdBoss
����persianscript.ir P
)*,*A.custom.css" type="text/css" media="screen" charset="utf-,">
<!-- elRTE -->
<script src="elrte-)*�/js/elrte.min.js" type="text/javascript" charset="utf-,"></script> <link rel="stylesheet" href="elrte-
)*�/css/elrte.min.css" type="text/css" media="screen" charset="utf-,">
<!-- elRTE translation messages -->
<script src="elrte-)*�/js/i),n/elrte.fa.js" type="text/javascript" charset="utf-,"></script>
<script type="text/javascript" charset="utf-,"> $().ready(function() {
var opts = {
cssClass : 'el-rte',
lang : 'fa',
height : (��, toolbar : 'normal',
cssfiles : ['elrte-)*�/css/elrte-inner.css'] }
$('#editor').elrte(opts);
})
$().ready(function() {
var opts = {
cssClass : 'el-rte',
lang : 'fa',
height : (��, toolbar : 'normal',
cssfiles : ['elrte-)*�/css/elrte-inner.css'] }
$('#more').elrte(opts);
})
</script>
</head>
<body>
<?php
if ( isset($_POST['go']) && ($_POST['go'] == "add") )
{
include "config.php";
$add = mysql_query ("INSERT INTO `news` VALUES ('', '".$_POST['newstitle']."', '"
.$_POST['newscontent']."', '".$_POST['newsfullcontent']."', '".mktime()."')");
if ( $add )
{
$status = '<div class="ok"> ��0 �1 �� ��BC� ��D # .</div>';
}
else { $status = '<div class="error">
��2��� EFG' �� ��D ��0 �1 ��1� ���� .</div>'; }
}
elseif ( isset($_POST['go']) && ($_POST['go'] == "edit") )
{
include "config.php";
$edit = mysql_query ("UPDATE `news` SET `title` = '".$_POST['newstitle']."', `con
tent` = '".$_POST['newscontent']."', `fullcontent` = '".$_POST['newsfullcontent']."'
WHERE `id` = '".$_POST['id']."' LIMIT )"); if ( $edit )
{
$status = '<div class="ok"> �����H� �� ��BC� /�.�� �# .</div>';
}
else { $status = '<div class="error">
��2��� EFG' �� ��D �����H� ��1� ���� </div>'; }
}
�������ManUtdBoss
����persianscript.ir e
if ( isset($_GET['editnews']) && ($_GET['editnews'] !== "") )
{
include "config.php";
$Query = mysql_query("SELECT * FROM `news` WHERE `id` = '".intval($_GET['editnews
'])."' LIMIT )"); $row_news = mysql_fetch_array($Query);
}
?>
<div id="main">
<img src="files/header.jpg" border="�"> <div class="navbar">
<ul>
<li><a href="home.php">����#��</a></li> <li><a href="../index.php" target="_blank"> -��.� ���� </a></li>
</ul>
</div>
</div>
<div id="sidebar">
<ul>
<li><a href="home.php">����#��</a></li> <li><a href="addnews.php"> /���� ��0 �1 </a></li>
<li><a href="addpage.php"> ��$�� 23 �1 </a></li>
<li><a href="addlink.php"> /���� 4%�5 �1 </a></li>
<li><a href="news.php"> ���� ���0� </a></li>
<li><a href="pages.php"> ���� �� 23 </a></li>
<li><a href="links.php"> ���� 4%�5 �6 </a></li>
<li><a href="homepage.php"> ���� 23 ��7� </a></li>
<li><a href="?logout=true"><font color="red">8��0!</b></font></a></li>
</ul>
</div>
<div class="content">
<div class="top-text"> /���� ��0 �1 </div>
<?php echo $status; ?>
<div class="forms">
<form method="post" action="">
<input type="hidden" name="go" value="<?php echo (isset($row_news)) ? "edit" : "a
dd"; ?>">
<?php echo (isset($row_news)) ? '<input type="hidden" name="id" value="'.$row_new
s['id'].'">' : ''; ?>
<label for="username"> &��%� ��0 : </label>
<input name="newstitle" type="text" value="<?php echo $row_news['title']; ?>" cla
ss="form" />
<br /><br /><br />
<label for="content"> 3I0 ��0 : </label>
<textarea name="newscontent" rows=")�" cols=",�" id="editor"><?php echo $row_news['content']; ?></textarea>
<br /><br /><br /><br />
<label for="fullcontent"> ��� JFK : </label>
<textarea name="newsfullcontent" rows=")�" cols=",�" id="more"><?php echo $row_news['fullcontent']; ?></textarea>
<br /><br /><br /><br />
<input type="submit" value=" /���� ��0 " name="submit">
</form>
</div>
�������ManUtdBoss
����persianscript.ir r
</div>
<div class="clear"></div>
</div>
</body></html>
<?php } else { header ("location: index.php"); } ?>
��)"��#*�&����:�V���'�����1��^ #,�=�BI��/��� Addnews.php
#���� � �2 �#�:
�H PHP: <?php
session_start();
if ( isset($_SESSION['user']) ) {
if ( (isset($_GET['logout'])) && ($_GET['logout'] == "true") )
{
unset ($_SESSION['user']);
header ("Location: index.php");
}
?>
'$45�Im�����!����� Home.php '0����(�,���� �#���H�'H����1��2 �#�
-------------------------
��!���� �W9���'��b��#�%�*��H:
�H HTML:
<!DOCTYPE HTML PUBLIC "-//W(C//DTD XHTML )*� Transitional//EN" "http://www.w(.org/TR/xhtml)/DTD/xhtml)-transitional.dtd"> <html xmlns="http://www.w(.org/)+++/xhtml"> <head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-,"> <title> ����������-�1���0�/����� </title>
<link href="files/style.css" rel="stylesheet" type="text/css">
<!-- jQuery and jQuery UI -->
<script src="elrte-)*�/js/jquery-)*@*@.min.js" type="text/javascript" charset="utf-,"></script> <script src="elrte-)*�/js/jquery-ui-)*,*A.custom.min.js" type="text/javascript" charset="utf-,"></script> <link rel="stylesheet" href="elrte-)*�/css/smoothness/jquery-ui-).,*A.custom.css" type="text/css" media="screen" charset="utf-,">
<!-- elRTE -->
<script src="elrte-)*�/js/elrte.min.js" type="text/javascript" charset="utf-,"></script> <link rel="stylesheet" href="elrte-)*�/css/elrte.min.css" type="text/css" media="screen" charset="utf-,">
<!-- elRTE translation messages -->
<script src="elrte-)*�/js/i),n/elrte.fa.js" type="text/javascript" charset="utf-,"></script>
<script type="text/javascript" charset="utf-,"> $().ready(function() {
var opts = {
cssClass : 'el-rte',
lang : 'fa',
height : (��, toolbar : 'normal',
cssfiles : ['elrte-)*�/css/elrte-inner.css'] }
$('#editor').elrte(opts);
�������ManUtdBoss
����persianscript.ir �p
})
$().ready(function() {
var opts = {
cssClass : 'el-rte',
lang : 'fa',
height : (��, toolbar : 'normal',
cssfiles : ['elrte-)*�/css/elrte-inner.css'] }
$('#more').elrte(opts);
})
</script>
</head>
<body>
%�*��H� �W9���%�*��H�I�,��*��H���� html ,java �"*���!����'��b��#�LI����(��#��'H textarea 'D����9��*
--------------��
��
��
%�*��H php #��@��#� � �E� ���I�,:
�H PHP: if ( isset($_POST['go']) && ($_POST['go'] == "add") )
{
include "config.php";
$add = mysql_query ("INSERT INTO `news` VALUES ('', '".$_POST['newstitle']."', '"
.$_POST['newscontent']."', '".$_POST['newsfullcontent']."', '".mktime()."')");
if ( $add )
{
$status = '<div class="ok"> ��0 �� ��BC� /���� # </div>';
}
else { $status = '<div class="error">
EFG' �� /���� ��0 ��1� ����. "����� &� �� �%� </div>'; }
}
#��E� ���<#/����#Y��'H����1��2 �#����!������� go ��,�E� �� �������a)* go ���#��#� add ����[��� �& �����
&���K�I�,�'H�<#/�I����%�* #� newstitle #���!� newscontent W8;�'�������a)*�
newsfullcontent I����>�#��W��#��'���"* table &�)*�'H�#� news ',��
#�R!�'8� �'����.� add I����(�,�'!7����*����[�'H���)N4����0�!� '0����+���!���L�'H���#������>��b#,���������
<�R�������(�,�E� ���#��'Y� " � �����[/�����#���,�E"#�R!����>�#�� �� status
����[�C�������#�h���"�������G �#��E� ������281D�L���H�&�$!��(��� �"#�R!�I����>�#�� �� status
#�R! status 'D��s�3�#��#*�����I1D����>�����[/��E� �������.��(��#�...
--------------
#��@��#� :
�H PHP: elseif ( isset($_POST['go']) && ($_POST['go'] == "edit") )
{
include "config.php";
$edit = mysql_query ("UPDATE `news` SET `title` = '".$_POST['newstitle']."', `con
�������ManUtdBoss
����persianscript.ir ��
tent` = '".$_POST['newscontent']."', `fullcontent` = '".$_POST['newsfullcontent']."'
WHERE `id` = '".$_POST['id']."' LIMIT )"); if ( $edit )
{
$status = '<div class="ok"> ��0 �� ��BC� -����� # </div>';
}
else { $status = '<div class="error">
EFG' �� -����� ��D ��0 ��1� ����."����� &� �� �%� </div>'; }
}
'D���#G��#��E� ���b#,�����.���)"������J%�G�'��#���H�'Y��2�.� add ���[�<#/����',���#��E� ���&�)*�'H edit
��H��#G�� ��#���%�*��! ��� . 2�.���#��&���K�%�*����[�S6� ��#�� ��W8;�'���� �#���! id #��& � ������
�HT�H���>Z��G)
#�R!�]�#F�������������� edit c'0�����,�������#����[/�����'H���)N4����0�!�
E �G����+���!������#��'H�2���5������Z� news ��,������#�R! status �����"*�#��#�"�@��#� ���[/�����#�
�,"�C�������#�h����"@��#� ����281D �������G �#���tL���H�&�$!��(��� �"��� � status 'D�
�!4Y�'H���F�&�)* status 'D��(����@��)0�#���%�#����.���
��
c���H�20����#/�+���!������@��#� �%�#�� ��#��#*���;3�=�B
;���%��:
�H PHP: if ( isset($_GET['editnews']) && ($_GET['editnews'] !== "") )
{
include "config.php";
$Query = mysql_query("SELECT * FROM `news` WHERE `id` = '".intval($_GET['editnews
'])."' LIMIT )"); $row_news = mysql_fetch_array($Query);
}
���'8� ���#���H�'H�2���5������Z������� get ���[ editnews %�#�� � ���a)*� ���! #/�� editnews �(�,�E� ��
���[�& ���� �& ����0�29�� editnews ��K�'H (id) (���@��)0�I���I������� ���"*�+���!������#�!
c(���@��)0���H�=�B
I��� value ��<#/����[�&�)*���.
c%��;3
%��;���:
�H PHP: <div class="content">
<div class="top-text"> /���� ��0 �1 </div>
<?php echo $status; ?>
<div class="forms">
<form method="post" action="">
<input type="hidden" name="go" value="<?php echo (isset($row_news)) ? "edit" : "a
dd"; ?>">
<?php echo (isset($row_news)) ? '<input type="hidden" name="id" value="'.$row_new
s['id'].'">' : ''; ?>
<label for="username"> &��%� ��0 : </label>
<input name="newstitle" type="text" value="<?php echo $row_news['title']; ?>" cla
ss="form" />
�������ManUtdBoss
����persianscript.ir �O
<br /><br /><br />
<label for="content"> 3I0 ��0 : </label>
<textarea name="newscontent" rows=")�" cols=",�" id="editor"><?php echo $row_news['content']; ?></textarea>
<br /><br /><br /><br />
<label for="fullcontent"> ��� JFK : </label>
<textarea name="newsfullcontent" rows=")�" cols=",�" id="more"><?php echo $row_news['fullcontent']; ?></textarea>
<br /><br /><br /><br />
<input type="submit" value=" /���� ��0 " name="submit">
</form>
</div>
</div>
(�,�@��#� ����(�,�E� ���#����.V �@��)0�%�#����!������� status �29� ���#����.V ����#���������1��s�3� �
',���(�Y�
247��8�/� �����.� "hidden" C���! ��& ��%�#��21��'H������ php u7D �(�,�E� ���%�*����[��������1�
�#��@��#� �%�#����G�#��E� �������"*
'Z����8�/ id �'�1��u7D� ��#�T���H�@��#� � ��#���������7����'H�2���5���)
�����@���&���#��'�1)�'H�2�=�� :
�.row_news c'�3
(���@��)0�&��#�� ���8�/�#*�v����#�R!�����L#��@��#� �%�#���)"����� (�����#���H�L�#������7��2!� ���2�.�� �
@�8��%�*����[���������H�@��#� ���[����-m���)*�%�#��c'Z��������� � value ��"�����#��&���K
�H PHP: $row_news['title'];
I��/�Q����#����� addnews.php ������� ��#���b#,����*T�#������H�2 �#��������#H���� �E ��'H�%�H�&�)*
'0����(�,���� )
�H PHP: <?php } else { header ("location: index.php"); } ?>
��
������"�9�@��)0�S#��wgB
�����@��)0�(�,��"�9�C��5�'�����#H�E� ���'H� ��%���������7���)"���������J� ��(��79��%�*�#�����a)*�
���H�wgB.
I��/��H news.php ('8B#������H�U�"*�#���q#,�'�.
�H PHP: <?php
session_start();
if ( isset($_SESSION['user']) ) {
if ( (isset($_GET['logout'])) && ($_GET['logout'] == "true") )
{
unset ($_SESSION['user']);
header ("Location: index.php");
}
?>
<!DOCTYPE HTML PUBLIC "-
//W(C//DTD XHTML )*� Transitional//EN" "http://www.w(.org/TR/xhtml)/DTD/xhtml)-transitional.dtd">
�������ManUtdBoss
����persianscript.ir �`
<html xmlns="http://www.w(.org/)+++/xhtml"> <head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-,">
<title> ���� ���� - ���� ���0� </title>
<link href="files/style.css" rel="stylesheet" type="text/css">
</head>
<body>
<?php
include "config.php";
if ( isset($_GET['delete']) && !empty($_GET['delete']) )
{
$del = mysql_query ("DELETE FROM `news` WHERE `id` = '".intval($_GET['delete'])."
' LIMIT )"); if ( $del )
{
$status = '<div class="ok"> ��0 L�7��� "# �� ��BC� =� ���� MNO # </d
iv>';
}
else
{
$status = '<div class="error">
EFG' �� MNO ��0 ��1� ����!"����� &� �� �%� </div>';
}
}
?>
<div id="main">
<img src="files/header.jpg" border="�"> <div class="navbar">
<ul>
<li><a href="home.php">����#��</a></li> <li><a href="../index.php" target="_blank"> -��.� ���� </a></li>
</ul>
</div>
</div>
<div id="sidebar">
<ul>
<li><a href="home.php">����#��</a></li> <li><a href="addnews.php"> /���� ��0 �1 </a></li>
<li><a href="addpage.php"> ��$�� 23 �1 </a></li>
<li><a href="addlink.php"> /���� 4%�5 �1 </a></li>
<li><a href="news.php"> ���� ���0� </a></li>
<li><a href="pages.php"> ���� �� 23 </a></li>
<li><a href="links.php"> ���� 4%�5 �6 </a></li>
<li><a href="homepage.php"> ���� 23 ��7� </a></li>
<li><a href="?logout=true"><font color="red">8��0!</font></a></li>
</ul>
</div>
<div class="content">
<div class="top-text"> ���� ���0� </div>
<php echo $status;?>
<table id="box-table-a">
<thead>
<tr>
<th scope="col"> &��%� ��0 </th>
<th scope="col"> P���� /���� </th>
<th scope="col">-�����</th>
�������ManUtdBoss
����persianscript.ir �f
<th scope="col">MNO</th> </tr>
</thead>
<tfoot>
<tr>
<td colspan="("><em> �� MNO &��� ���0� �Q� �%� </em></td>
<td> </td>
</tr>
</tfoot>
<tbody>
<?php
$Query = mysql_query ("SELECT * FROM `news` ORDER BY `id` DESC");
while ( $row_news = mysql_fetch_array($Query) ) {
?>
<tr>
<td><?php echo $row_news['title']; ?></td>
<td><?php echo date("Y/n/d", $row_news['date']) ?></td>
<td><a href="addnews.php?edit=<?php echo $row_news['id']; ?>"><img src="files/new
s_edit.png" border="�" title=" -����� ��0 " /></a></td>
<td><a onclick="if (confirm(' ��� =� MNO ��0 L�7��� "# RS.K T���6 ')) wi
ndow.location = '?delete=<?php echo $row_news['id']; ?>';" href="#"><img src="files/n
ews_delete.png" border="�" title=" MNO ��0 " /></a></td>
</tr>
<?php } ?>
</tbody>
</table>
</div>
<div class="clear"></div>
</div>
</body></html>
<?php } else { header ("location: index.php"); } ?>
1���2�3:
��������!�����: ��#���%�*�I��/�2�)��Im�S�#���H�'H����1��2 �#���*���������T#���U��(�,���� '0���L�%�*��H�
E�). html css
�H PHP: <?php
session_start();
if ( isset($_SESSION['user']) ) {
if ( (isset($_GET['logout'])) && ($_GET['logout'] == "true") )
{
unset ($_SESSION['user']);
header ("Location: index.php");
}
?>
<!DOCTYPE HTML PUBLIC "-
//W(C//DTD XHTML )*� Transitional//EN" "http://www.w(.org/TR/xhtml)/DTD/xhtml)-transitional.dtd">
<html xmlns="http://www.w(.org/)+++/xhtml"> <head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-,">
<title> ���� ���� - ���� ���0� </title>
<link href="files/style.css" rel="stylesheet" type="text/css">
</head>
<body>
������ ���*��H�����#��wgB�%�#����+x :
�H PHP:
�������ManUtdBoss
����persianscript.ir �i
<?php
include "config.php";
if ( isset($_GET['delete']) && !empty($_GET['delete']) )
{
$del = mysql_query ("DELETE FROM `news` WHERE `id` = '".intval($_GET['delete'])."
' LIMIT )"); if ( $del )
{
$status = '<div class="ok"> ��0 L�7��� "# �� ��BC� =� ���� MNO # </d
iv>';
}
else
{
$status = '<div class="error">
EFG' �� MNO ��0 ��1� ����!"����� ��&� �%� </div>';
}
}
?>
E ��Q� php ���1����h�� �.
���1��20����#/� ��_�40�H�I��/���< ��Q����.
����>��b#,������<� �Q�����L#Y� #�'��#���H�Q ���'Y����Z� delete E� �� ���[����a)*� ��, delete �29��
��Z���� �& ����0��E �G��� news ��%#; �6� ��#��'H���[ delete ��#�Z�T�L-m delete=O) �H�wgB�J�2!�
��Z��@N� delete=O 6� ��#��(#� id #��& ��L'�1��wgB� ��#;
�D0�wgB�#���Z���D0�wgB�'Y�� ��,�wgB�#���Z���,�wgB�#��'Y�����1��2 �#���.��%�*�Q����!
��
��
��
29�).�%�*��H����������� html ������ ��W9��:
�H HTML: <div id="main">
<img src="files/header.jpg" border="�"> <div class="navbar">
<ul>
<li><a href="home.php">����#��</a></li> <li><a href="../index.php" target="_blank">�����-��.�</a></li> </ul>
</div>
</div>
<div id="sidebar">
<ul>
<li><a href="home.php">����#��</a></li> <li><a href="addnews.php">�1���0�/����</a></li> <li><a href="addpage.php">�1� 23���$��</a></li> <li><a href="addlink.php">�1�4%�5�/����</a></li> <li><a href="news.php"> ���0������ </a></li>
<li><a href="pages.php">�� 23�����</a></li> <li><a href="links.php">�6�4%�5�����</a></li> <li><a href="homepage.php">��7�� 23�����</a></li> <li><a href="?logout=true"><font color="red">8��0!</font></a></li> </ul>
</div>
<div class="content">
<div class="top-text">���0������</div> <php echo $status;?>
�������ManUtdBoss
����persianscript.ir �n
���1��������E �G���������������W��L�����@��)0�& ��I���� ��������"�9�'H!
�H PHP:��
<table id="box-table-a">
<thead>
<tr>
<th scope="col"> &��%� ��0 </th>
<th scope="col"> P���� /���� </th>
<th scope="col">-�����</th> <th scope="col">MNO</th> </tr>
</thead>
<tfoot>
<tr>
<td colspan="("><em> �� MNO &��� ���0� �Q� �%� </em></td>
<td> </td>
</tr>
</tfoot>
<tbody>
<?php
$Query = mysql_query ("SELECT * FROM `news` ORDER BY `id` DESC");
while ( $row_news = mysql_fetch_array($Query) ) {
?>
<tr>
<td><?php echo $row_news['title']; ?></td>
<td><?php echo date("Y/n/d", $row_news['date']) ?></td>
<td><a href="addnews.php?edit=<?php echo $row_news['id']; ?>"><img src="files/new
s_edit.png" border="�" title=" -����� ��0 " /></a></td>
<td><a onclick="if (confirm(' ��� =� MNO ��0 L�7��� "# RS.K T���6 ')) wi
ndow.location = '?delete=<?php echo $row_news['id']; ?>';" href="#"><img src="files/n
ews_delete.png" border="�" title=" MNO ��0 " /></a></td>
</tr>
<?php } ?>
</tbody>
</table>
���1��?�7!0�� �������E �G���!�����L'[8B���� while �H��"�9� ���������Z��L6� ��#� id #��#*...
����� row_news ��0 �#Z�#�� ���8�/�#*����[.
'[8B��*�#����� while������ �
��*�#�����T'D�)*�Im�U�#���� � �2 �#��b#,������ �
�H PHP:
</div>
<div class="clear"></div>
</div>
</body></html>
<?php } else { header ("location: index.php"); } ?>
�4� ����5����"6��+����� ��$#�0�����������7�89,�:�0����8����;�����;<�=��9;,�:�����������$#������
��0�����������>�!"6���+�./��,>�!?������ �����'��@����A�!=���B�/�!,7�! 0��&���&���������C<� news
D�) A������/�9,�:���1��$#�0��&��������'����> ��,>�5������;����� ;����1��;$3��;/��;"������73��,E.��F,3!
�'8B#� ������'Y������#����T�������#���'$45� �#��E� ���'$45�U?��� � �#�'�[����,���(��)N/��%��#M1��&���#��IB
�"*�J(�� ����"�� ...��
�������ManUtdBoss
����persianscript.ir �P
1��$#�0��&�����:
�H PHP:
CREATE TABLE `page` (
`id` INT NOT NULL AUTO_INCREMENT ,
`title` TEXT NOT NULL ,
`content` TEXT NOT NULL ,
`date` VARCHAR( �� ) NOT NULL , PRIMARY KEY ( `id` )
) TYPE = MYISAM;
��������������G�'8B#�S���1��^ #,� ��C�$45�E �G�2B�#F�'8B#�2�.�.
I�����j<�0����E �G page ���1�������.
��,���'!,��� ��#���%�*��8�/�E �G��������(��#���:
= id ��#��#*�' ��,T�"*�����8H(
= title �C�$45�&���K
= content �C�$45��!
= date �#��E� ���o������
��
���������������&���$#�0�
'$45�E� ���@7� (addpage.php) I��/�'��'�,��[��� addnews.php �"*�Jy�*� (���0�2� �4��L& ��C �4���N���S
&�#H���� (insert) E �G�& ���C�K-F��&�#H C�$45 (pages) �"*�J��)*
'$45�I�H�6�� Addpage.php �"*�#���q#,�'�...
�H PHP: <?php
session_start();
if ( isset($_SESSION['user']) ) {
if ( (isset($_GET['logout'])) && ($_GET['logout'] == "true") )
{
unset ($_SESSION['user']);
header ("Location: index.php");
}
?>
<!DOCTYPE HTML PUBLIC "-
//W(C//DTD XHTML )*� Transitional//EN" "http://www.w(.org/TR/xhtml)/DTD/xhtml)-transitional.dtd">
<html xmlns="http://www.w(.org/)+++/xhtml"> <head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-,">
<title> ���� ���� - ��$�� 23 �1 </title>
<link href="files/style.css" rel="stylesheet" type="text/css">
<!-- jQuery and jQuery UI -->
<script src="elrte-)*�/js/jquery-)*@*@.min.js" type="text/javascript" charset="utf-,"></script> <script src="elrte-).�/js/jquery-ui-)*,*A.custom.min.js" type="text/javascript" charset="utf-,"></script> <link rel="stylesheet" href="elrte-)*�/css/smoothness/jquery-ui-)*,*A.custom.css" type="text/css" media="screen" charset="utf-,">
<!-- elRTE -->
<script src="elrte-)*�/js/elrte.min.js" type="text/javascript" charset="utf-,"></script>
�������ManUtdBoss
����persianscript.ir �e
<link rel="stylesheet" href="elrte-
)*�/css/elrte.min.css" type="text/css" media="screen" charset="utf-,">
<!-- elRTE translation messages -->
<script src="elrte-)*�/js/i),n/elrte.fa.js" type="text/javascript" charset="utf-,"></script>
<script type="text/javascript" charset="utf-,"> $().ready(function() {
var opts = {
cssClass : 'el-rte',
lang : 'fa',
height : (��, toolbar : 'normal',
cssfiles : ['elrte-)*�/css/elrte-inner.css'] }
$('#editor').elrte(opts);
})
$().ready(function() {
var opts = {
cssClass : 'el-rte',
lang : 'fa',
height : (��, toolbar : 'normal',
cssfiles : ['elrte-)*�/css/elrte-inner.css'] }
$('#more').elrte(opts);
})
</script>
</head>
<body>
<?php
if ( isset($_POST['go']) && ($_POST['go'] == "add") )
{
include "config.php";
$add = mysql_query ("INSERT INTO `page` VALUES ('', '".$_POST['pagetitle']."', '"
.$_POST['pagecontent']."', '".mktime()."')");
if ( $add )
{
$status = '<div class="ok"> 23 �1 �� ��BC� ��D # </div>';
}
else { $status = '<div class="error">
��2��� �� ��$�� 23 EFG' � ��1� "< ���! "����� EU� �%� </div>'; }
}
elseif ( isset($_POST['go']) && ($_POST['go'] == "edit") )
{
include "config.php";
$edit = mysql_query ("UPDATE `page` SET `title` = '".$_POST['pagetitle']."', `con
tent` = '".$_POST['pagecontent']."' WHERE `id` = '".$_POST['id']."' LIMIT )"); if ( $edit )
{
$status = '<div class="ok"> ������H �� ��BC� /�.�� �# .</div>';
}
else { $status = '<div class="error">
��2��� EFG' �� ��D �����H� ��1� ���� </div>'; }
}
if ( isset($_GET['editpage']) && ($_GET['editpage'] !== "") )
{
include "config.php";
$Query = mysql_query("SELECT * FROM `page` WHERE `id` = '".intval($_GET['editpage
'])."' LIMIT )"); $row_page = mysql_fetch_array($Query);
�������ManUtdBoss
����persianscript.ir �r
}
?>
<div id="main">
<img src="files/header.jpg" border="�"> <div class="navbar">
<ul>
<li><a href="home.php">����#��</a></li> <li><a href="../index.php" target="_blank"> -��.� ���� </a></li>
</ul>
</div>
</div>
<div id="sidebar">
<ul>
<li><a href="home.php">����#��</a></li> <li><a href="addnews.php"> /���� ��0 �1 </a></li>
<li><a href="addpage.php"> ��$�� 23 �1 </a></li>
<li><a href="addlink.php"> /���� 4%�5 �1 </a></li>
<li><a href="news.php"> ���� ���0� </a></li>
<li><a href="pages.php"> ���� �� 23 </a></li>
<li><a href="links.php"> ���� 4%�5 �6 </a></li>
<li><a href="homepage.php"> ���� 23 ��7� </a></li>
<li><a href="?logout=true"><font color="red">8��0!</b></font></a></li>
</ul>
</div>
<div class="content">
<div class="top-text"> ��$�� 23 �1 </div>
<?php echo $status; ?>
<div class="forms">
<form method="post" action="">
<input type="hidden" name="go" value="<?php echo (isset($row_page)) ? "edit" : "a
dd"; ?>">
<?php echo (isset($row_page)) ? '<input type="hidden" name="id" value="'.$row_pag
e['id'].'">' : ''; ?>
<label for="username"> &��%� 23 : </label>
<input name="pagetitle" type="text" value="<?php echo $row_page['title']; ?>" cla
ss="form" />
<br /><br /><br />
<label for="content"> R� 23 : </label>
<textarea name="pagecontent" rows=")�" cols=",�" id="editor"><?php echo $row_page['content']; ?></textarea>
<br /><br /><br /><br />
<input type="submit" value=" ��$�� 23 " name="submit">
</form>
</div>
</div>
<div class="clear"></div>
</div>
</body></html>
<?php } else { header ("location: index.php"); } ?>
<��)0�:�V��������J��!/�� ��IB�#�����-��&�3...
#���� � �2 �#��%�*��H:
�������ManUtdBoss
����persianscript.ir Op
�H PHP:
<?php
session_start();
if ( isset($_SESSION['user']) ) {
if ( (isset($_GET['logout'])) && ($_GET['logout'] == "true") )
{
unset ($_SESSION['user']);
header ("Location: index.php");
}
?>
'0����(�,���� �#���'�H�2�2 �#��'H��"*���#���%�*�@7��2�)��%��!������'H�'"8G�'�=...
%�*��H HTML z#�# (header)
�H HTML: <!DOCTYPE HTML PUBLIC "-//W(C//DTD XHTML )*� Transitional//EN" "http://www.w(.org/TR/xhtml)/DTD/xhtml)-transitional.dtd"> <html xmlns="http://www.w(.org/)+++/xhtml"> <head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-,"> <title> ����������-�1� 23���$��� </title>
<link href="files/style.css" rel="stylesheet" type="text/css">
<!-- jQuery and jQuery UI -->
<script src="elrte-)*�/js/jquery-)*@*@.min.js" type="text/javascript" charset="utf-,"></script> <script src="elrte-)*�/js/jquery-ui-)*,*A.custom.min.js" type="text/javascript" charset="utf-,"></script> <link rel="stylesheet" href="elrte-)*�/css/smoothness/jquery-ui-)*,*A.custom.css" type="text/css" media="screen" charset="utf-,">
<!-- elRTE -->
<script src="elrte-)*�/js/elrte.min.js" type="text/javascript" charset="utf-,"></script> <link rel="stylesheet" href="elrte-)*�/css/elrte.min.css" type="text/css" media="screen" charset="utf-,">
<!-- elRTE translation messages -->
<script src="elrte-)*�/js/i),n/elrte.fa.js" type="text/javascript" charset="utf-,"></script>
<script type="text/javascript" charset="utf-,"> $().ready(function() {
var opts = {
cssClass : 'el-rte',
lang : 'fa',
height : (��, toolbar : 'normal',
cssfiles : ['elrte-)*�/css/elrte-inner.css'] }
$('#editor').elrte(opts);
})
$().ready(function() {
var opts = {
cssClass : 'el-rte',
lang : 'fa',
height : (��, toolbar : 'normal',
cssfiles : ['elrte-)*�/css/elrte-inner.css'] }
$('#more').elrte(opts);
�������ManUtdBoss
����persianscript.ir O�
})
</script>
</head>
'H�W9���%�*��H html '!/#D�����!����%�*��H����a)*� ��"* ...
2F#,�C���! �� ��*��H:
�H PHP:
<?php
if ( isset($_POST['go']) && ($_POST['go'] == "add") )
{
include "config.php";
$add = mysql_query ("INSERT INTO `page` VALUES ('', '".$_POST['pagetitle']."', '"
.$_POST['pagecontent']."', '".mktime()."')");
if ( $add )
{
$status = '<div class="ok"> 23 �1 �� ��BC� ��D # </div>';
}
else { $status = '<div class="error">
��2��� �� ��$�� 23 EFG' � ��1� "< ���! "����� EU� �%� </div>'; }
}
elseif ( isset($_POST['go']) && ($_POST['go'] == "edit") )
{
include "config.php";
$edit = mysql_query ("UPDATE `page` SET `title` = '".$_POST['pagetitle']."', `con
tent` = '".$_POST['pagecontent']."' WHERE `id` = '".$_POST['id']."' LIMIT )"); if ( $edit )
{
$status = '<div class="ok"> �����H� �� ��BC� /�.�� �# .</div>';
}
else { $status = '<div class="error">
��2��� EFG' �� ��D �����H� ��1� ���� </div>'; }
}
if ( isset($_GET['editpage']) && ($_GET['editpage'] !== "") )
{
include "config.php";
$Query = mysql_query("SELECT * FROM `page` WHERE `id` = '".intval($_GET['editpage
'])."' LIMIT )"); $row_page = mysql_fetch_array($Query);
}
?>
���,���'!,���%� � �����������������L'8� �'�� ��%� � GET ��H���H�'3���Z���*��H�'�� ���#�Z�...
E ��Q���� php 'D��^ #,
�< ��Q����'H�2���5������Z� go �������[� ��,�E� �� go ���#��#� add ����L ��%� � �#���[ insert TI����>�#��U
�����E �GL
�%�'8)G��,�<��0����[/�����'Y����Z���.�� "�,��t���[/��������G�'$45"I����>�#�� �� status...
������0 ���'H���F�&�)* status �'Z�� �'D��s�3�(��#�'0�����,�������'$45�����'H...
�#���[��D0�<��0����[/�����'H�2���5���"� ��(�����G �'��281D�'$45����������'0�4 �!�J���H�2. �(��� �"� ��
I����>�#� status
��Z��%�.��Q�����L#���H�'H�2���5��� go ����(��� ��J���[�29 go ���#��#� edit ����L�(�,�'!/#Y�#���[�� #�� ��<#/���
�H�20� � (update) �H
�������ManUtdBoss
����persianscript.ir OO
�"*�'$45�@��#� �%�#���)"�����...
I������>�#���*� ����.V status '0����(�,�@��#� �'$45�'H���Z��#���H�'����.��'H...
�'$45�& ��&�#H���5�%�#������>��%��'Z���b#,����#����)"����T(#����H�'��'$45�& ��&�#H�@��#� �%�#�(��
��
��������$#
%�*��H html C�K-F��&�#H�@��#� � ���� �<#/� �W9��
�H PHP:��<div id="main">
<img src="files/header.jpg" border="�"> <div class="navbar">
<ul>
<li><a href="home.php">����#��</a></li> <li><a href="../index.php" target="_blank"> -��.� ���� </a></li>
</ul>
</div>
</div>
<div id="sidebar">
<ul>
<li><a href="home.php">����#��</a></li> <li><a href="addnews.php"> /���� ��0 �1 </a></li>
<li><a href="addpage.php"> ��$�� 23 �1 </a></li>
<li><a href="addlink.php"> /���� 4%�5 �1 </a></li>
<li><a href="news.php"> ���� ���0� </a></li>
<li><a href="pages.php"> ���� �� 23 </a></li>
<li><a href="links.php"> ���� 4%�5 �6 </a></li>
<li><a href="homepage.php"> ���� 23 ��7� </a></li>
<li><a href="?logout=true"><font color="red">8��0!</b></font></a></li>
</ul>
</div>
<div class="content">
<div class="top-text"> ��$�� 23 �1 </div>
<?php echo $status; ?>
<div class="forms">
<form method="post" action="">
<input type="hidden" name="go" value="<?php echo (isset($row_page)) ? "edit" : "a
dd"; ?>">
<?php echo (isset($row_page)) ? '<input type="hidden" name="id" value="'.$row_pag
e['id'].'">' : ''; ?>
<label for="username"> &��%� 23 : </label>
<input name="pagetitle" type="text" value="<?php echo $row_page['title']; ?>" cla
ss="form" />
<br /><br /><br />
<label for="content"> R� 23 : </label>
<textarea name="pagecontent" rows=")�" cols=",�" id="editor"><?php echo $row_page['content']; ?></textarea>
<br /><br /><br /><br />
�������ManUtdBoss
����persianscript.ir O`
<input type="submit" value=" ��$�� 23 " name="submit">
</form>
</div>
</div>
<div class="clear"></div>
</div>
</body></html>
<?php } else { header ("location: index.php"); } ?>
C�K-F��&�#H�@��#� � �&�#H���� �<#/� �&������G �W9���%�*��H�'�������LLL�I�4�#��E� ����)"�����-��'H
(�,�(����:�V��...
�'"8G�'�=�2 �#���*�#���Q����T#���� � �U� � �'$45�'�� #������(�D0���� �#���'Y��'D��<��0� index.php)��
��
���:�1��$#��G���$#�HI6�G����� pages.php
I��/�'���� #��W� pages.php :
(���@��)0� ��C�$45��"�9�I��/����
'�H�wgB� ��#��'0�!��#���H����a)*�L'$45�������'$45�'��'D��(�������9�'H��*�@��#� �%�#�...
I��/�'��'�,��[����'$45���� news.php (������"�9�U�"*�L�4��������E �G�'�������'H�C page � �'D��I�!
(���@��)0� ��& ��C�K-F�...
�"*�#���C�K-F��I�,�'$45����:
�H HTML: <?php
session_start();
if ( isset($_SESSION['user']) ) {
if ( (isset($_GET['logout'])) && ($_GET['logout'] == "true") )
{
unset ($_SESSION['user']);
header ("Location: index.php");
}
?>
<!DOCTYPE HTML PUBLIC "-//W(C//DTD XHTML )*� Transitional//EN" "http://www.w(.org/TR/xhtml)/DTD/xhtml)-transitional.dtd"> <html xmlns="http://www.w(.org/)+++/xhtml"> <head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-,"> <title> ����������-������� 23������ </title>
<link href="files/style.css" rel="stylesheet" type="text/css">
</head>
<body>
<?php
include "config.php";
if ( isset($_GET['delete']) && !empty($_GET['delete']) )
{
$del = mysql_query ("DELETE FROM `page` WHERE `id` =
'".intval($_GET['delete'])."' LIMIT )"); if ( $del )
{
$status = '<div class="ok">#�MNO������=����BC�����"#�L�7���� 23</div>'; }
else
�������ManUtdBoss
����persianscript.ir Of
{
$status = '<div class="error"> �������1�� 23�MNO����VFG'!�&� ���"�������% </div>';
}
}
?>
<div id="main">
<img src="files/header.jpg" border="�"> <div class="navbar">
<ul>
<li><a href="home.php">����#��</a></li> <li><a href="../index.php" target="_blank">�����-��.�</a></li> </ul>
</div>
</div>
<div id="sidebar">
<ul>
<li><a href="home.php">����#��</a></li> <li><a href="addnews.php">�1���0�/����</a></li> <li><a href="addpage.php">�1� 23���$��</a></li> <li><a href="addlink.php">�1�4%�5�/����</a></li> <li><a href="news.php">���0������</a></li> <li><a href="pages.php">�� 23�����</a></li> <li><a href="links.php">�6�4%�5�����</a></li> <li><a href="homepage.php">��7�� 23�����</a></li> <li><a href="?logout=true"><font color="red">8��0!</font></a></li>
</ul>
</div>
<div class="content">
<div class="top-text">�� 23�����</div> <php echo $status;?>
<table id="box-table-a">
<thead>
<tr>
<th scope="col"> 23�&��%�</th> <th scope="col">/�����P����</th> <th scope="col">-�����</th> <th scope="col">MNO</th> </tr>
</thead>
<tfoot>
<tr>
<td colspan="("><em>�%���Q���� 23�&����MNO���</em></td> <td> </td>
</tr>
</tfoot>
<tbody>
<?php
$Query = mysql_query ("SELECT * FROM `page` ORDER BY `id` DESC");
while ( $row_page = mysql_fetch_array($Query) ) {
?>
<tr>
<td><?php echo $row_page['title']; ?></td>
<td><?php echo date("Y/n/d", $row_page['date']) ?></td>
<td><a href="addpage.php?edit=<?php echo $row_page['id']; ?>"><img
src="files/page_edit.png" border="�" title=" 23�-�����" /></a></td> <td><a onclick="if (confirm('T���6�RS.K�"#�L�7���� 23�MNO�=�����')) window.location = '?delete=<?php echo $row_page['id']; ?>';" href="#"><img
src="files/page_delete.png" border="�" title=" 23�MNO" /></a></td> </tr>
<?php } ?>
�������ManUtdBoss
����persianscript.ir Oi
</tbody>
</table>
</div>
<div class="clear"></div>
</div>
</body></html>
<?php } else { header ("location: index.php"); } ?>
<��)0�%�����:�V���LI��/�C�$�V���-��&�3 news.php (���0�& �����2� �4���*����� �<���� �
#���2 �#��%�*��H:
�H PHP: <?php
session_start();
if ( isset($_SESSION['user']) ) {
if ( (isset($_GET['logout'])) && ($_GET['logout'] == "true") )
{
unset ($_SESSION['user']);
header ("Location: index.php");
}
?>
�"*�#���C�$45�')*����'H��H�����L���(�,���� �#���'H�'�1��2 �#� '0�LLL� ��'$45�'H�����(�,���� �'H�2���5���
(���@��)0�LC�������#�h��� � � �'$45�'��'D��(����E�[!0�
%�*��H HTML W9��:
�H HTML: <!DOCTYPE HTML PUBLIC "-//W(C//DTD XHTML )*� Transitional//EN" "http://www.w(.org/TR/xhtml)/DTD/xhtml)-transitional.dtd"> <html xmlns="http://www.w(.org/)+++/xhtml"> <head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-,"> <title> ����������-������� 23������ </title>
<link href="files/style.css" rel="stylesheet" type="text/css">
</head>
<body>
%�*��H html (���0�:�V���'H��"*�W9��...
#��wgB�%�*�b#,� �C���! �:
�H PHP: <?php
include "config.php";
if ( isset($_GET['delete']) && !empty($_GET['delete']) )
{
$del = mysql_query ("DELETE FROM `page` WHERE `id` = '".intval($_GET['delete'])."
' LIMIT )"); if ( $del )
{
$status = '<div class="ok"> 23 L�7��� "# �� ��BC� =� ���� MNO # </
div>';
}
else
{
$status = '<div class="error">
EFG' �� MNO 23 ��1� ����!"����� &� �� �%� </div>';
}
�������ManUtdBoss
����persianscript.ir On
}
?>
�_�40�H�I��/���!����������������T�"*�@8����+���!���C�K-F��'H�U � ���1��20����#/�L��'MH����1��2 �#����!������
��#���MH�'MY� delete �E�M ��� � ������M[���M�a)*� �(�#MH delete ���M0�29�M���T�����'M,���'$4M5�(��)M,��M���d�&�M)*� id)
���MM[� #MM���MM� �& � delete 'MM��'MMH id ��MMH�wgMMB� ��(�#MMZ�#��'$4MM5T�L��MMH�wgMMB� ��'$4MM5�IMMH�2MM�.�)
�<�R����,�wgB�'$45�'Y�����N0���� "wgB���� ������[/�����(�,�?�7!0��'$45 �,"���#M�R!��M��(#M�� status ����
�D0�wgB� �� ��@���281D�'H�2���5<�R��� "�������G �'$45�wgB����281DJ��M��H�&�$!��(��� �"���MH�s�M3� ��
��� status '�H�(�Y�� ��#���'$45�wgB���.V ���� �'D��s�3���.��(��#�...��
�� ����) �%��T�H html):
�H HTML: <div id="main">
<img src="files/header.jpg" border="�"> <div class="navbar">
<ul>
<li><a href="home.php">����#��</a></li> <li><a href="../index.php" target="_blank">�����-��.�</a></li> </ul>
</div>
</div>
<div id="sidebar">
<ul>
<li><a href="home.php">����#��</a></li> <li><a href="addnews.php"> �/�����1���0 </a></li>
<li><a href="addpage.php">�1� 23���$��</a></li> <li><a href="addlink.php">�1�4%�5�/����</a></li> <li><a href="news.php">���0������</a></li> <li><a href="pages.php">�� 23�����</a></li> <li><a href="links.php">�6�4%�5�����</a></li> <li><a href="homepage.php">��7�� 23�����</a></li> <li><a href="?logout=true"><font color="red">8��0!</font></a></li>
</ul>
</div>
(���0�25���>�3� �'D��W9���'��b��#����...
'$45�#*�C�K-F�� �C�$45��"�9�@��)0�'[8B:
�H PHP: <div class="content">
<div class="top-text"> ���� �� 23 </div>
<php echo $status;?>
<table id="box-table-a">
<thead>
<tr>
<th scope="col"> &��%� 23 </th>
<th scope="col"> P���� /���� </th>
<th scope="col">-�����</th> <th scope="col">MNO</th> </tr>
</thead>
�������ManUtdBoss
����persianscript.ir OP
<tfoot>
<tr>
<td colspan="("><em> �� MNO &��� �� 23 �Q� �%� </em></td>
<td> </td>
</tr>
</tfoot>
<tbody>
<?php
$Query = mysql_query ("SELECT * FROM `page` ORDER BY `id` DESC");
while ( $row_page = mysql_fetch_array($Query) ) {
?>
<tr>
<td><?php echo $row_page['title']; ?></td>
<td><?php echo date("Y/n/d", $row_page['date']) ?></td>
<td><a href="addpage.php?edit=<?php echo $row_page['id']; ?>"><img src="files/pag
e_edit.png" border="�" title=" -����� 23 " /></a></td>
<td><a onclick="if (confirm(' ��� =� MNO 23 L�7��� "# RS.K T���6 ')) w
indow.location = '?delete=<?php echo $row_page['id']; ?>';" href="#"><img src="files/
page_delete.png" border="�" title=" MNO 23 " /></a></td>
</tr>
<?php } ?>
</tbody>
</table>
</div>
<div class="clear"></div>
</div>
</body></html>
<?php } else { header ("location: index.php"); } ?>
������E �G����I���� �'0 �#Z�#�� ��C�$45�'H�������'[8B�������)"�� � �E� ���o�����C�K-F���������C��5�'�
(���@��)0�'$45�&���K�L���a)* @��#� �%�#�� �������:�V���wgB�%�#��'H���!,�gY� ��#��@��#� � �wgB���8���
'$45�������'$45�'��(#�
�� � �2 �#����! ���*��N!0����'D��'!"��#��...��
��
• 9�'$45��*�,�'��'G���������*�@7�����&�! ��%���#ZV�������C�$,����D3��)"��& ��2���1�����#/���� �
�)0������'��^ #,�@������S85��'$45����C�$452� ����������W9�����1��LLL��
��
��
��
��
��
��
��
��
��
��
��
��
�������ManUtdBoss
����persianscript.ir Oe
��
��
��
��
��
��
�D�) A��9���������J:�=���������������
�?�7!0����������^ #,� ��<��H�(�� �W9�����1��
9��2 �<��������'H��)!"2!,�0�'H������ �� ���(������H��'����
����
����#{>G���� ���C����#!D���#��&���#���<��L����(��),�C��5�'�%V����:��<��L�*�(��),�'�% ��%�����#���#�'G���
�H������
�������ManUtdBoss
����persianscript.ir Or
����
�(��),��������)0�@9���"������T���������#��'[8B�%��)0�@���������d�E �G�newsU��
�(��),����O���)0�@9���"��3����C�$45����&�1�T�z#�# �d�� ����) �&�! �dz#��'��T�U���������#��'[8B�%�
�)0�@����C�$45�d�E �G�pageU��
�(��),����`���)0�@9������ ����) �&�! �����*��T���������#��'[8B�%�)0��@����C�$45�d�E �G�linkU��
�(��),����f���*��H%�HTML�"*�LLL��
��
!"#����$#����1��$#�����'���(��.A���/��<"6
%�� �(�����<����:�V���I��'8B#����'H�2��*�'[8B������������)"�������� ���H�L%�*�'[8B����(��4! ���� PHP
C�$45����9�����7��Si(�,�E� ���#���#�� �����@��)0� ���*����9����a)*�
�'8B#���0����#/_�40�H�I��/�&�#H�2
_�40�H�I��/��������W9���%��!����� (config.php) <���@��)0�W9������ �. �C��7D����(��4! ����������&�3�c�#3
������I��/��������'H�+���!���SC���!$ �����@��)0� ���*�#; � �E ��G
�������*�%��'Z���C��7D�_�40�H�I��/�%�����',���&������'Y�����a)*�LIm ��� �&���K�S ���� �C�$�V���LLL�'H
'D��(����@��)0�������(��#�...��
�H PHP:
<!DOCTYPE html PUBLIC "-
//W(C//DTD XHTML )*� Transitional//EN" "http://www.w(.org/TR/xhtml)/DTD/xhtml)-transitional.dtd">
<!--
�������ManUtdBoss
����persianscript.ir `p
Design by http://www.coolwebtemplates.net
Released for free under a Creative Commons Attribution (*� License -->
<?php
include "admin/config.php";
?>
<html xmlns="http://www.w(.org/)+++/xhtml"> <head>
<title><?php echo $title;?></title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-," /> <link href="style.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div class="main">
<div class="header">
<div class="header_resize">
<div class="logo"><h)><a href="index.php"><?php echo $title;?><small><?php echo $desc;?></small></a></h)></div> <div class="clr"></div>
�L ����1��20����#/� ��_�40�H�I��/�����!�����T�Q�P(
OL �Q������#�R!����(��4! ����� ����� �&���K��� title ������@��)0T'D��(����@��)0�_�40�H�I��/����#�R!U
`L �Q����O�#�R!����(��4! ����� ����� �C�$�V��� �&���K� desc title �����@��)0T�L�_�40�H�I��/����#�R!
'D��(����@��)0(
�<"6�+�:��������������%1��$#�(��.A��<"6 T2�=���%�����U
�H PHP:
<div class="menu_nav">
<ul>
<li class="active"><a href="index.php"> ��0</a></li> <?php
$Query = mysql_query ("SELECT * FROM `page` ORDER BY `id` DESC LIMIT @"); while ( $row_page = mysql_fetch_array($Query) ) {
?>
<li><a href="page.php?id=<?php echo $row_page['id']; ?>"><?php echo $row_page['ti
tle']; ?></a></li>
<?php } ?>
</ul>
</div>
<div class="clr"></div>
�L ���1��������#�R!��������!����� %#{�H�� ��'� (Query) 2G #��'H mysql_query (����?�7!0����! ��
E �G page) #�R!�����I����<>�#�� �
OL '[8B����(��4! ������.� while � ��#; �#*�2G #������T���f'$45��U�����@��)0
`L '[8B while ������ �
�������ManUtdBoss
����persianscript.ir `�
?�7!0�� ��%>�3�'3�� select ���H�2
C���! ����������� sql �������! ��+���!���'� 'H�T�W��#��'����U?�7!0� �E �G��������*��8�/�')*��H"C�$45"�#��
6� � id 29 >0�C��5�'��'$45
���*���#1�����������(�0�,���#1��'[8B����(��4! �������������#*�I���� li ������LI���� li �����@��)0� ��&���K�L
���a)* id ��#����8H�&���K�'�� � C��5�'��'H����� GET '$45�'����! #4� page.php ('!�� ��.��'8B#����'H
'D��U(���@��)0�2��N���'�� ��#��& ����.
�<"6�+���������������%���'���(��.A��<"6K�'��4��,L�8�1���2�3��3�>(
�H PHP: </div>
</div>
<div class="content">
<div class="content_resize">
<div class="mainbar">
<?php
$Query = mysql_query ("SELECT * FROM `news` ORDER BY `id` DESC LIMIT )�");
while ( $row_news = mysql_fetch_array($Query) ) {
?>
<div class="article">
<h�><?php echo $row_news['title']; ?></h�><div class="clr"></div> <p><span class="date"><?php echo date("l d F Y", $row_news['date']) ?></spa
n></p>
<p><?php echo $row_news['content']; ?></p>
<p class="spec"><a href="news.php?id=<?php echo $row_news['id']; ?>" class=
"rm"> ��� �#�� ...</a></p>
</div>
<?php }?>
'H������E �G����������� news 6� ��#�� ���"* id �7!0��' ��,���? ���H�2�J��������#���'H���Z�� T����.��'�
�p#���U(���@��)0� ��L'������ #��&���K�'H�#; �#*�#���[���S�E� ���o�����S#�0�����#��(���H��!� �@��)0� �
����
#��' ��,����(��4! �������;��)* (id) '8� �'�� � GET '$45�'����! #4� news.php ��#��#*���#��'H�'��
�#!D���C��{>G����(�#)*�2��N��TW8;�'��� / I�H�W8;�U(���@��)0
�<"6�+���������������%1��$#�(��.A��<"6 (�������,���M
�H PHP: <div class="gadget">
<h� class="star"><span>��%</span> EF3�</h�><div class="clr"></div> <ul class="sb_menu">
<li><a href="index.html"> ��0</a></li> <?php
$Query = mysql_query ("SELECT * FROM `page` ORDER BY `id` DESC");
while ( $row_page = mysql_fetch_array($Query) ) {
?>
<li><a href="page.php?id=<?php echo $row_page['id']; ?>"><?php echo $row_
�������ManUtdBoss
����persianscript.ir `O
page['title']; ?></a></li>
<?php } ?>
</ul>
</div>
�����@��)0�+���!������ ��C�$45��"�9������(��� ���T�L��� �%=���%���Im��[���(
<��)0�25���:�V���+�
���������<"6�+���FN����%4� ����9,�:�(��.A��<"6
�H PHP: <div class="gadget">
<h� class="star"><span> 4%�5 �6 </span></h�><div class="clr"></div> <ul class="ex_menu">
<?php
$Query = mysql_query ("SELECT * FROM `link` ORDER BY `id` DESC");
while ( $row_link = mysql_fetch_array($Query) ) {
?>
<li><a href="<?php echo $row_link['url']; ?>" title="<?php echo $row_link
['title']; ?>"><?php echo $row_link['title']; ?></a><br /><?php echo $row_link['descr
iption']; ?></li>
<?php }?>
</ul>
</div>
E �G���� ��#���[�������)"���������� link &�! ��%�*����9�&�)*�'H �����@��)0� ���"*�L�%�*�'[8B�Im
��#�Z��%#{�H�'!,gY�L'[8B��� while �9�6���� ����9�&���K�#���[� ����1�������@��)0� �����9�C�$�V��� ���
����L������ ��'[8B�#������
�O�����/���P �����,���<"6����������� : K���������+ �8������3������1��$#�(��.A��<"6��(
&�! ��W��L���� �z#��'��'������ ��&=�T#��/(
��)"����3��)"����������TA-��U��(������%�*�<�0����������S�����LLL�S�����6�)��
I��/����#�R!�������N�������< �H�#*�%�#��'H config.php #���[�&�#H���� �����������'H�<�#H�� ���S�2�)����
'D��(����@��)0�C�$45!
�H PHP:
<div class="fbg">
<div class="fbg_resize">
<div class="col c)">
<h�><span> "����� R </span></h�> <img src="http://forum.persianscript.ir/images/white.jpg" width="WX" height="WX" alt="pix" /> <?php echo $about;?>
</div>
<div class="col c�">
<h�><span> R �� ...</span></h�> <ul class="sb_menu">
<li><a href="<?php echo $facebook;?>">Y����C</a></li> <li><a href="<?php echo $twitter;?>">������</a></li> <li><a href="<?php echo $google;?>">9!�! +</a></li> </ul>
�������ManUtdBoss
����persianscript.ir ``
</div>
<div class="col c(">
<h�> Z�.� �� R </h�>
<p> ���� Z�.� �� R ������ =� [��\ ��= ��Q� ���.� </p>
<p><a href="mailto:<?php echo $email;?>"><?php echo $email;?></a></p>
<p><?php echo $tell;?></p>
</div>
<div class="clr"></div>
</div>
</div>
<div class="footer">
<div class="footer_resize">
<p class="lf">© ;=�< EO��\ ����� ���� ���� "��� ]��� <a href="#">
R�#�: �?��G�� </a>. J5�Q �C�!�� =� <a href="http://www.coolwebtemplates.net/">W
ebsite Templates</a></p>
<ul class="fmenu">
<li class="active"><a href="index.html"> ��0</a></li> <?php
$Query = mysql_query ("SELECT * FROM `page` ORDER BY `id` DESC LIMIT W"); while ( $row_page = mysql_fetch_array($Query) ) {
?>
<li><a href="page.php?id=<?php echo $row_page['id']; ?>"><?php echo $row_
page['title']; ?></a></li>
<?php } ?>
</ul>
<div class="clr"></div>
</div>
</div>
(������#�R!���!����� 6�)�����a)*�IY�Y� �#!����� �A�"�/� ��� �(��79��&�1���� ���#�Z��_�40�H���� ����� �#��
A-����� �z#��'��&�)*�'H �����@��)0��"*�#�0�����%�*.
�����@��)0���� �#��/���� ��C�$45��"�9�C�$45�E �G����(��� ��#�����.��
��
� �
�'����>�+ �(��.A - News.php
��H�I�)1�� ���!"� ��,��5#/��*�C������.��(#�=��.
���H�I�)1�� ��������)"������7��@7���������L% ��#���H�&�#H���8H����2�.� " �W8;�'���"�#��I�H��!�
'D��(�0���J'Z���C�$45�% ��#����8H������ �����C�$�V��� �'$45�& ��I�H��!���� !
I��/�'���"0�%�����C�#��R������H�����%�#� index.php ����)0�Jb#,����Q[/ �(��),�#���H�'H�2���5����'H�����>�
'8� �'�� ��#� GET ����(��! #/�L#; &�7�� ��#�0�����J2�.��(���&�D0� �����[�����N���'./������ limit �#��#��
',��!
I��/�C���!$ news.php :
�H PHP: <!DOCTYPE html PUBLIC "-
//W(C//DTD XHTML )*� Transitional//EN" "http://www.w(.org/TR/xhtml)/DTD/xhtml)-transitional.dtd">
�������ManUtdBoss
����persianscript.ir `f
<!--
Design by http://www.coolwebtemplates.net
Released for free under a Creative Commons Attribution (*� License -->
<?php
include "admin/config.php";
?>
<html xmlns="http://www.w(.org/)+++/xhtml"> <head>
<title><?php echo $title;?></title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-," /> <link href="style.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div class="main">
<div class="header">
<div class="header_resize">
<div class="logo"><h)><a href="index.php"><?php echo $title;?><small><?php echo $desc;?></small></a></h)></div> <div class="clr"></div>
<div class="menu_nav">
<ul>
<li class="active"><a href="index.php"> ��0</a></li> <?php
$Query = mysql_query ("SELECT * FROM `page` ORDER BY `id` DESC LIMIT @"); while ( $row_page = mysql_fetch_array($Query) ) {
?>
<li><a href="page.php?id=<?php echo $row_page['id']; ?>"><?php echo $row_page['ti
tle']; ?></a></li>
<?php } ?>
</ul>
</div>
<div class="clr"></div>
</div>
</div>
<div class="content">
<div class="content_resize">
<div class="mainbar">
<?php
if ( isset($_GET['id']) )
{
$Query = mysql_query ("SELECT * FROM `news` WHERE `id` = '".intval($_GET[
'id'])."' LIMIT )"); }
while ( $row_news = mysql_fetch_array($Query) ) {
?>
<div class="article">
<h�><?php echo $row_news['title']; ?></h�><div class="clr"></div> <p><span class="date"><?php echo date("l d F Y", $row_news['date']) ?></spa
n></p>
<p><?php echo $row_news['content']; ?></p>
<p><?php echo $row_news['fullcontent']; ?></p>
</div>
<?php }?>
</div>
�������ManUtdBoss
����persianscript.ir `i
<div class="sidebar">
<div class="gadget">
<h� class="star"><span>��%</span> EF3�</h�><div class="clr"></div> <ul class="sb_menu">
<li><a href="index.html"> ��0</a></li> <?php
$Query = mysql_query ("SELECT * FROM `page` ORDER BY `id` DESC");
while ( $row_page = mysql_fetch_array($Query) ) {
?>
<li><a href="page.php?id=<?php echo $row_page['id']; ?>"><?php echo $row_
page['title']; ?></a></li>
<?php } ?>
</ul>
</div>
<div class="gadget">
<h� class="star"><span> 4%�5 �6 </span></h�><div class="clr"></div> <ul class="ex_menu">
<?php
$Query = mysql_query ("SELECT * FROM `link` ORDER BY `id` DESC");
while ( $row_link = mysql_fetch_array($Query) ) {
?>
<li><a href="<?php echo $row_link['url']; ?>" title="<?php echo $row_link
['title']; ?>"><?php echo $row_link['title']; ?></a><br /><?php echo $row_link['descr
iption']; ?></li>
<?php }?>
</ul>
</div>
</div>
<div class="clr"></div>
</div>
</div>
<div class="fbg">
<div class="fbg_resize">
<div class="col c)">
<h�><span> "����� R </span></h�> <img src="images/white.jpg" width="WX" height="WX" alt="pix" /> <?php echo $about;?>
</div>
<div class="col c�">
<h�><span> R �� ...</span></h�> <ul class="sb_menu">
<li><a href="<?php echo $facebook;?>">Y����C</a></li> <li><a href="<?php echo $twitter;?>">������</a></li> <li><a href="<?php echo $google;?>">9!�! +</a></li> </ul>
</div>
<div class="col c(">
<h�> Z�.� �� R </h�>
<p> ���� Z�.� �� R ������ =� [��\ ��= ��Q� ���.� </p>
<p><a href="mailto:<?php echo $email;?>"><?php echo $email;?></a></p>
<p><?php echo $tell;?></p>
</div>
<div class="clr"></div>
</div>
</div>
<div class="footer">
<div class="footer_resize">
<p class="lf">© ;=�< EO��\ ����� ���� ���� "��� ]��� <a href="#">
R�#�: �?��G�� </a>. J5�Q �C�!�� =� <a href="http://www.coolwebtemplates.net/">W
�������ManUtdBoss
����persianscript.ir `n
ebsite Templates</a></p>
<ul class="fmenu">
<li class="active"><a href="index.html"> ��0</a></li> <?php
$Query = mysql_query ("SELECT * FROM `page` ORDER BY `id` DESC LIMIT W"); while ( $row_page = mysql_fetch_array($Query) ) {
?>
<li><a href="page.php?id=<?php echo $row_page['id']; ?>"><?php echo $row_
page['title']; ?></a></li>
<?php } ?>
</ul>
<div class="clr"></div>
</div>
</div>
</div>
</body>
</html>
��!������W�I��/����'H�28�� ����t�%�*�'�7D��� index.php <����:�V��. ��� �<�0�@��)0�Im�S��� �&���K�S
��� �%=���%#� �0�%������C�$45��"�9 �LLL�"* !
�H PHP: <!DOCTYPE html PUBLIC "-
//W(C//DTD XHTML )*� Transitional//EN" "http://www.w(.org/TR/xhtml)/DTD/xhtml)-transitional.dtd">
<!--
Design by http://www.coolwebtemplates.net
Released for free under a Creative Commons Attribution (*� License -->
<?php
include "admin/config.php";
?>
<html xmlns="http://www.w(.org/)+++/xhtml"> <head>
<title><?php echo $title;?></title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-," /> <link href="style.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div class="main">
<div class="header">
<div class="header_resize">
<div class="logo"><h)><a href="index.php"><?php echo $title;?><small><?php echo $desc;?></small></a></h)></div> <div class="clr"></div>
<div class="menu_nav">
<ul>
<li class="active"><a href="index.php"> ��0</a></li> <?php
$Query = mysql_query ("SELECT * FROM `page` ORDER BY `id` DESC LIMIT @"); while ( $row_page = mysql_fetch_array($Query) ) {
?>
<li><a href="page.php?id=<?php echo $row_page['id']; ?>"><?php echo $row_page['ti
tle']; ?></a></li>
<?php } ?>
</ul>
</div>
�������ManUtdBoss
����persianscript.ir `P
<div class="clr"></div>
</div>
</div>
<div class="content">
<div class="content_resize">
<div class="mainbar">
I��/�'���"0�& �����2{>G�C�#��R�� ���������H�& �������'H�2!)"� index.php ���1��������L�"*�b#,�&�)*�L
���!$�"*�#���q#,�'����'[8B�C
�H PHP: <?php
if ( isset($_GET['id']) )
{
$Query = mysql_query ("SELECT * FROM `news` WHERE `id` = '".intval($_GET[
'id'])."' LIMIT )"); }
while ( $row_news = mysql_fetch_array($Query) ) {
?>
<div class="article">
<h�><?php echo $row_news['title']; ?></h�><div class="clr"></div> <p><span class="date"><?php echo date("l d F Y", $row_news['date']) ?></spa
n></p>
<p><?php echo $row_news['content']; ?></p>
<p><?php echo $row_news['fullcontent']; ?></p>
</div>
<?php }?>
C�$�V��:
'8� �'�� ��%#��(��),�#���H�'H�#Y����Z����!����� id ��"*�#���!�@��)0�'H�'K�)��#���C���! ������(��! #/
�H��#G�� �.
E �G��������(��� ��#��(��),�#���H�'H�2���5��� news - 6� ��#������ �#��(��),T�E� ������ ����#���H�'H�%� �
(�#HU�H�?�7!0�� ��#����.
'[8B�������=�B while �����@��)0� �����0�����%�*����[�L����#���[ #��&���K����0S�#��E� ���o�����S�(���H��!
� �#��"*�#��I�H��!!
'D��'!"��'[8B� .
I��/���0���*��H�2��� index.php ���� �C�$45�'H�%���H����0�I�,�'H��!"* %�*����9 �(���@��)0� ��&�! �
���6�)��Im����t�C���!$�'H���� �z#��'�� ���LLL(���@��)0� �
�"*�#���q#,�'�:
�H PHP:
</div>
<div class="sidebar">
<div class="gadget">
<h� class="star"><span>��%</span> EF3�</h�><div class="clr"></div> <ul class="sb_menu">
<li><a href="index.html"> ��0</a></li>
�������ManUtdBoss
����persianscript.ir `e
<?php
$Query = mysql_query ("SELECT * FROM `page` ORDER BY `id` DESC");
while ( $row_page = mysql_fetch_array($Query) ) {
?>
<li><a href="page.php?id=<?php echo $row_page['id']; ?>"><?php echo $row_
page['title']; ?></a></li>
<?php } ?>
</ul>
</div>
<div class="gadget">
<h� class="star"><span> 4%�5 �6 </span></h�><div class="clr"></div> <ul class="ex_menu">
<?php
$Query = mysql_query ("SELECT * FROM `link` ORDER BY `id` DESC");
while ( $row_link = mysql_fetch_array($Query) ) {
?>
<li><a href="<?php echo $row_link['url']; ?>" title="<?php echo $row_link
['title']; ?>"><?php echo $row_link['title']; ?></a><br /><?php echo $row_link['descr
iption']; ?></li>
<?php }?>
</ul>
</div>
</div>
<div class="clr"></div>
</div>
</div>
<div class="fbg">
<div class="fbg_resize">
�����1��$#�(��.A� - page.php
I��/�'8B#����������������� page.php ���H�'H�"*���� �C�$45�@��)0��L ���(������'$45�Im�LLL�����<��0�� �
I��/�C���!$ page.php
�H PHP:
<!DOCTYPE html PUBLIC "-
//W(C//DTD XHTML )*� Transitional//EN" "http://www.w(.org/TR/xhtml)/DTD/xhtml)-transitional.dtd">
<!--
Design by http://www.coolwebtemplates.net
Released for free under a Creative Commons Attribution (*� License -->
<?php
include "admin/config.php";
?>
<html xmlns="http://www.w(.org/)+++/xhtml"> <head>
<title><?php echo $title;?></title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-," /> <link href="style.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div class="main">
<div class="header">
<div class="header_resize">
�������ManUtdBoss
����persianscript.ir `r
<div class="logo"><h)><a href="index.php"><?php echo $title;?><small><?php echo $desc;?></small></a></h)></div> <div class="clr"></div>
<div class="menu_nav">
<ul>
<li class="active"><a href="index.php"> ��0</a></li> <?php
$Query = mysql_query ("SELECT * FROM `page` ORDER BY `id` DESC LIMIT @"); while ( $row_page = mysql_fetch_array($Query) ) {
?>
<li><a href="page.php?id=<?php echo $row_page['id']; ?>"><?php echo $row_page['ti
tle']; ?></a></li>
<?php } ?>
</ul>
</div>
<div class="clr"></div>
</div>
</div>
<div class="content">
<div class="content_resize">
<div class="mainbar">
<?php
if ( isset($_GET['id']) )
{
$Query = mysql_query ("SELECT * FROM `page` WHERE `id` = '".intval($_GET[
'id'])."' LIMIT )"); }
while ( $row_news = mysql_fetch_array($Query) ) {
?>
<div class="article">
<h�><?php echo $row_news['title']; ?></h�><div class="clr"></div> <p><span class="date"><?php echo date("l d F Y", $row_news['date']) ?></spa
n></p>
<p><?php echo $row_news['content']; ?></p>
</div>
<?php }?>
</div>
<div class="sidebar">
<div class="gadget">
<h� class="star"><span>��%</span> EF3�</h�><div class="clr"></div> <ul class="sb_menu">
<li><a href="index.html"> ��0</a></li> <?php
$Query = mysql_query ("SELECT * FROM `page` ORDER BY `id` DESC");
while ( $row_page = mysql_fetch_array($Query) ) {
?>
<li><a href="page.php?id=<?php echo $row_page['id']; ?>"><?php echo $row_
page['title']; ?></a></li>
<?php } ?>
</ul>
</div>
<div class="gadget">
<h� class="star"><span> 4%�5 �6 </span></h�><div class="clr"></div> <ul class="ex_menu">
<?php
$Query = mysql_query ("SELECT * FROM `link` ORDER BY `id` DESC");
while ( $row_link = mysql_fetch_array($Query) ) {
�������ManUtdBoss
����persianscript.ir fp
?>
<li><a href="<?php echo $row_link['url']; ?>" title="<?php echo $row_link
['title']; ?>"><?php echo $row_link['title']; ?></a><br /><?php echo $row_link['descr
iption']; ?></li>
<?php }?>
</ul>
</div>
</div>
<div class="clr"></div>
</div>
</div>
<div class="fbg">
<div class="fbg_resize">
<div class="col c)">
<h�><span> "����� R </span></h�> <img src="images/white.jpg" width="WX" height="WX" alt="pix" /> <?php echo $about;?>
</div>
<div class="col c�">
<h�><span> R �� ...</span></h�> <ul class="sb_menu">
<li><a href="<?php echo $facebook;?>">Y����C</a></li> <li><a href="<?php echo $twitter;?>">������</a></li> <li><a href="<?php echo $google;?>">9!�! +</a></li> </ul>
</div>
<div class="col c(">
<h�> Z�.� �� R </h�>
<p> ���� Z�.� �� R ������ =� [��\ ��= ��Q� ���.� </p>
<p><a href="mailto:<?php echo $email;?>"><?php echo $email;?></a></p>
<p><?php echo $tell;?></p>
</div>
<div class="clr"></div>
</div>
</div>
<div class="footer">
<div class="footer_resize">
<p class="lf">© ;=�< EO��\ ����� ���� ���� "��� ]��� <a href="#">
R�#�: �?��G�� </a>. J5�Q �C�!�� =� <a href="http://www.coolwebtemplates.net/">W
ebsite Templates</a></p>
<ul class="fmenu">
<li class="active"><a href="index.html"> ��0</a></li> <?php
$Query = mysql_query ("SELECT * FROM `page` ORDER BY `id` DESC LIMIT W"); while ( $row_page = mysql_fetch_array($Query) ) {
?>
<li><a href="page.php?id=<?php echo $row_page['id']; ?>"><?php echo $row_
page['title']; ?></a></li>
<?php } ?>
</ul>
<div class="clr"></div>
</div>
</div>
</div>
</body>
</html>
�������ManUtdBoss
����persianscript.ir f�
%������C�$45����9�@��)0� ���� �&���K�Im���� �C�K-F��20����#/�C���! � ���� �%=���%#� �0�LLL�I��E� ��'�
%�*�I��/�Im� index.php news.php #10�%#��R�� ��"*&�!
�H PHP: <!DOCTYPE html PUBLIC "-
//W(C//DTD XHTML )*� Transitional//EN" "http://www.w(.org/TR/xhtml)/DTD/xhtml)-transitional.dtd">
<!--
Design by http://www.coolwebtemplates.net
Released for free under a Creative Commons Attribution (*� License -->
<?php
include "admin/config.php";
?>
<html xmlns="http://www.w(.org/)+++/xhtml"> <head>
<title><?php echo $title;?></title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-," /> <link href="style.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div class="main">
<div class="header">
<div class="header_resize">
<div class="logo"><h)><a href="index.php"><?php echo $title;?><small><?php echo $desc;?></small></a></h)></div> <div class="clr"></div>
<div class="menu_nav">
<ul>
<li class="active"><a href="index.php"> ��0</a></li> <?php
$Query = mysql_query ("SELECT * FROM `page` ORDER BY `id` DESC LIMIT @"); while ( $row_page = mysql_fetch_array($Query) ) {
?>
<li><a href="page.php?id=<?php echo $row_page['id']; ?>"><?php echo $row_page['ti
tle']; ?></a></li>
<?php } ?>
</ul>
</div>
<div class="clr"></div>
</div>
</div>
<div class="content">
<div class="content_resize">
<div class="mainbar">
�"*�'Y#��'0������(�#H�#��R��'H�285���)"��L@��)0�'Y#��C���!$�'H�2��G��� 'D��(����L�E �G���!������������
@��)0� ��C���!$� ����H���5� ���*�'Y#� ����
�"*�#���q#,�'���)"�������H:
�H PHP:
�������ManUtdBoss
����persianscript.ir fO
<?php
if ( isset($_GET['id']) )
{
$Query = mysql_query ("SELECT * FROM `page` WHERE `id` = '".intval($_GET[
'id'])."' LIMIT )"); }
while ( $row_news = mysql_fetch_array($Query) ) {
?>
<div class="article">
<h�><?php echo $row_news['title']; ?></h�><div class="clr"></div> <p><span class="date"><?php echo date("l d F Y", $row_news['date']) ?></spa
n></p>
<p><?php echo $row_news['content']; ?></p>
</div>
<?php }?>
C�$�V��:
������!���H��#G�� ��'K�)��#���C���! ���#H�E� ��� ��'Y#��(��),�#���H�'H�2���5��������>��b#,
E �G������!����)"�������� page '[8B�������(��4! ����� ����H�2�?�7!0�� ��'$45�(��), while �& ��C���!$
�����&�D0� ��'$45.
'$45�&���K�Im�#�0�����%�*��8�/�+x S�� �'$45��!�����@��)0� ��#��E� ���o���!
%�*�'Y#����0���*��*��H�#�� index.php news.php ��!"*�#��R��& ��T���0 � �(���� ��C�$45��"�9�'H�%���H
�"*��)"���������'H�&�! ��%�*����9�L+x 'D��(����@��)0�'H�(����2!��t�#���[���� �#��/)
�H PHP: </div>
<div class="sidebar">
<div class="gadget">
<h� class="star"><span>��%</span> EF3�</h�><div class="clr"></div> <ul class="sb_menu">
<li><a href="index.html"> ��0</a></li> <?php
$Query = mysql_query ("SELECT * FROM `page` ORDER BY `id` DESC");
while ( $row_page = mysql_fetch_array($Query) ) {
?>
<li><a href="page.php?id=<?php echo $row_page['id']; ?>"><?php echo $row_
page['title']; ?></a></li>
<?php } ?>
</ul>
</div>
<div class="gadget">
<h� class="star"><span> 4%�5 �6 </span></h�><div class="clr"></div> <ul class="ex_menu">
<?php
$Query = mysql_query ("SELECT * FROM `link` ORDER BY `id` DESC");
while ( $row_link = mysql_fetch_array($Query) ) {
?>
<li><a href="<?php echo $row_link['url']; ?>" title="<?php echo $row_link
['title']; ?>"><?php echo $row_link['title']; ?></a><br /><?php echo $row_link['descr
iption']; ?></li>
<?php }?>
</ul>
</div>
</div>
<div class="clr"></div>
�������ManUtdBoss
����persianscript.ir f`
</div>
</div>
<div class="fbg">
<div class="fbg_resize">
<div class="col c)">
<h�><span> "����� R </span></h�> <img src="images/white.jpg" width="WX" height="WX" alt="pix" /> <?php echo $about;?>
</div>
<div class="col c�">
<h�><span> R �� ...</span></h�> <ul class="sb_menu">
<li><a href="<?php echo $facebook;?>">Y����C</a></li> <li><a href="<?php echo $twitter;?>">������</a></li> <li><a href="<?php echo $google;?>">9!�! +</a></li> </ul>
</div>
<div class="col c(">
<h�> Z�.� �� R </h�>
<p> ���� Z�.� �� R ������ =� [��\ ��= ��Q� ���.� </p>
<p><a href="mailto:<?php echo $email;?>"><?php echo $email;?></a></p>
<p><?php echo $tell;?></p>
</div>
<div class="clr"></div>
</div>
</div>
<div class="footer">
<div class="footer_resize">
<p class="lf">© ;=�< EO��\ ����� ���� ���� "��� ]��� <a href="#">
R�#�: �?��G�� </a>. J5�Q �C�!�� =� <a href="http://www.coolwebtemplates.net/">W
ebsite Templates</a></p>
<ul class="fmenu">
<li class="active"><a href="index.html"> ��0</a></li> <?php
$Query = mysql_query ("SELECT * FROM `page` ORDER BY `id` DESC LIMIT W"); while ( $row_page = mysql_fetch_array($Query) ) {
?>
<li><a href="page.php?id=<?php echo $row_page['id']; ?>"><?php echo $row_
page['title']; ?></a></li>
<?php } ?>
</ul>
<div class="clr"></div>
</div>
</div>
</div>
</body>
</html>
�,�<�)���!"� �285����H�L'��'H�����&��#�0���25���C�0�1��'H�2���5��� ��'/�V���!"� ����H�I�)�����%�#��'D
��#���������������0>��25����<�R����� <��
��I�)��: [email protected]
�!,�gY���80���%�#�� ���!"� �L���H���80�����0�!�.
���#��� �C�$45� ������%�#��2"),�o����������a)*LL�L<�#H�'/�V�!
�������ManUtdBoss
����persianscript.ir ff
��������(��4! �����2"),�o�����I����(�$0 pdate �����LI��/�'�/�H pdate.php 20����#/� � (include) ���� ����H
�����'H�2��*��)"� Date ��G '��I���� �#*��� pdate ���H�J �(#�Z�� ��%�-��o�������H����C��5�'������
(���@��)0�2"),.
��
��80������9���
http://go.persianscript.ir/index.php?url=http://dl.persianscript.ir/script/Persian-Simple-
CMS |Oe PersianScript.ir |Or .zip
�Q��E�����"A��
��