Baixe o app para aproveitar ainda mais
Esta é uma pré-visualização de arquivo. Entre para ver o arquivo original
facebook/facebook/admin/fb_font/FACEBOLF.OTF facebook/facebook/admin/fb_font/font.css @font-face { font-family: myFbFont; src: url(FACEBOLF.OTF); } facebook/facebook/admin/fb_home/background.php facebook Admin News Feed Account Settings Group Chat Notice Feedback Logout Admin News Feed Group Chat Feedback Notice Settings All Users Not found facebook/facebook/admin/fb_home/background_file/background_icons/icon-feedback.png facebook/facebook/admin/fb_home/background_file/background_icons/logout.png facebook/facebook/admin/fb_home/background_file/background_icons/messages.jpg facebook/facebook/admin/fb_home/background_file/background_icons/nexusae0_home_settings_icon2.png facebook/facebook/admin/fb_home/background_file/background_icons/notifications.jpg facebook/facebook/admin/fb_home/background_file/background_icons/online.png facebook/facebook/admin/fb_home/background_file/background_icons/online_symbol.png facebook/facebook/admin/fb_home/background_file/background_icons/Privacy_Shortcuts.png facebook/facebook/admin/fb_home/background_file/background_icons/request.jpg facebook/facebook/admin/fb_home/background_file/background_icons/search.png facebook/facebook/admin/fb_home/background_file/background_icons/Search1.png facebook/facebook/admin/fb_home/background_file/background_icons/Settings.png facebook/facebook/admin/fb_home/background_file/background_icons/Thumbs.db facebook/facebook/admin/fb_home/background_file/background_js/event.js // fb text function on_head_fb_text() { document.getElementById("head_fb_text_backgraound").style.display='block'; } function out_head_fb_text() { document.getElementById("head_fb_text_backgraound").style.display='none'; } // head profile pic,name,home function head_pro_pic_over() { document.getElementById("head_img").bgColor = "#4A63A5"; document.getElementById("head_name_bg").bgColor = "#4A63A5"; document.getElementById("head_name_font").style.color = "#FFFFFF"; } function head_pro_pic_out() { document.getElementById("head_img").bgColor = "#3B5998"; document.getElementById("head_name_bg").bgColor = "#3B5998"; document.getElementById("head_name_font").style.color = "#DEDEEF"; } // Left name function left_name_over() { document.getElementById("left_name").style.textDecoration = "underline" } function left_name_out() { document.getElementById("left_name").style.textDecoration = "none" } facebook/facebook/admin/fb_home/background_file/background_js/options.js function open_option() { document.getElementById("option").style.display='block'; } function close_option() { document.getElementById("option").style.display='none'; } function head_new_over() { document.getElementById("head_new").style.textDecoration = "underline" } function head_new_out() { document.getElementById("head_new").style.textDecoration = "none" } function head_settings_over() { document.getElementById("head_settings").style.textDecoration = "underline" } function head_settings_out() { document.getElementById("head_settings").style.textDecoration = "none" } function head_g_chat_over() { document.getElementById("head_g_chat").style.textDecoration = "underline" } function head_g_chat_out() { document.getElementById("head_g_chat").style.textDecoration = "none" } function head_notice_over() { document.getElementById("head_notice").style.textDecoration = "underline" } function head_notice_out() { document.getElementById("head_notice").style.textDecoration = "none" } function head_logout_over() { document.getElementById("head_logout").style.textDecoration = "underline" } function head_logout_out() { document.getElementById("head_logout").style.textDecoration = "none" } function head_feedback_over() { document.getElementById("head_feedback").style.textDecoration = "underline" } function head_feedback_out() { document.getElementById("head_feedback").style.textDecoration = "none" } function left_logout_over() { document.getElementById("logout").style.textDecoration = "underline" } function left_logout_out() { document.getElementById("logout").style.textDecoration = "none" } // left side options function left_news_feed_over() { document.getElementById("news_feed").style.textDecoration = "underline" } function left_news_feed_out() { document.getElementById("news_feed").style.textDecoration = "none" } function left_group_message_over() { document.getElementById("group_message").style.textDecoration = "underline" } function left_group_message_out() { document.getElementById("group_message").style.textDecoration = "none" } function left_feedback_over() { document.getElementById("feedback").style.textDecoration = "underline" } function left_feedback_out() { document.getElementById("feedback").style.textDecoration = "none" } function left_notice_over() { document.getElementById("notice").style.textDecoration = "underline" } function left_notice_out() { document.getElementById("notice").style.textDecoration = "none" } function left_settings_over() { document.getElementById("settings").style.textDecoration = "underline" } function left_settings_out() { document.getElementById("settings").style.textDecoration = "none" } function left_users_over() { document.getElementById("users").style.textDecoration = "underline" } function left_users_out() { document.getElementById("users").style.textDecoration = "none" } facebook/facebook/admin/fb_home/background_file/background_js/searched_reco_event.js function searched_over(uid) { document.getElementById("Photo"+uid).bgColor = "#6D84B4"; document.getElementById("Photo"+uid).style.color="#FFFFFF"; document.getElementById("Name_bg"+uid).bgColor = "#6D84B4"; document.getElementById("Name_font"+uid).style.color="#FFFFFF"; } function searched_out(uid) { document.getElementById("Photo"+uid).bgColor = "#FFFFFF"; document.getElementById("Photo"+uid).style.color="#3B5998"; document.getElementById("Name_bg"+uid).bgColor = "#FFFFFF"; document.getElementById("Name_font"+uid).style.color="#3B5998"; } function see_more_over() { document.getElementById("see_more").bgColor = "#6D84B4"; document.getElementById("see_more_text").style.color="#FFFFFF"; } function see_more_out() { document.getElementById("see_more").bgColor = "#F2F2F2"; document.getElementById("see_more_text").style.color="#3B5998"; } facebook/facebook/admin/fb_home/background_file/background_js/searching.js function searching() { var xmlhttp; xmlhttp=new XMLHttpRequest(); xmlhttp.onreadystatechange=function() { var details=document.getElementById("searching_ID"); details.innerHTML=xmlhttp.responseText; } xmlhttp.open("GET","Search_Display.php?search_text="+document.fb_search.search1.value,true); xmlhttp.send(null); } facebook/facebook/admin/fb_home/background_file/background_js/submited_searched_reco_event.js //submited serched name link function serched_name_over1(uid) { document.getElementById("Name_font1"+uid).style.textDecoration = "underline" } function serched_name_out1(uid) { document.getElementById("Name_font1"+uid).style.textDecoration = "none" } facebook/facebook/admin/fb_home/feedback.php <?php session_start(); error_reporting(1); if(isset($_SESSION['fbadmin'])) { mysql_connect("localhost","root",""); mysql_select_db("faceback"); if(isset($_POST['delete_feedback'])) { $fb_id=intval($_POST['feedback_id']); mysql_query("delete from feedback where feedback_id=$fb_id"); } include("background.php"); ?> <html> <head> <title> Feedback </title> <script> function feedback_name_underLine(fid) { document.getElementById("uname"+fid).style.textDecoration = "underline"; } function feedback_name_NounderLine(fid) { document.getElementById("uname"+fid).style.textDecoration = "none" } </script> </head> <body> <div style="position:absolute; left:25%; top:10%;"> <img src="img/icon-feedback.png"> </div> <div style="position:absolute; left:35%; top:12%;"> <h1 style="color:#3B59A4;"> Feedback </h1> </div> <hr style="position:absolute;left:25%;top:25%;height:0.5%;width:50%; border-color:#CCCCCC; box-shadow:0px 5px 5px 0px rgb(0,0,0); "> <?php $que_feedback=mysql_query("select * from feedback order by feedback_id desc"); ?> <div style="position:absolute; left:20%; top:35%;"> <table border="0"> <?php while($feedback_data=mysql_fetch_array($que_feedback)) { $feedback_id=$feedback_data[0]; $fb_user_id=$feedback_data[1]; $fb_txt=$feedback_data[2]; $fb_star=$feedback_data[3]; $fb_time=$feedback_data[4]; $que_fb_user_info=mysql_query("select * from users where user_id=$fb_user_id"); $fb_user_data=mysql_fetch_array($que_fb_user_info); $user_name=$fb_user_data[1]; $user_email=$fb_user_data[2]; $user_gender=$fb_user_data[4]; $que_fb_user_pic=mysql_query("select * from user_profile_pic where user_id=$fb_user_id"); $fetch_user_pic=mysql_fetch_array($que_fb_user_pic); $user_pic=$fetch_user_pic[2]; ?> <tr> <td colspan="3"align="right" style="border-top:outset; border-top-width:thin;"> <form method="post"> <input type="hidden" name="feedback_id" value="<?php echo $feedback_id; ?>" > <input type="submit" name="delete_feedback" value=" " style="background-color:#FFFFFF; border:#FFFFFF; background-image:url(img/delete_post.gif); width:2%;"> </form> </td> <td> </td> </tr> <tr> <td style="padding-left:25;" rowspan="2"> <img src="../../fb_users/<?php echo $user_gender; ?>/<?php echo $user_email; ?>/Profile/<?php echo $user_pic; ?>" height="60" width="55"> </td> <td colspan="2" style="padding:7;"> <a href="../fb_view_profile/view_profile.php?id=<?php echo $fb_user_id; ?>" style="text-transform:capitalize; text-decoration:none; color:#003399;" onMouseOver="feedback_name_underLine(<?php echo $feedback_id; ?>)" onMouseOut="feedback_name_NounderLine(<?php echo $feedback_id; ?>)" id="uname<?php echo $feedback_id; ?>"> <?php echo $user_name; ?> </a> </td> </tr> <tr> <td colspan="2" style=" padding-left:7;"><?php echo $fb_txt; ?></td> <td> </td> <td> </td> </tr> <tr> <td> </td> <td> <span style="color:#999999;"> Give's <?php echo $fb_star; ?> star </span> <span style="color:#999999;"> <?php echo $fb_time; ?> </span> </td> <td> </td> </tr> <tr></tr><tr></tr><tr></tr><tr></tr><tr></tr><tr></tr><tr></tr><tr></tr><tr></tr><tr></tr><tr></tr><tr></tr> <?php } ?> </table></div> <div style="position:absolute; left:90%; top:100%;" > </div> </body> </html> <?php } else { header("location:../../index.php"); } ?> facebook/facebook/admin/fb_home/Group_Message.php <?php session_start(); error_reporting(1); if(isset($_SESSION['fbadmin'])) { mysql_connect("localhost","root",""); mysql_select_db("faceback"); if(isset($_POST['delete_chat'])) { $chat_id=intval($_POST['chat_id']); mysql_query("delete from group_chat where chat_id=$chat_id"); } include("background.php"); ?> <html> <head> <title> Group Chat </title> <script> function chat_name_underLine(fid) { document.getElementById("uname"+fid).style.textDecoration = "underline"; } function chat_name_NounderLine(fid) { document.getElementById("uname"+fid).style.textDecoration = "none" } </script> </head> <body> <div style="position:absolute; left:25%; top:10%;"> <img src="img/group.png" height="100" width="100"> </div> <div style="position:absolute; left:35%; top:12%;"> <h1 style="color:#3B59A4;"> Group Chat </h1> </div> <hr style="position:absolute;left:25%;top:25%;height:0.5%;width:50%; border-color:#CCCCCC; box-shadow:0px 5px 5px 0px rgb(0,0,0); "> <?php $que_chat=mysql_query("select * from group_chat order by chat_id desc"); ?> <div style="position:absolute; left:20%; top:40%;"> <table border="0"> <?php while($chat_data=mysql_fetch_array($que_chat)) { $chat_id=$chat_data[0]; $fb_user_id=$chat_data[1]; $chat_txt=$chat_data[2]; $chat_time=$chat_data[3]; $que_fb_user_info=mysql_query("select * from users where user_id=$fb_user_id"); $fb_user_data=mysql_fetch_array($que_fb_user_info); $user_name=$fb_user_data[1]; $user_email=$fb_user_data[2]; $user_gender=$fb_user_data[4]; $que_fb_user_pic=mysql_query("select * from user_profile_pic where user_id=$fb_user_id"); $fetch_user_pic=mysql_fetch_array($que_fb_user_pic); $user_pic=$fetch_user_pic[2]; ?> <tr> <td colspan="3"align="right" style="border-top:outset; border-top-width:thin;"> <form method="post"> <input type="hidden" name="chat_id" value="<?php echo $chat_id; ?>" > <input type="submit" name="delete_chat" value=" " style="background-color:#FFFFFF; border:#FFFFFF; background-image:url(img/delete_post.gif); width:2%;"> </form> </td> <td> </td> </tr> <tr> <td style="padding-left:25;" rowspan="2"> <img src="../../fb_users/<?php echo $user_gender; ?>/<?php echo $user_email; ?>/Profile/<?php echo $user_pic; ?>" height="60" width="55"> </td> <td colspan="2" style="padding:7;"> <a href="../fb_view_profile/view_profile.php?id=<?php echo $fb_user_id; ?>" style="text-transform:capitalize; text-decoration:none; color:#003399;" onMouseOver="chat_name_underLine(<?php echo $chat_id; ?>)" onMouseOut="chat_name_NounderLine(<?php echo $chat_id; ?>)" id="uname<?php echo $chat_id; ?>"> <?php echo $user_name; ?> </a> </td> </tr> <?php $len=strlen($chat_data[2]); if($len>0 && $len<=73) { $line1=substr($chat_data[2],0,73); ?> <tr> <td colspan="2" style="padding-left:7;"><?php echo $line1; ?> </td> <td> </td> </tr> <?php } else if($len>73 && $len<=146) { $line1=substr($chat_data[2],0,73); $line2=substr($chat_data[2],73,73); ?> <tr> <td colspan="2" style="padding-left:7;"><?php echo $line1; ?> </td> <td> </td> </tr> <tr> <td> </td> <td colspan="2" style="padding-left:7;"><?php echo $line2; ?> </td> <td> </td> </tr> <?php } else if($len>146 && $len<=219) { $line1=substr($chat_data[2],0,73); $line2=substr($chat_data[2],73,73); $line3=substr($chat_data[2],146,73); ?> <tr> <td colspan="2" style="padding-left:7;"><?php echo $line1; ?> </td> <td> </td> </tr> <tr> <td> </td> <td colspan="2" style="padding-left:7;"><?php echo $line2; ?> </td> <td> </td> </tr> <tr> <td> </td> <td colspan="2" style="padding-left:7;"><?php echo $line3; ?> </td> <td> </td> </tr> <?php } else if($len>219 && $len<=292) { $line1=substr($chat_data[2],0,73); $line2=substr($chat_data[2],73,73); $line3=substr($chat_data[2],146,73); $line4=substr($chat_data[2],219,73); ?> <tr> <td colspan="2" style="padding-left:7;"><?php echo $line1; ?> </td> <td> </td> </tr> <tr> <td> </td> <td colspan="2" style="padding-left:7;"><?php echo $line2; ?> </td> <td> </td> </tr> <tr> <td> </td> <td colspan="2" style="padding-left:7;"><?php echo $line3; ?> </td> <td> </td> </tr> <tr> <td> </td> <td colspan="2" style="padding-left:7;"><?php echo $line4; ?> </td> <td> </td> </tr> <?php } else if($len>292 && $len<=365) { $line1=substr($chat_data[2],0,73); $line2=substr($chat_data[2],73,73); $line3=substr($chat_data[2],146,73); $line4=substr($chat_data[2],219,73); $line5=substr($chat_data[2],292,73); ?> <tr> <td colspan="2" style="padding-left:7;"><?php echo $line1; ?> </td> <td> </td> </tr> <tr> <td> </td> <td colspan="2" style="padding-left:7;"><?php echo $line2; ?> </td> <td> </td> </tr> <tr> <td> </td> <td colspan="2" style="padding-left:7;"><?php echo $line3; ?> </td> <td> </td> </tr> <tr> <td> </td> <td colspan="2" style="padding-left:7;"><?php echo $line4; ?> </td> <td> </td> </tr> <tr> <td> </td> <td colspan="2" style="padding-left:7;"><?php echo $line5; ?> </td> <td> </td> </tr> <?php } else if($len>365 && $len<=438) { $line1=substr($chat_data[2],0,73); $line2=substr($chat_data[2],73,73); $line3=substr($chat_data[2],146,73); $line4=substr($chat_data[2],219,73); $line5=substr($chat_data[2],292,73); $line6=substr($chat_data[2],365,73); ?> <tr> <td colspan="2" style="padding-left:7;"><?php echo $line1; ?> </td> <td> </td> </tr> <tr> <td></td> <td colspan="2" style="padding-left:7;"><?php echo $line2; ?> </td> <td> </td> </tr> <tr> <td> </td> <td colspan="2" style="padding-left:7;"><?php echo $line3; ?> </td> <td> </td> </tr> <tr> <td> </td> <td colspan="2" style="padding-left:7;"><?php echo $line4; ?> </td> <td> </td> </tr> <tr> <td> </td> <td colspan="2" style="padding-left:7;"><?php echo $line5; ?> </td> <td> </td> </tr> <tr> <td> </td> <td colspan="2" style="padding-left:7;"><?php echo $line6; ?> </td> <td> </td> </tr> <?php } else if($len>438 && $len<=511) { $line1=substr($chat_data[2],0,73); $line2=substr($chat_data[2],73,73); $line3=substr($chat_data[2],146,73); $line4=substr($chat_data[2],219,73); $line5=substr($chat_data[2],292,73); $line6=substr($chat_data[2],365,73); $line7=substr($chat_data[2],438,73); ?> <tr> <td colspan="2" style="padding-left:7;"><?php echo $line1; ?> </td> <td> </td> </tr> <tr> <td> </td> <td colspan="2" style="padding-left:7;"><?php echo $line2; ?> </td> <td> </td> </tr> <tr> <td> </td> <td colspan="2" style="padding-left:7;"><?php echo $line3; ?> </td> <td> </td> </tr> <tr> <td> </td> <td colspan="2" style="padding-left:7;"><?php echo $line4; ?> </td> <td> </td> </tr> <tr> <td> </td> <td colspan="2" style="padding-left:7;"><?php echo $line5; ?> </td> <td> </td> </tr> <tr> <td> </td> <td colspan="2" style="padding-left:7;"><?php echo $line6; ?> </td> <td> </td> </tr> <tr> <td> </td> <td colspan="2" style="padding-left:7;"><?php echo $line7; ?> </td> <td> </td> </tr> <?php } ?> <tr> <td> </td> <td> <span style="color:#CCC;"> <?php echo $chat_time; ?> </span> </td> <td> </td> </tr> <tr></tr><tr></tr><tr></tr><tr></tr><tr></tr><tr></tr><tr></tr><tr></tr><tr></tr><tr></tr><tr></tr><tr></tr> <?php } ?> </table></div> <div style="position:absolute; left:90%; top:100%;" > </div> </body> </html> <?php } else { header("location:../../index.php"); } ?> facebook/facebook/admin/fb_home/Home.php <?php session_start(); error_reporting(1); if(isset($_SESSION['fbadmin'])) { include("background.php"); ?> <?php if(isset($_POST['delete_post'])) { $post_id=intval($_POST['post_id']); mysql_query("delete from user_post where post_id=$post_id;"); } if(isset($_POST['delete_comment'])) { $comm_id=intval($_POST['comm_id']); mysql_query("delete from user_post_comment where comment_id=$comm_id;"); } ?> <html> <head> <title>Home</title> <script src="Home_js/home.js" language="javascript"></script> </head> <body> <div style="position:absolute;left:35%; top:8%;"> <h1> All Public Post </h1> </div> <div style="position:absolute;left:19%; top:20%;"> <table cellspacing="0"> <?php $que_post=mysql_query("select * from user_post where priority='Public' order by post_id desc"); while($post_data=mysql_fetch_array($que_post)) { $postid=$post_data[0]; $post_user_id=$post_data[1]; $post_txt=$post_data[2]; $post_img=$post_data[3]; $que_user_info=mysql_query("select * from users where user_id=$post_user_id"); $que_user_pic=mysql_query("select * from user_profile_pic where user_id=$post_user_id"); $fetch_user_info=mysql_fetch_array($que_user_info); $fetch_user_pic=mysql_fetch_array($que_user_pic); $user_name=$fetch_user_info[1]; $user_Email=$fetch_user_info[2]; $user_gender=$fetch_user_info[4]; $user_pic=$fetch_user_pic[2]; ?> <tr> <td colspan="4"align="right" style="border-top:outset; border-top-width:thin;"> <form method="post"> <input type="hidden" name="post_id" value="<?php echo $postid; ?>" > <input type="submit" name="delete_post" value=" " style="background-color:#FFFFFF; border:#FFFFFF; background-image:url(img/delete_post.gif); width:2.3%;"> </form></a> </td> <td> </td> <td> </td> </tr> <tr> <td width="5%" style="padding-left:25;" rowspan="2"> <img src="../../fb_users/<?php echo $user_gender; ?>/<?php echo $user_Email; ?>/Profile/<?php echo $user_pic; ?>" height="60" width="55"> </td> <td > </td> <td> </td> <td> </td> </tr> <tr> <td colspan="3" style="padding:7;"> <a href="../fb_view_profile/view_profile.php?id=<?php echo $post_user_id; ?>" style="text-transform:capitalize; text-decoration:none; color:#003399;" onMouseOver="post_name_underLine(<?php echo $postid; ?>)" onMouseOut="post_name_NounderLine(<?php echo $postid; ?>)" id="uname<?php echo $postid; ?>"> <?php echo $user_name; ?> </a> </td> <td> </td> <td> </td> <td> </td> </tr> <?php $len=strlen($post_data[2]); if($len>0 && $len<=73) { $line1=substr($post_data[2],0,73); ?> <tr> <td></td> <td colspan="3" style="padding-left:7;"><?php echo $line1; ?> </td> </tr> <?php } else if($len>73 && $len<=146) { $line1=substr($post_data[2],0,73); $line2=substr($post_data[2],73,73); ?> <tr > <td></td> <td colspan="3" style="padding-left:7;"><?php echo $line1; ?> </td> </tr> <tr > <td> </td> <td colspan="3" style="padding-left:7;"><?php echo $line2; ?> </td> </tr> <?php } else if($len>146 && $len<=219) { $line1=substr($post_data[2],0,73); $line2=substr($post_data[2],73,73); $line3=substr($post_data[2],146,73); ?> <tr> <td></td> <td colspan="3" style="padding-left:7;"><?php echo $line1; ?> </td> </tr> <tr> <td></td> <td colspan="3" style="padding-left:7;"><?php echo $line2; ?> </td> </tr> <tr> <td></td> <td colspan="3" style="padding-left:7;"><?php echo $line3; ?> </td> </tr> <?php } else if($len>219 && $len<=292) { $line1=substr($post_data[2],0,73); $line2=substr($post_data[2],73,73); $line3=substr($post_data[2],146,73); $line4=substr($post_data[2],219,73); ?> <tr> <td></td> <td colspan="3" style="padding-left:7;"><?php echo $line1; ?> </td> </tr> <tr> <td></td> <td colspan="3" style="padding-left:7;"><?php echo $line2; ?> </td> </tr> <tr> <td></td> <td colspan="3" style="padding-left:7;"><?php echo $line3; ?> </td> </tr> <tr> <td></td> <td colspan="3" style="padding-left:7;"><?php echo $line4; ?> </td> </tr> <?php } else if($len>292 && $len<=365) { $line1=substr($post_data[2],0,73); $line2=substr($post_data[2],73,73); $line3=substr($post_data[2],146,73); $line4=substr($post_data[2],219,73); $line5=substr($post_data[2],292,73); ?> <tr> <td></td> <td colspan="3" style="padding-left:7;"><?php echo $line1; ?> </td> </tr> <tr> <td></td> <td colspan="3" style="padding-left:7;"><?php echo $line2; ?> </td> </tr> <tr> <td></td> <td colspan="3" style="padding-left:7;"><?php echo $line3; ?> </td> </tr> <tr> <td></td> <td colspan="3" style="padding-left:7;"><?php echo $line4; ?> </td> </tr> <tr> <td></td> <td colspan="3" style="padding-left:7;"><?php echo $line5; ?> </td> </tr> <?php } else if($len>365 && $len<=438) { $line1=substr($post_data[2],0,73); $line2=substr($post_data[2],73,73); $line3=substr($post_data[2],146,73); $line4=substr($post_data[2],219,73); $line5=substr($post_data[2],292,73); $line6=substr($post_data[2],365,73); ?> <tr> <td></td> <td colspan="3" style="padding-left:7;"><?php echo $line1; ?> </td> </tr> <tr> <td></td> <td colspan="3" style="padding-left:7;"><?php echo $line2; ?> </td> </tr> <tr> <td></td> <td colspan="3" style="padding-left:7;"><?php echo $line3; ?> </td> </tr> <tr> <td></td> <td colspan="3" style="padding-left:7;"><?php echo $line4; ?> </td> </tr> <tr> <td></td> <td colspan="3" style="padding-left:7;"><?php echo $line5; ?> </td> </tr> <tr> <td></td> <td colspan="3" style="padding-left:7;"><?php echo $line6; ?> </td> </tr> <?php } else if($len>438 && $len<=511) { $line1=substr($post_data[2],0,73); $line2=substr($post_data[2],73,73); $line3=substr($post_data[2],146,73); $line4=substr($post_data[2],219,73); $line5=substr($post_data[2],292,73); $line6=substr($post_data[2],365,73); $line7=substr($post_data[2],438,73); ?> <tr> <td></td> <td colspan="3" style="padding-left:7;"><?php echo $line1; ?> </td> </tr> <tr> <td></td> <td colspan="3" style="padding-left:7;"><?php echo $line2; ?> </td> </tr> <tr> <td></td> <td colspan="3" style="padding-left:7;"><?php echo $line3; ?> </td> </tr> <tr> <td></td> <td colspan="3" style="padding-left:7;"><?php echo $line4; ?> </td> </tr> <tr> <td></td> <td colspan="3" style="padding-left:7;"><?php echo $line5; ?> </td> </tr> <tr> <td></td> <td colspan="3" style="padding-left:7;"><?php echo $line6; ?> </td> </tr> <tr> <td></td> <td colspan="3" style="padding-left:7;"><?php echo $line7; ?> </td> </tr> <?php } ?> <?php if($post_data[3]!="") { ?> <tr> <td> </td> <td colspan="3"><img src="../../fb_users/<?php echo $user_gender; ?>/<?php echo $user_Email; ?>/Post/<?php echo $post_img; ?>" width="400" height="400"> </td> <td> </td> <td> </td> </tr> <?php } ?> <tr style="color:#6D84C4;"> <td > </td> <td style="padding-top:15;"> <input type="button" value="Like" name="Like" style="border:#FFFFFF; background:#FFFFFF; font-size:15px; color:#6D84C4;" onMouseOver="like_underLine(<?php echo $postid; ?>)" onMouseOut="like_NounderLine(<?php echo $postid; ?>)" id="like<?php echo $postid; ?>"> </td> <?php $que_comment=mysql_query("select * from user_post_comment where post_id =$postid order by comment_id"); $count_comment=mysql_num_rows($que_comment); ?> <td colspan="1" style="padding-top:14.5;"> <input type="button" value="Comment(<?php echo $count_comment; ?>)" style="background:#FFFFFF; border:#FFFFFF;font-size:15px; color:#6D84C4;" onMouseOver="Comment_underLine(<?php echo $postid; ?>)" onMouseOut="Comment_NounderLine(<?php echo $postid; ?>)" id="comment<?php echo $postid; ?>"> <span style="color:#999999;"> <?php echo $post_data[4]; ?> </span> </td> <td> </td> </tr> <tr> <?php $que_like=mysql_query("select * from user_post_status where post_id=$postid"); $count_like=mysql_num_rows($que_like); ?> <tr> <td> </td> <td bgcolor="#EDEFF4" style="width:9;" colspan="3"><img src="img/like.PNG"><span style="color:#6D84C4;"><?php echo $count_like; ?></span> like this. </td> <td> </td> <td> </td> </tr> <tr> <td> </td> <td> </td> <td> </td> <td> </td> </tr> <?php while($comment_data=mysql_fetch_array($que_comment)) { $comment_id=$comment_data[0]; $comment_user_id=$comment_data[2]; $que_user_info1=mysql_query("select * from users where user_id=$comment_user_id"); $que_user_pic1=mysql_query("select * from user_profile_pic where user_id=$comment_user_id"); $fetch_user_info1=mysql_fetch_array($que_user_info1); $fetch_user_pic1=mysql_fetch_array($que_user_pic1); $user_name1=$fetch_user_info1[1]; $user_Email1=$fetch_user_info1[2]; $user_gender1=$fetch_user_info1[4]; $user_pic1=$fetch_user_pic1[2]; ?> <tr> <td> </td> <td width="4%" bgcolor="#EDEFF4" style="padding-left:12;" rowspan="2"> <img src="../../fb_users/<?php echo $user_gender1; ?>/<?php echo $user_Email1; ?>/Profile/<?php echo $user_pic1; ?>" height="40" width="47"> </td> <td bgcolor="#EDEFF4" style="padding-left:7;" > <a href="../fb_view_profile/view_profile.php?id=<?php echo $comment_user_id; ?>" style="text-transform:capitalize; text-decoration:none; color:#3B5998;" onMouseOver="Comment_name_underLine(<?php echo $comment_id; ?>)" onMouseOut="Comment_name_NounderLine(<?php echo $comment_id; ?>)" id="cuname<?php echo $comment_id; ?>"> <?php echo $user_name1; ?></a> </td> <td align="right" rowspan="2" bgcolor="#EDEFF4"> <form method="post"> <input type="hidden" name="comm_id" value="<?php echo $comment_id; ?>" > <input type="submit" name="delete_comment" value=" " style="background-color:#FFFFFF; border:#FFFFFF; background-image:url(img/delete_comment.gif); width:13; height:13;"> </form> </td> </tr> <?php $clen=strlen($comment_data[3]); if($clen>0 && $clen<=60) { $cline1=substr($comment_data[3],0,60); ?> <tr> <td> </td> <td bgcolor="#EDEFF4" style="padding-left:7;" colspan="2"> <?php echo $cline1; ?></td> </tr> <?php } else if($clen>60 && $clen<=120) { $cline1=substr($comment_data[3],0,60); $cline2=substr($comment_data[3],60,60); ?> <tr> <td> </td> <td bgcolor="#EDEFF4" style="padding-left:7;" colspan="2"> <?php echo $cline1; ?></td> </tr> <tr> <td> </td> <td bgcolor="#EDEFF4"> </td> <td bgcolor="#EDEFF4" style="padding-left:7;" colspan="2"> <?php echo $cline2; ?></td> </tr> <?php } else if($clen>120 && $clen<=180) { $cline1=substr($comment_data[3],0,60); $cline2=substr($comment_data[3],60,60); $cline3=substr($comment_data[3],120,60); ?> <tr> <td> </td> <td bgcolor="#EDEFF4" style="padding-left:7;" colspan="2"> <?php echo $cline1; ?></td> </tr> <tr> <td> </td> <td bgcolor="#EDEFF4"> </td> <td bgcolor="#EDEFF4" style="padding-left:7;" colspan="2"> <?php echo $cline2; ?></td> </tr> <tr> <td> </td> <td bgcolor="#EDEFF4"> </td> <td bgcolor="#EDEFF4" style="padding-left:7;" colspan="2"> <?php echo $cline3; ?></td> </tr> <?php } else if($clen>180 && $clen<=240) { $cline1=substr($comment_data[3],0,60); $cline2=substr($comment_data[3],60,60); $cline3=substr($comment_data[3],120,60); $cline4=substr($comment_data[3],180,60); ?> <tr> <td> </td> <td bgcolor="#EDEFF4" style="padding-left:7;" colspan="2"> <?php echo $cline1; ?></td> </tr> <tr> <td> </td> <td bgcolor="#EDEFF4"> </td> <td bgcolor="#EDEFF4" style="padding-left:7;" colspan="2"> <?php echo $cline2; ?></td> </tr> <tr> <td> </td> <td bgcolor="#EDEFF4"> </td> <td bgcolor="#EDEFF4" style="padding-left:7;" colspan="2"> <?php echo $cline3; ?></td> </tr> <tr> <td> </td> <td bgcolor="#EDEFF4"> </td> <td bgcolor="#EDEFF4" style="padding-left:7;" colspan="2"> <?php echo $cline4; ?></td> </tr> <?php } else if($clen>240 && $clen<=300) { $cline1=substr($comment_data[3],0,60); $cline2=substr($comment_data[3],60,60); $cline3=substr($comment_data[3],120,60); $cline4=substr($comment_data[3],180,60); $cline5=substr($comment_data[3],240,60); ?> <tr> <td> </td> <td bgcolor="#EDEFF4" style="padding-left:7;" colspan="2"> <?php echo $cline1; ?></td> </tr> <tr> <td> </td> <td bgcolor="#EDEFF4"> </td> <td bgcolor="#EDEFF4" style="padding-left:7;" colspan="2"> <?php echo $cline2; ?></td> </tr> <tr> <td> </td> <td bgcolor="#EDEFF4"> </td> <td bgcolor="#EDEFF4" style="padding-left:7;" colspan="2"> <?php echo $cline3; ?></td> </tr> <tr> <td> </td> <td bgcolor="#EDEFF4"> </td> <td bgcolor="#EDEFF4" style="padding-left:7;" colspan="2"> <?php echo $cline4; ?></td> </tr> <tr> <td> </td> <td bgcolor="#EDEFF4"> </td> <td bgcolor="#EDEFF4" style="padding-left:7;" colspan="2"> <?php echo $cline5; ?></td> </tr> <?php } else if($clen>300 && $clen<=360) { $cline1=substr($comment_data[3],0,60); $cline2=substr($comment_data[3],60,60); $cline3=substr($comment_data[3],120,60); $cline4=substr($comment_data[3],180,60); $cline5=substr($comment_data[3],240,60); $cline6=substr($comment_data[3],300,60); ?> <tr> <td> </td> <td bgcolor="#EDEFF4" style="padding-left:7;" colspan="2"> <?php echo $cline1; ?></td> </tr> <tr> <td> </td> <td bgcolor="#EDEFF4"> </td> <td bgcolor="#EDEFF4" style="padding-left:7;" colspan="2"> <?php echo $cline2; ?></td> </tr> <tr> <td> </td> <td bgcolor="#EDEFF4"> </td> <td bgcolor="#EDEFF4" style="padding-left:7;" colspan="2"> <?php echo $cline3; ?></td> </tr> <tr> <td> </td> <td bgcolor="#EDEFF4"> </td> <td bgcolor="#EDEFF4" style="padding-left:7;" colspan="2"> <?php echo $cline4; ?></td> </tr> <tr> <td> </td> <td bgcolor="#EDEFF4"> </td> <td bgcolor="#EDEFF4" style="padding-left:7;" colspan="2"> <?php echo $cline5; ?></td> </tr> <tr> <td> </td> <td bgcolor="#EDEFF4"> </td> <td bgcolor="#EDEFF4" style="padding-left:7;" colspan="2"> <?php echo $cline6; ?></td> </tr> <?php } else if($clen>360 && $clen<=420) { $cline1=substr($comment_data[3],0,60); $cline2=substr($comment_data[3],60,60); $cline3=substr($comment_data[3],120,60); $cline4=substr($comment_data[3],180,60); $cline5=substr($comment_data[3],240,60); $cline6=substr($comment_data[3],300,60); $cline7=substr($comment_data[3],360,60); ?> <tr> <td> </td> <td bgcolor="#EDEFF4" style="padding-left:7;" colspan="2"> <?php echo $cline1; ?></td> </tr> <tr> <td> </td> <td bgcolor="#EDEFF4"> </td> <td bgcolor="#EDEFF4" style="padding-left:7;" colspan="2"> <?php echo $cline2; ?></td> </tr> <tr> <td> </td> <td bgcolor="#EDEFF4"> </td> <td bgcolor="#EDEFF4" style="padding-left:7;" colspan="2"> <?php echo $cline3; ?></td> </tr> <tr> <td> </td> <td bgcolor="#EDEFF4"> </td> <td bgcolor="#EDEFF4" style="padding-left:7;" colspan="2"> <?php echo $cline4; ?></td> </tr> <tr> <td> </td> <td bgcolor="#EDEFF4"> </td> <td bgcolor="#EDEFF4" style="padding-left:7;" colspan="2"> <?php echo $cline5; ?></td> </tr> <tr> <td> </td> <td bgcolor="#EDEFF4"> </td> <td bgcolor="#EDEFF4" style="padding-left:7;" colspan="2"> <?php echo $cline6; ?></td> </tr> <tr> <td> </td> <td bgcolor="#EDEFF4"> </td> <td bgcolor="#EDEFF4" style="padding-left:7;" colspan="2"> <?php echo $cline7; ?></td> </tr> <?php } ?> <?php } ?> <tr><td></td><td></td><td></td><td></td></tr><tr><td></td><td></td><td></td><td></td></tr><tr><td></td><td></td><td></td><td></td></tr><tr><td></td><td></td><td></td><td></td></tr><tr><td></td><td></td><td></td><td></td></tr><tr><td></td><td></td><td></td><td></td></tr><tr><td></td><td></td><td></td><td></td></tr><tr><td></td><td></td><td></td><td></td></tr><tr><td></td><td></td><td></td><td></td></tr><tr><td></td><td></td><td></td><td></td></tr><tr><td></td><td></td><td></td><td></td></tr><tr><td></td><td></td><td></td><td></td></tr><tr><td></td><td></td><td></td><td></td></tr><tr><td></td><td></td><td></td><td></td></tr> <?php } ?> </table> </div> </body> </html> <?php } else { header("location:../../index.php"); } ?> facebook/facebook/admin/fb_home/Home_js/home.js function capital_post_txt() { document.posting_txt.post_txt.style.textTransform="capitalize"; } function capital_post_pic_txt() { document.posting_pic.post_txt.style.textTransform="capitalize"; } function post_name_underLine(pid) { document.getElementById("uname"+pid).style.textDecoration = "underline"; } function post_name_NounderLine(pid) { document.getElementById("uname"+pid).style.textDecoration = "none" } function like_underLine(pid) { document.getElementById("like"+pid).style.textDecoration = "underline"; } function like_NounderLine(pid) { document.getElementById("like"+pid).style.textDecoration = "none" } function Comment_underLine(pid) { document.getElementById("comment"+pid).style.textDecoration = "underline"; } function Comment_NounderLine(pid) { document.getElementById("comment"+pid).style.textDecoration = "none" } function Comment_name_underLine(cid) { document.getElementById("cuname"+cid).style.textDecoration = "underline"; } function Comment_name_NounderLine(cid) { document.getElementById("cuname"+cid).style.textDecoration = "none" } facebook/facebook/admin/fb_home/img/about.png facebook/facebook/admin/fb_home/img/admin.png facebook/facebook/admin/fb_home/img/all_users.png facebook/facebook/admin/fb_home/img/delete_comment.gif facebook/facebook/admin/fb_home/img/delete_post.gif facebook/facebook/admin/fb_home/img/edit-icon.png facebook/facebook/admin/fb_home/img/female.png facebook/facebook/admin/fb_home/img/group.png facebook/facebook/admin/fb_home/img/icon-feedback.png facebook/facebook/admin/fb_home/img/images.jpg facebook/facebook/admin/fb_home/img/like.PNG facebook/facebook/admin/fb_home/img/male.png facebook/facebook/admin/fb_home/img/News_Feed.PNG facebook/facebook/admin/fb_home/img/Notice.png facebook/facebook/admin/fb_home/img/settings.png facebook/facebook/admin/fb_home/img/settings2.png facebook/facebook/admin/fb_home/img/star.png facebook/facebook/admin/fb_home/img/Thumbs.db facebook/facebook/admin/fb_home/img/users.png facebook/facebook/admin/fb_home/Notice.php <?php session_start(); error_reporting(1); if(isset($_SESSION['fbadmin'])) { mysql_connect("localhost","root",""); mysql_select_db("faceback"); if(isset($_POST['notice_users'])) { $notice_txt=$_POST['notice_txt']; $notice_time=$_POST['notice_time']; $que_users=mysql_query("select * from users"); while($users_data=mysql_fetch_array($que_users)) { $user_id=$users_data[0]; mysql_query("insert into users_notice(user_id,notice_txt,notice_time) values($user_id,'$notice_txt','$notice_time')"); } } include("background.php"); ?> <html> <head> <title> Notice </title> <script> function time_get() { d = new Date(); mon = d.getMonth()+1; time = d.getDate()+"-"+mon+"-"+d.getFullYear()+" "+d.getHours()+":"+d.getMinutes(); notice_form.notice_time.value=time; } </script> </head> <body> <!--notice--> <script> function open_notice_form() { document.getElementById("notice_form").style.display='block'; } function close_notice_form() { document.getElementById("notice_form").style.display='none'; } </script> <style> #notice_button { font-size:18px; height:50; width:100; padding:2; background-color:#5B74A8; color:#FFFFFF; border-top:#29447E; border-right-color:#29447E; border-bottom-color:#1A356E; border-left-color:#29447E; font-weight:bold; box-shadow:0px 0px 10px 1px rgb(0,0,0); } </style> <!--notice --> <div style="position:absolute; left:37%; top:10%;"> <img src="img/Notice.png" height="100" width="100"></div> <div style="position:absolute; left:45%; top:10%; color:#3B59A4; font-size:72px;"> Notice </div> <hr style="position:absolute;left:25%;top:27%;height:0.5%;width:50%; border-color:#CCCCCC; box-shadow:0px 5px 5px 0px rgb(0,0,0); "> <div style="position:absolute; left:30%; top:35%; "> <img src="img/users.png" height="180" width="180"> </div> <div style="position:absolute; left:45%; top:42%; text-transform:capitalize; font-size:48;"> All Users </div> <form method="post" name="notice_form"> <div style="position:absolute; left:20%; top:72%; "> <input type="text" style="height:50; width:800; font-size:20px; color:#3B59A4;" name="notice_txt" maxlength="90" placeholder="Write a notice.."> </div> <input type="hidden" name="notice_time"> <div style="position:absolute; left:72%; top:83%; "> <input type="submit" name="notice_users" value="Notice" id="notice_button" onClick="time_get()"> </div> </form> <div style="position:absolute; left:90%; top:100%;" > </div> </body> </html> <?php } else { header("location:../../index.php"); } ?> facebook/facebook/admin/fb_home/Search_Display.php People See more results facebook/facebook/admin/fb_home/Search_Display_submit.php <?php session_start(); error_reporting(1); if(isset($_SESSION['fbadmin'])) { include("background.php"); $id=$_GET['search1']; ?> <html> <head> <title> <?php echo $id; ?> </title> </head> <body> <?php mysql_connect("localhost","root",""); mysql_select_db("faceback"); if($id!='') { $query1=mysql_query("select * from users where Name like('%$id%')"); $count1=mysql_num_rows($query1); ?> <div style="position:absolute; left:22.3%;top:10.5%; z-index:-1;"> <img src="background_file/background_icons/Search1.png" height="25" width="25" /> </div> <div style="position:absolute; left:25%;top:7%; z-index:-1;"> <h2> All results </h2> </div> <hr style="position:absolute;left:22%;top:15%;height:0;width:55%; border-color:#CCCCCC;"> <div style="position:absolute;left:22%;top:20%; z-index:-1;"> <table cellspacing="0" border="0"> <?php while($rec1=mysql_fetch_array($query1)) { $uid=$rec1[0]; $name=$rec1[1]; $gender=$rec1[4]; $userid=$rec1[0]; $email=$rec1[2]; $query2=mysql_query("select * from user_profile_pic where user_id=$userid"); $rec2=mysql_fetch_array($query2); $img=$rec2[2]; ?> <tr> <td bgcolor="#FFFFFF" style="padding-right:7;" id="Photo1<?php echo $uid ?>"> <a href="../fb_view_profile/view_profile.php?id=<?php echo $uid; ?>"> <img src="../../fb_users/<?php echo $gender; ?>/<?php echo $email; ?>/Profile/<?php echo $img; ?>" style="height:70; width:70;"> </a> </td> <td onMouseOver="serched_name_over1(<?php echo $uid;?>)" onMouseOut="serched_name_out1(<?php echo $uid;?>)" width="500" bgcolor="#FFFFFF" id="Name_bg1<?php echo $uid; ?>"> <a href="../fb_view_profile/view_profile.php?id=<?php echo $uid; ?>" style=" text-decoration:none; text-transform:capitalize; color:#3B5998;" id="Name_font1<?php echo $uid;?>"> <?php echo $name; ?></a></td> </tr> <tr> <td colspan="2"> <hr style="border-color:#CCCCCC;"> </td> </tr> <?php } ?> </table> </div> <?php } if($count1==0) { ?> <div style="position:absolute; left:22%; top:20%; background-color:#FFF9D7; height:8%; width:40%; box-shadow:0px 0px 10px 1px rgb(0,0,0);"> </div> <div style="position:absolute; left:22%; top:20%; background-color:#E2C822; height:0.2%; width:40%;"> </div> <div style="position:absolute; left:22%; top:20%; background-color:#E2C822; height:8%; width:0.1%;"> </div> <div style="position:absolute; left:22%; top:27.9%; background-color:#E2C822; height:0.2%; width:40%;"> </div> <div style="position:absolute; left:62%; top:20%; background-color:#E2C822; height:8%; width:0.1%;"> </div> <div style="position:absolute; left:23%; top:17.5%;"> <h4> No results found for your query. </h4> </div> <div style="position:absolute; left:23%; top:24%; color:#808080;"> Check your spelling or try another term. </div> <?php } ?> <div style="position:absolute; left:90%; top:100%;" > </div> </body> </html> <?php } else { header("location:../../index.php"); } ?> facebook/facebook/admin/fb_home/Settings.php <?php session_start(); error_reporting(1); if(isset($_SESSION['fbadmin'])) { mysql_connect("localhost","root",""); mysql_select_db("faceback"); $admin_user=$_SESSION['fbadmin']; $que_admin_info=mysql_query("select * from admin_info where Username='$admin_user'"); $que_admin_data=mysql_fetch_array($que_admin_info); $admin_password=$que_admin_data[1]; ?> <?php if(isset($_POST['change_password'])) { $old_password=md5($_POST['old_password']); $new_password=md5($_POST['new_password']); if($admin_password==$old_password) { mysql_query("update admin_info set Password='$new_password' where Username='$admin_user'"); } else { echo " <script> alert('old password Wrong') </script>"; } } ?> <?php include("background.php"); ?> <html> <head> <title>Settings</title> <link href="Settings_css/Settings.css" rel="stylesheet" type="text/css"> <script type="text/javascript" src="Settings_js/Settings.js"> </script> </head> <body> <div style="position:absolute; left:25%; top:20%; color:#3B59A4; font-size:24px;"> Paasword </div> <div style="position:absolute; left:34%; top:20%; color:#909DB2; font-size:24px;"> ******** </div> <div style="position:absolute; left:70%; top:15%"> <img src="img/edit-icon.png" height="70" width="70" onClick="Change_password()"> </div> <hr style="position:absolute;left:25%;top:26%;height:0.5%;width:50%; border-color:#CCCCCC; box-shadow:0px 5px 5px 0px rgb(0,0,0); "> <!--password change dailog box--> <div style="display:none;" id="change_password_dailogbox"> <div style="position:fixed; background:#3A3E41; opacity: 0.8; left:0%; top:0%; height:100%; width:100%; z-index:3" onClick="hide_password_change_box()"></div> <div style="position:fixed; background:#3B5998; left:30%; top:20%; height:10%; width:35%; z-index:3"></div> <div style="position:fixed; left:35%; top:21.5%; z-index:3"> <img src="img/settings.png" height="50" width="50"> </div> <div style="position:fixed; left:40%; top:19%; z-index:3"> <h1 style="color:#FFFFFF;"> Change Password </h1> </div> <div style="position:fixed; left:63.7%; top:19%; z-index:4"> <input type="button" style="height:22; width:22; background:url(img/exit.png); no-repeat; border:none;" onClick="hide_password_change_box()"> </div> <form method="post" name="password_change" onSubmit="return password_check()"> <div style="position:fixed; left:33%; top:34%; z-index:4; font-size:18px;"> Old Password </div> <div style="position:fixed; left:44%; top:33.5%; z-index:4;"> <input type="password" name="old_password" style="height:30; width:240; font-size:18px;" maxlength="30" > </div> <div style="position:fixed; left:33%; top:41%; z-index:4; font-size:18px;"> New Password </div> <div style="position:fixed; left:44%; top:40.5%; z-index:4;"> <input type="password" name="new_password" style="height:30; width:240; font-size:18px;" maxlength="30"> </div> <div style="position:fixed; left:33%; top:48%; z-index:4; font-size:18px;"> Conform Password </div> <div style="position:fixed; left:44%; top:47.5%; z-index:4;"> <input type="password" name="c_password" style="height:30; width:240; font-size:18px;" maxlength="30"> </div> <div style="position:fixed; left:44%; top:55.3%; z-index:4;"> <input type="submit" value="Change" name="change_password" id="change_button"> </div> </form> <div style="position:fixed; background:#FFFFFF; left:30%; top:30%; height:37%; width:35%; z-index:3"></div> <div style="position:fixed;left:30.1%;top:62%; height:6%; width:34.9%; background:#E9EAED; z-index:3; "> </div> <!--password change dailog box boder--> <div style="position:fixed;left:29.9%; top:20%; height:0.7%; width:35.1%; background-color:#666666; z-index:3; box-shadow:0px -6px 10px 1px rgb(0,0,0); "> </div> <div style="position:fixed;left:29.9%; top:20%; height:48.1%; width:0.3%; background-color:#666666; z-index:3; box-shadow:-5px 0px 10px 1px rgb(0,0,0); "> </div> <div style="position:fixed;left:29.9%; top:68.1%; height:0.7%; width:35.1%; background-color:#666666; z-index:3; box-shadow:0px 6px 10px 1px rgb(0,0,0); "> </div> <div style="position:fixed;left:64.7%; top:20%; height:48.1%; width:0.3%; background-color:#666666; z-index:3;box-shadow:5px 0px 10px 1px rgb(0,0,0); "> </div> </div> <?php include("Settings_error/Settings_error.php"); ?> <div style="position:absolute; left:90%; top:100%;" > </div> </body> </html> <?php } else { header("location:../../index.php"); } ?> facebook/facebook/admin/fb_home/Settings_css/Settings.css #change_button { font-size:14px; height:30; width:67; padding:2; background-color:#5B74A8; color:#FFFFFF; border-top:#29447E; border-right-color:#29447E; border-bottom-color:#1A356E; border-left-color:#29447E; font-weight:bold; box-shadow:0px 0px 5px 1px rgb(0,0,0); } facebook/facebook/admin/fb_home/Settings_error/Settings_error.php You must fill in all of the fields. Your password do not match. Please try again. Your password must be at least 6 characters long. Please try another. facebook/facebook/admin/fb_home/Settings_js/Settings.js function Change_password() { document.getElementById("change_password_dailogbox").style.display='block'; } function hide_password_change_box() { document.getElementById("change_password_dailogbox").style.display='none'; document.getElementById("error_design_format1").style.display='none'; document.getElementById("not_match_error").style.display='none'; document.getElementById("not_valid_error").style.display='none'; document.getElementById("blank_error").style.display='none'; } function password_check() { var old_pass=password_change.old_password.value; var new_pass=password_change.new_password.value; var c_pass=password_change.c_password.value; for(i=0;i<password_change.length;i++) { if(password_change[i].value=="") { document.getElementById("error_design_format1").style.display='block'; document.getElementById("not_match_error").style.display='none'; document.getElementById("not_valid_error").style.display='none'; document.getElementById("blank_error").style.display='block'; password_change[i].focus(); return false; } } if(new_pass!=c_pass) { document.getElementById("error_design_format1").style.display='block'; document.getElementById("blank_error").style.display='none'; document.getElementById("not_valid_error").style.display='none'; document.getElementById("not_match_error").style.display='block'; password_change.c_password.focus(); return false; } if(old_pass.length<=5 || new_pass.length<=5 || c_pass.length<=5) { document.getElementById("error_design_format1").style.display='block'; document.getElementById("not_match_error").style.display='none'; document.getElementById("blank_error").style.display='none'; document.getElementById("not_valid_error").style.display='block'; return false; } } facebook/facebook/admin/fb_home/users.php <?php session_start(); error_reporting(1); if(isset($_SESSION['fbadmin'])) { mysql_connect("localhost","root",""); mysql_select_db("faceback"); ?> <?php if(isset($_POST['mdelete'])) { $dm_id=intval($_POST['user_male_id']); mysql_query("delete from users where user_id=$dm_id"); } if(isset($_POST['fdelete'])) { $df_id=intval($_POST['user_female_id']); mysql_query("delete from users where user_id=$df_id"); } ?> <?php include("background.php"); ?> <html> <head> <title>Users</title> <script> function user_name_underLine(uid) { document.getElementById("uname"+uid).style.textDecoration = "underline"; } function user_name_NounderLine(uid) { document.getElementById("uname"+uid).style.textDecoration = "none" } </script> </head> <body> <?php $all_users_que=mysql_query("select * from users"); $all_count=mysql_num_rows($all_users_que); ?> <div style="position:absolute; left:27%; top:10%;"> <img src="img/all_users.png" height="100" width="100"> </div> <div style="position:absolute; left:35%; top:12%;"> <h1 style="color:#3B59A4;"> All Users(<span style="color:#999;"><?php echo $all_count; ?></span>) </h1> </div> <hr style="position:absolute;left:25%;top:25%;height:0.5%;width:50%; border-color:#CCCCCC; box-shadow:0px 5px 5px 0px rgb(0,0,0); "> <?php $all_male_que=mysql_query("select * from users where Gender='Male' order by user_id desc"); $all_male_count=mysql_num_rows($all_male_que); ?> <div style="position:absolute; left:26%; top:42%;"> <img src="img/male.png" height="60" width="60"> </div> <div style="position:absolute; left:30.5%; top:42%;"> <h2> Male(<span style="color:#999;"><?php echo $all_male_count; ?></span>) </h2> </div> <div style="position:absolute; left:19%; top:55%;"> <table border="1"> <tr> <th> User ID</th> <th> Name </th> <th> Fb join Date</th> <th> Delete </th> </tr> <?php while($male_info=mysql_fetch_array($all_male_que)) { ?> <tr> <td> <?php echo $male_info[0]; ?> </td> <td> <a href="../fb_view_profile/view_profile.php?id=<?php echo $male_info[0]; ?>" style="text-transform:capitalize; color:#3B59A4; text-decoration:none;" onMouseOver="user_name_underLine(<?php echo $male_info[0]; ?>)" onMouseOut="user_name_NounderLine(<?php echo $male_info[0]; ?>)" id="uname<?php echo $male_info[0]; ?>"> <?php echo $male_info[1]; ?> </a> </td> <td> <?php echo $male_info[6]; ?> </td> <td style="padding-left:13; padding-top:8;"> <form method="post"> <input type="hidden" name="user_male_id" value="<?php echo $male_info[0]; ?>"> <input type="submit" name="mdelete" value="" style="background-image:url(img/delete_post.gif); background-color:#FFF; border:none; width:16"> </form> </td> </tr> <?php } ?> </table> </div> <?php $all_female_que=mysql_query("select * from users where Gender='Female' order by user_id desc"); $all_female_count=mysql_num_rows($all_female_que); ?> <div style="position:absolute; left:58%; top:42%;"> <img src="img/female.png" height="60" width="60"> </div> <div style="position:absolute; left:63%; top:42%;"> <h2> Female(<span style="color:#999;"><?php echo $all_female_count; ?></span>) </h2> </div> <div style="position:absolute; left:53%; top:55%;"> <table border="1"> <tr> <th> User ID</th> <th> Name </th> <th> Fb join Date</th> <th> Delete </th> </tr> <?php while($female_info=mysql_fetch_array($all_female_que)) { ?> <tr> <td> <?php echo $female_info[0]; ?> </td> <td> <a href="../fb_view_profile/view_profile.php?id=<?php echo $female_info[0]; ?>" style="text-transform:capitalize; color:#3B59A4; text-decoration:none;" onMouseOver="user_name_underLine(<?php echo $female_info[0]; ?>)" onMouseOut="user_name_NounderLine(<?php echo $female_info[0]; ?>)" id="uname<?php echo $female_info[0]; ?>"> <?php echo $female_info[1]; ?> </a> </td> <td> <?php echo $female_info[6]; ?> </td> <td style="padding-left:13; padding-top:8;"> <form method="post"> <input type="hidden" name="user_female_id" value="<?php echo $female_info[0]; ?>"> <input type="submit" name="fdelete" value="" style="background-image:url(img/delete_post.gif); background-color:#FFF; border:none; width:16"> </form> </td> </tr> <?php } ?> </table> </div> <div style="position:absolute; left:90%; top:100%;" > </div> </body> </html> <?php } else { header("location:../../index.php"); } ?> facebook/facebook/admin/fb_logout/logout.php <?php session_start(); unset($_SESSION['fbadmin']); //session_destroy(); header("location:../../index.php"); ?> facebook/facebook/admin/fb_view_profile/about.php <?php session_start(); error_reporting(1); if(isset($_SESSION['fbadmin'])) { $v_user_id=$_GET['id']; mysql_connect("localhost","root",""); mysql_select_db("faceback"); $query1=mysql_query("select * from users where user_id=$v_user_id"); $rec1=mysql_fetch_array($query1); $userid=$rec1[0]; ?> <?php if(isset($_POST['work_sub'])) { $u_job=$_POST['job']; $u_edu=$_POST['edu']; mysql_query("update user_info set job='$u_job',school_or_collage='$u_edu' where user_id=$userid;"); } if(isset($_POST['leving_sub'])) { $u_city=$_POST['city']; $u_hometown=$_POST['hometown']; mysql_query("update user_info set current_city='$u_city',hometown='$u_hometown' where user_id=$userid;"); } if(isset($_POST['basic_sub'])) { if($_POST['day']=='Day:' && $_POST['month']=='Month:' && $_POST['year']=='Year:') { $u_relationship=$_POST['relationship']; mysql_query("update user_info set relationship_status='$u_relationship' where user_id=$userid;"); } else { $day=intval($_POST['day']); $month=intval($_POST['month']); $year=intval($_POST['year']); if(checkdate($month,$day,$year)) { $u_relationship=$_POST['relationship']; $u_birthday_date=$_POST['day'].'-'.$_POST['month'].'-'.$_POST['year']; mysql_query("update user_info set relationship_status='$u_relationship' where user_id=$userid;"); mysql_query("update users set Birthday_Date='$u_birthday_date' where user_id=$userid;"); } else { echo "<script> alert('The selected date is not valid.'); </script>"; } } } if(isset($_POST['contact_sub'])) { $u_m_no=$_POST['mno']; $u_priority=$_POST['priority']; $u_web=$_POST['web']; $u_fb_id=$_POST['fbid']; mysql_query("update user_info set mobile_no='$u_m_no',mobile_no_priority='$u_priority',website='$u_web',Facebook_ID='$u_fb_id' where user_id=$userid;"); } include("background.php"); $user_info_query=mysql_query("select * from user_info where user_id=$userid"); $user_info_data=mysql_fetch_array($user_info_query); ?> <html> <head> <title><?php echo $name; ?></title> <link href="about_css/about.css" rel="stylesheet" type="text/css"> <script src="about_js/about.js"></script> </head> <body bgcolor="#E9EAED"> <div style="position:absolute;left:30%; display:none; top:51%; height:9.8%; width:6.9%; background-color:#F6F7F8; z-index:1;" id="timeline_txt_background"> </div> <div style="position:absolute;left:31.5%; top:54%; font-weight:bold; z-index:1;"> <a href="view_profile.php?id=<?php echo $v_user_id; ?>" style="text-decoration:none; color:#3B59B0;" onMouseOver="on_timeline_txt();" onMouseOut="out_timeline_txt();"> Timeline </a> </div> <div style="position:absolute;left:38.3%; top:54%; font-weight:bold; z-index:1;"> About </div> <div style="position:absolute;left:43.1%; display:none; top:51%; height:9.8%; width:8.4%; background-color:#F6F7F8; z-index:1;" id="photos_txt_background"> </div> <div style="position:absolute;left:44.7%; top:54%; font-weight:bold; z-index:1; color:#3B59B0;"> <a href="photos.php?id=<?php echo $v_user_id; ?>" style="text-decoration:none; color:#3B59B0;" onMouseOver="on_photos_txt();" onMouseOut="out_photos_txt();"> Photos </a> <samp style="color:#717171;"> <?php echo $photos_count; ?> </samp> </div> <div style="position:absolute;left:15%;top:68%;height:12%;width:70%; background-color:#F6F7F8; box-shadow:0px -1px 5px 1px rgb(0,0,0);"> </div> <div style="position:absolute;left:16%;top:69%;"> <img src="img/about1.PNG"> </div> <div style="position:absolute;left:19%;top:66.3%;"> <h2> About </h2> </div> <div style="position:absolute;left:15%; top:80%; height:125%; width:70%; background:#FFF; box-shadow:0px -1px 5px 1px rgb(0,0,0); z-index:-1;"> </div> <!--Work and education--> <div style="position:absolute;left:17%;top:85%;"> <h3> Work and education </h3> </div> <div id="work_static" onClick="work_static_hide()"> <div style="position:absolute;left:19%;top:97%;"> <img src="img/job.PNG"> </div> <?php $job=$user_info_data[1]; $school_or_collage=$user_info_data[2]; if($job!="") { ?> <div style="position:absolute;left:26%;top:101%; color:#000; font-weight:bold;"> <?php echo $job; ?> </div> <?php } else { ?> <div style="position:absolute;left:26%;top:101%; color:#3B59A4; font-weight:bold; "> Add a job </div> <?php } ?> <div style="position:absolute;left:19%;top:115%;"> <img src="img/school.PNG"> </div> <?php if($school_or_collage!="") { ?> <div style="position:absolute;left:26%;top:119%; color:#000; font-weight:bold;"> <?php echo $school_or_collage; ?> </div> <?php } else { ?> <div style="position:absolute;left:26%;top:119%; color:#3B59A4; font-weight:bold;"> Add a school or college </div> <?php } ?> <div style="position:absolute;left:43.5%;top:87.5%;"> <input type="button" style="background-image:url(img/edit_button.PNG); border:none; height:24;" value=" " onClick="work_static_hide()"> </div> </div> <form method="post" style="display:none" id="Work_form"> <div style="position:absolute;left:19%;top:94%;color:#3B59A4;"> Job </div> <div style="position:absolute;left:19%;top:98.5%;"> <input type="text" value="<?php echo $job; ?>" name="job" style="height:33;width:350;font-size:16px;" maxlength="35"> </div> <div style="position:absolute;left:19%;top:108%;color:#3B59A4;"> School or College </div> <div style="position:absolute;left:19%;top:112.5%;"> <input type="text" value="<?php echo $school_or_collage; ?>" name="edu" maxlength="35" style="height:33;width:350;font-size:16px;"> </div> <div style="position:absolute;left:24%;top:122%;"> <input type="submit" value="Save" name="work_sub" class="save_button" > </div> <div style="position:absolute;left:32%;top:122%;"> <input type="button" value="Cancel" class="cancel_button" onClick="work_form_hide()"> </div> </form> <div style="position:absolute;left:48.2%; top:82%; height:120%; width:0.05%; background:#CCC;"> </div> <!--Living--> <div style="position:absolute;left:51%;top:85%;"> <h3> Living </h3> </div> <div id="Living_static" onClick="Living_static_hide()"> <div style="position:absolute;left:53%;top:97%;"> <img src="img/city.PNG"> </div> <?php $city=$user_info_data[3]; if($city!="") { ?> <div style="position:absolute;left:60%;top:101%; color:#000; font-weight:bold;text-transform:capitalize;"> <?php echo $city; ?> </div> <?php } else { ?> <div style="position:absolute;left:60%;top:101%; color:#3B59A4; font-weight:bold;"> Add Your Current City </div> <?php } ?> <div style="position:absolute;left:53%;top:115%;"> <img src="img/hometown.PNG"> </div> <?php $hometown=$user_info_data[4]; if($hometown!="") { ?> <div style="position:absolute;left:60%;top:119%; color:#000; font-weight:bold; text-transform:capitalize;"> <?php echo $hometown; ?> </div> <?php } else { ?> <div style="position:absolute;left:60%;top:119%; color:#3B59A4; font-weight:bold;"> Add your hometown </div> <?php } ?> <div style="position:absolute;left:80%;top:87.5%;"> <input type="button" style="background-image:url(img/edit_button.PNG); border:none; height:24;" value=" " onClick="Living_static_hide()"> </div> </div> <form method="post" style="display:none" id="Living_form"> <div style="position:absolute;left:53%;top:94%;color:#3B59A4;"> Current City </div> <div style="position:absolute;left:53%;top:98.5%;"> <input type="text" value="<?php echo $city; ?>" name="city" style="height:33;width:350;font-size:16px;" onKeyPress="return isStringKey(event)" maxlength="15"> </div> <div style="position:absolute;left:53%;top:108%;color:#3B59A4;"> hometown </div> <div style="position:absolute;left:53%;top:112.5%;"> <input type="text" value="<?php echo $hometown; ?>" name="hometown" onKeyPress="return isStringKey(event)" maxlength="15" style="height:33;width:350;font-size:16px;"> </div> <div style="position:absolute;left:59%;top:122%;"> <input type="submit" value="Save" name="leving_sub" class="save_button"> </div> <div style="position:absolute;left:67%;top:122%;"> <input type="button" value="Cancel" class="cancel_button" onClick="living_form_hide()"> </div> </form> <div style="position:absolute;left:17%; top:139%; height:0.09%; width:66%; background:#CCC; z-index:1"> </div> <!--Basic Information--> <?php $user_data_query=mysql_query("select * from users where user_id=$v_user_id"); $user_data=mysql_fetch_array($user_data_query); $bday=$user_data[5]; $gender=$user_data[4]; $Emial_id=$user_data[2]; ?> <div style="position:absolute;left:17%;top:145%;"> <h3> Basic Information </h3> </div> <div id="basic_static" onClick="basic_static_hide()"> <div style="position:absolute;left:19%;top:156%; font-size:18px; color:#89919C;"> Birthday </div> <div style="position:absolute;left:25%;top:156%; font-size:18px;"> <?php echo $bday; ?> </div> <div style="position:absolute;left:19%; top:163%; font-size:18px; color:#89919C;">Gender</div> <div style="position:absolute;left:25%;top:163%; font-size:18px;"> <?php echo $gender; ?> </div> <div style="position:absolute;left:19%; top:169%; font-size:18px; color:#89919C;">Relationship </div> <?php $relationship=$user_info_data[5]; if($relationship!="") { ?> <div style="position:absolute;left:27%;top:169.5%;"> <?php echo $relationship; ?> </div> <?php } else { ?> <div style="position:absolute;left:27%;top:169.5%; color:#3B59A4; font-weight:bold;"> Add Relationship </div> <?php } ?> <div style="position:absolute;left:43.5%;top:147.5%;"> <input type="button" style="background-image:url(img/edit_button.PNG); border:none; height:24;" value=" " onClick="basic_static_hide()"> </div> </div> <form method="post" style="display:none" id="basic_form"> <div style="position:absolute;left:19%;top:156%; font-size:18px; color:#89919C;"> Birthday </div> <div style="position:absolute; left:25%; top:155.7%;"> <select name="day" style="width:61;font-size:15px;height:29;padding:3;"> <option value="Day:"> Day: </option> <script type="text/javascript"> for(i=1;i<=31;i++) { document.write("<option value='"+i+"'>" + i + "</option>"); } </script> </select> </div> <div style="position:absolute;left:30%; top:155.7%;"> <select name="month" style="width:78;font-size:15px;height:29;padding:3;"> <option value="Month:"> Month: </option> <script type="text/javascript"> var m=new Array("","Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"); for(i=1;i<=m.length-1;i++) { document.write("<option value='"+i+"'>" + m[i] + "</option>"); } </script> </select> </div> <div style='position:absolute;left:36.3%;top:155.7%;'> <select name="year" style="width:66; font-size:15px; height:29; padding:3;"> <option value="Year:"> Year: </option> <script type="text/javascript"> for(i=2013;i>=1960;i--) { document.write("<option value='"+i+"'>" + i + "</option>"); } </script> </select> </div> <div style="position:absolute;left:19%; top:163%; font-size:18px; color:#89919C;">Gender</div> <div style="position:absolute;left:25%;top:163%; font-size:18px;"> <?php echo $gender; ?> </div> <div style="position:absolute;left:19%; top:169%; font-size:18px; color:#89919C;">Relationship </div> <div style="position:absolute;left:27%; top:169%;"> <select name="relationship" style="font-size:15px;height:29;padding:3;"> <option value=""> ------------ </option> <script type="text/javascript"> var rel=new Array("Single","In a relationship","Engaged","Married","Its complicated","In an open relationship","Windowed","Separated","Divoced"); for(i=0;i<=rel.length-1;i++) { document.write("<option value='"+rel[i]+"'>" + rel[i] + "</option>"); } </script> </select> </div> <div style="position:absolute;left:24%;top:180%;"> <input type="submit" value="Save" name="basic_sub" class="save_button"> </div> <div style="position:absolute;left:32%;top:180%;"> <input type="button" value="Cancel" class="cancel_button" onClick="basic_form_hide()"> </div> </form> <!--Contact Information--> <div style="position:absolute;left:51%;top:145%;"> <h3> Contact Information </h3> </div> <div id="contact_static" onClick="contact_static_hide()"> <div style="position:absolute;left:53%;top:156%; font-size:18px; color:#89919C;"> Mobile Phones </div> <?php $m_no=$user_info_data[6]; if($m_no!=0) { ?> <div style="position:absolute;left:62%;top:156%; font-size:18px;"> <?php echo $m_no; ?> </div> <?php $m_no_priority=$user_info_data[7]; if($m_no_priority=="Private") { ?> <div style="position:absolute;left:70%;top:156%;"> <img src="img/only_me.PNG"> </div> <?php } } else { ?> <div style="position:absolute;left:62%;top:156.4%; color:#3B59A4; font-weight:bold;"> Add Mobile Number </div> <?php } ?> <div style="position:absolute;left:53%; top:162%; font-size:18px; color:#89919C;">Email</div> <div style="position:absolute;left:58%;top:162%; font-size:18px;"> <?php echo $Emial_id; ?> </div> <div style="position:absolute;left:53%; top:169%; font-size:18px; color:#89919C;">Website</div> <?php $web=$user_info_data[8]; if($web!="") { ?> <div style="position:absolute;left:59%;top:169%; color:#3B59A4; font-weight:bold;"> <?php echo $web; ?> </div> <?php } else { ?> <div style="position:absolute;left:59%;top:169%; color:#3B59A4; font-weight:bold;"> Add Website </div> <?php } ?> <div style="position:absolute;left:53%; top:175%; font-size:18px; color:#89919C;">Facebook ID </div> <?php $fb_id=$user_info_data[9]; if($fb_id!="") { ?> <div style="position:absolute;left:61%;top:175%; color:#3B59A4; font-weight:bold;"> <?php echo $fb_id; ?> </div> <?php } else { ?> <div style="position:absolute;left:61%;top:175%; color:#3B59A4; font-weight:bold;"> Add Facebook ID </div> <?php } ?> <div style="position:absolute;left:80%;top:147.5%;"> <input type="button" style="background-image:url(img/edit_button.PNG); border:none; height:24;" value=" " onClick="contact_static_hide()"> </div> </div> <form method="post" style="display:none" name="contact" id="contact_form" onSubmit="return contact_check()"> <div style="position:absolute;left:53%;top:156%; font-size:18px; color:#89919C;"> Mobile Phones </div> <div style="position:absolute;left:62%;top:155.4%;"> <input type="text" value="<?php echo $m_no; ?>" name="mno" onKeyPress="return isNumberKey(event)" style="height:33;width:150;font-size:16px;" maxlength="10"> </div> <div style="position:absolute;left:74%;top:155.4%;"> <select style="height:33;font-size:19px;" name="priority"> <option value="Private"> Only me </option> <option value="Public"> Public </option> </select> </div> <div style="position:absolute;left:53%; top:162%; font-size:18px; color:#89919C;">Email</div> <div style="position:absolute;left:61%;top:161.6%; font-size:18px;"> <input type="text" value="<?php echo $Emial_id; ?>" style="height:33; width:300; color:#000; font-size:16px; " disabled></div> <div style="position:absolute;left:53%; top:169%; font-size:18px; color:#89919C;">Website</div> <div style="position:absolute;left:61%;top:168%;"> <input type="text" value="<?php echo $web; ?>" name="web" maxlength="40" style="height:33;width:300;font-size:16px;"> </div> <div style="position:absolute;left:53%; top:175%; font-size:18px; color:#89919C;">Facebook ID </div> <div style="position:absolute;left:61%;top:174.4%;"> <input type="text" value="<?php echo $fb_id; ?>" name="fbid" maxlength="40" style="height:33;width:300;font-size:16px;"> </div> <div style="position:absolute;left:59%;top:185%;"> <input type="submit" value="Save" name="contact_sub" class="save_button"> </div> <div style="position:absolute;left:67%;top:185%;"> <input type="button" value="Cancel" class="cancel_button" onClick="contact_form_hide()"> </div> </form> <div style="position:absolute;left:58%;top:193%; display:none;" id="mobile_no_erorr"><img src="img/wrong.png"> The phone number is invalid.</div> <div style="position:absolute;left:24%;top:220%; color:#E9EAED;">.</div> </body> </html> <?php } else { header("location:../../index.php"); } ?> facebook/facebook/admin/fb_view_profile/about_css/about.css .save_button { font-size:14px; height:30; width:67; padding:2; background-color:#5B74A8; color:#FFFFFF; border-top:#29447E; border-right-color:#29447E; border-bottom-color:#1A356E; border-left-color:#29447E; font-weight:bold; box-shadow:0px 0px 5px 1px rgb(0,0,0); } .cancel_button { font-size:14px; height:30; width:75; padding:2; background-color:#E6E6E6; color:#000; border-left-color:#29447E; font-weight:bold; box-shadow:0px 0px 5px 1px rgb(0,0,0); } facebook/facebook/admin/fb_view_profile/about_js/about.js function work_static_hide() { document.getElementById("work_static").style.display='none'; document.getElementById("Work_form").style.display='block'; } function Living_static_hide() { document.getElementById("Living_static").style.display='none'; document.getElementById("Living_form").style.display='block'; } function work_form_hide() { document.getElementById("Work_form").style.display='none'; document.getElementById("work_static").style.display='block'; } function living_form_hide() { document.getElementById("Living_form").style.display='none'; document.getElementById("Living_static").style.display='block'; } function basic_static_hide() { document.getElementById("basic_static").style.display='none'; document.getElementById("basic_form").style.display='block'; } function basic_form_hide() { document.getElementById("basic_form").style.display='none'; document.getElementById("basic_static").style.display='block'; } function contact_static_hide() { document.getElementById("contact_static").style.display='none'; document.getElementById("contact_form").style.display='block'; } function contact_form_hide() { document.getElementById("mobile_no_erorr").style.display='none'; document.getElementById("contact_form").style.display='none'; document.getElementById("contact_static").style.display='block'; } function contact_check() { var no = document.contact.mno.value; if(no!='') { if (no.length!=10) { document.getElementById("mobile_no_erorr").style.display='block'; return false; } if (no.charAt(0)!="9" && no.charAt(0)!="8" && no.charAt(0)!="7") { document.getElementById("mobile_no_erorr").style.display='block'; return false; } } } function isNumberKey(evt) { var charCode=(evt.which)? evt.which:event.KeyCode if(charCode>31 && (charCode<48 || charCode>57)) { return false; } return true; } function isStringKey(evt) { var charCode=(evt.which)? evt.which:event.KeyCode if(charCode>10 && (charCode<65 || charCode>90) && (charCode<97 || charCode>122)) { return false; } return true; } facebook/facebook/admin/fb_view_profile/background.php <?php error_reporting(1); mysql_connect("localhost","root",""); mysql_select_db("faceback"); ?> <?php $que_v_user_info=mysql_query("select * from users where user_id=$v_user_id"); $v_user_data=mysql_fetch_array($que_v_user_info); $v_name=$v_user_data[1]; $v_gender=$v_user_data[4]; $v_email=$v_user_data[2]; $v_bday=$v_user_data[5]; $que_view_user_profile_pic=mysql_query("select * from user_profile_pic where user_id=$v_user_id"); $user_profile_pic_data=mysql_fetch_array($que_view_user_profile_pic); $profile_img=$user_profile_pic_data[2]; $que_user_cover_pic=mysql_query("select * from user_cover_pic where user_id=$v_user_id"); $user_cover_pic_data=mysql_fetch_array($que_user_cover_pic); $cover_img=$user_cover_pic_data[2]; $count1=mysql_num_rows($que_user_cover_pic); $que_post_img=mysql_query("select * from user_post where user_id=$v_user_id and post_pic!='' order by post_id desc"); $photos_count=mysql_num_rows($que_post_img); $photos_count=$photos_count+$count1+1; ?> <?php if(isset($_POST['offline_set'])) { mysql_query("update user_status set status='Offline' where user_id=$v_user_id"); } if(isset($_POST['delete_user'])) { $delete_id=intval($_POST['delete_id']); mysql_query("delete from users where user_id=$delete_id;"); header("location:../fb_home/Home.php"); } if(isset($_POST['warning_user'])) { $warning_id=intval($_POST['warning_id']); $warning_txt=$_POST['warning_txt']; mysql_query("insert into user_warning values($warning_id,'$warning_txt')"); } if(isset($_POST['file'])
Compartilhar