-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcomputers.php
executable file
·60 lines (40 loc) · 1.32 KB
/
computers.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
<?php
require 'req/mysql.php';
include('header.php');
if($_GET[page_id])
{
$cartridge->sql_query="select pages.id, page_title,html_title, m_desc, page_content, url_name,m_kwords FROM pages
JOIN page_cat ON page_cat=page_cat.id
where publish='1' and pages.id=$_GET[page_id]";
$cartridge->sql_execute();
list($page_id, $page_title,$set_title,$set_description,$content, $cat_url_name,$set_keywords)=mysql_fetch_array($cartridge->sql_res);
$page_content="<table width=95% style='margin:15px;'>
<tr><td class=\"page_title\">$page_title</td></tr>
<tr><td class=\"page_content\">".str_replace('/ddruk.local', 'http://ddruk.com.ua', $content)."</td></tr>
</table>";
$price_table=$page_content;
}
else
{
$cartridge->sql_query="SELECT value FROM settings WHERE id=1";
$cartridge->sql_execute();
if(!$cartridge->sql_err)
{
list($kurs_usd_nal)=mysql_fetch_row($cartridge->sql_res);
}
}
include 'header_html.php';
echo $top;
echo $top_menu4;
?>
<div style="float:center; width:100%;" >
<div id="content">
<div style="margin-left: 20px;">
<?php echo $price_table;?>
</div>
</div>
<div class="right_block"><?php include('right_block.php');?></div>
</div>
<?php include ('bottom.php');?>
</body>
</html>