Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 98 lines (91 sloc) 3.029 kB
47581c1 fix error, add like question
hieu authored
1 <?php
1b4f161 Addded new changes
trung authored
2 header("location:/Vietnam_general-Overview-I40");
3
47581c1 fix error, add like question
hieu authored
4 include('core/common.php');
5 include('core/init.php');
6 include('core/classes.php');
7
8 $u = new User;
9 $name = mysql_real_escape_string(htmlspecialchars(filter_content_script($_GET["username"])));
10 if(!logged_in())
11 header("location:index.php");
12 $user_filtered = $u->query_username($name);
13
14 if(!is_array($user_filtered))
15 if($user_filtered==0)
16 header("location:index.php");
17
18 if(myUsername(myip())!==$name)
19 header("location:index.php");
20
21 include('core/session.php');
22 include('core/filters.php');
23 include('preprocess.php');
24 include('header.php');
25 include('destination.php');
26
27 ?>
95888d4 git-svn-id: svn://localhost/home/vnwkrepos/trunk@410 46499d64-588c-4c…
hieu authored
28 <style>
29 .phantrang ul{
30 margin:0px;
31 padding: 0px;
32 list-style-type: none;
33 }
34 .phantrang ul li{
35 display: inline;
36 }
37 .phantrang ul li a{
38 color: #CC0000;
39 width: 50px;
40 }
41 </style>
47581c1 fix error, add like question
hieu authored
42 <td class="center" style="width:820px;">
43 <div id="menuWrapper"><div id="toolbar"><?php getToolbarHTML();?></div></div>
44 <div id="contentTable">
45 <div>
46 <h1>New Articles</h1>
47 <div id="new_articles"></div>
48 </div>
49 <div>
50 <h1>New Comments</h1>
51 <div id="new_comments"></div>
52 </div>
53 <div>
54 <h1>New Reviews</h1>
55 <div id="new_reviews"></div>
56 </div>
57 <div>
58 <h1>New Uploaded Images</h1>
59 <div id="new_uploaded_images"></div>
60 </div>
61 </div>
62 </td>
63 </tr>
64 <tr>
65 <td colspan=3>
66 <?php include("footLinks.php");?>
67 </td>
68 </tr>
69 </tbody>
70 </table>
71 <script type="text/javascript">
72 jQuery(document).ready(function(){
73 load_new_feed();
74 });
75 function signOut(){
76 jQuery.post("/requests/logout.php", {},
77 function(response) {
78 window.location="index.php";
79 });
80 }
81 function load_new_feed(){
82 jQuery.post("/requests/load_new_feed.php",{feed_type:1,time:<?=$user_filtered["lastLogin"]?>},function(response){jQuery("#new_articles").html(response);});
83 jQuery.post("/requests/load_new_feed.php",{feed_type:2,time:<?=$user_filtered["lastLogin"]?>},function(response){jQuery("#new_comments").html(response);});
84 jQuery.post("/requests/load_new_feed.php",{feed_type:3,time:<?=$user_filtered["lastLogin"]?>},function(response){jQuery("#new_reviews").html(response);});
85 jQuery.post("/requests/load_new_feed.php",{feed_type:4,time:<?=$user_filtered["lastLogin"]?>},function(response){jQuery("#new_uploaded_images").html(response);});
86 }
95888d4 git-svn-id: svn://localhost/home/vnwkrepos/trunk@410 46499d64-588c-4c…
hieu authored
87 function loadPage(_s,_f_t,_t,_p){
88 jQuery.post("/requests/load_new_feed.php",{s:_s,feed_type:_f_t,time:_t},function(response){jQuery("#"+_p).html(response);});
89 }
47581c1 fix error, add like question
hieu authored
90 </script>
91 <?php
92 include("forms/composeForm.php");
93 include("forms/loginForm.php");
94 include('dialog.php');
95 include("forms/register_email.php");
96 include("footer.php");
1b4f161 Addded new changes
trung authored
97 ?>
Something went wrong with that request. Please try again.