I have a "Facebook style wall post system" that I would like to use in my website, but I cant seem to get it to function correctly!
Here is a working example: http://demos.99point...allpost_system/
If anyone would like to see the complete source code, it is located here: http://www.box.net/shared/5vlp29paax
This website has more information about the script: http://www.99points....d-php-reloaded/
They give you a few files:
index.php
delete_comment.php
add_comment.php
posts.php
dbcon.php
delete.php
Some Jquery files
And "dependencies" folder, which has a css file
I FTP'd into my website, and placed all of the files in the main directory, but when I visited the index.php file, it would not work...
I am experienced in HTML, JAVA, and CSS, but I'm fairly new at PHP... which is the main issue here... If someone could please shed some light on this issue, that would be amazing!! Thanks!
Do I have to have a MySQL database set up? Or, something? What am I missing!
How do I incorporate this Pre-Written PHP code into my website?I have a "Facebook style wall post system" that I would like t
Page 1 of 1
4 Replies - 5912 Views - Last Post: 27 November 2010 - 06:20 PM
Rate Topic:




#1
JesseCastItUp
How do I incorporate this Pre-Written PHP code into my website?
Posted 27 November 2010 - 10:55 AM
Replies To: How do I incorporate this Pre-Written PHP code into my website?
#2
CTphpnwb
Re: How do I incorporate this Pre-Written PHP code into my website?
Posted 27 November 2010 - 11:13 AM
This forum is for people looking to learn/improve at php. If you're looking for some one to fix this for you, then this belongs in Post a Job.
If you want to get this working with some help, you should post the code here, not in another site and wrapped in Flash! You should also demonstrate that you've made an effort by describing in detail what you have tried and what the results were.
If you want to get this working with some help, you should post the code here, not in another site and wrapped in Flash! You should also demonstrate that you've made an effort by describing in detail what you have tried and what the results were.
#3
Martyr2
Re: How do I incorporate this Pre-Written PHP code into my website?
Posted 27 November 2010 - 11:23 AM
CTphpnwb is right, however in a quick gander at the file, yes you have to have a database, you have to code up the dbcon.php file to connect to your database and you have to build the tables as shown on FaceBook Style Wall Posting and Comments.
In other words, this script doesn't work out of the box. You have to do a bit of coding yourself and setup of a MySQL Database with those tables specified.
In other words, this script doesn't work out of the box. You have to do a bit of coding yourself and setup of a MySQL Database with those tables specified.
#4 Guest_Ronnie*
Reputation:
Re: How do I incorporate this Pre-Written PHP code into my website?
Posted 27 November 2010 - 05:30 PM
I'm working with a the same code from 99points.com facebook wallpost system.
I managed to get user post limited to there page but can't get the javascrpit working for comment and delete working ,
Here is the code: profile.php
Please help me
MOD EDIT: Spoiler'd huge quantity of code
I managed to get user post limited to there page but can't get the javascrpit working for comment and delete working ,
Here is the code: profile.php
Spoiler
<?php
/* Web Intersect Social Network Template System and CMS v1.33
* Copyright (c) 2010 Adam Khoury
* Licensed under the GNU General Public License version 3.0 (GPLv3)
* http://www.webintersect.com/license.php
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
* See the GNU General Public License for more details.
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
* Date: October 7, 2010
*------------------------------------------------------------------------------------------------*/
// Start_session, check if user is logged in or not, and connect to the database all in one included file
include_once("scripts/checkuserlog.php");
// Include the class files for auto making links out of full URLs and for Time Ago date formatting
include_once("wi_class_files/autoMakeLinks.php");
include_once ("wi_class_files/agoTimeFormat.php");
// Create the two new objects before we can use them below in this script
$activeLinkObject = new autoActiveLink;
$myObject = new convertToAgo;
?>
Spoiler
post.php
<?php
// ------- INITIALIZE SOME VARIABLES ---------
// they must be initialized in some server environments or else errors will get thrown
$id = "";
$username = "";
$firstname = "";
$lastname = "";
$mainNameLine = "";
$country = "";
$state = "";
$city = "";
$zip = "";
$bio_body = "";
$website = "";
$youtube = "";
$facebook = "";
$twitter = "";
$twitterWidget = "";
$locationInfo = "";
$user_pic = "";
$blabberDisplayList = "";
$interactionBox = "";
$cacheBuster = rand(999999999,9999999999999); // Put on an image URL will help always show new when changed
// ------- END INITIALIZE SOME VARIABLES ---------
// ------- ESTABLISH THE PAGE ID ACCORDING TO CONDITIONS ---------
if (isset($_GET['id'])) {
$id = preg_replace('#[^0-9]#i', '', $_GET['id']); // filter everything but numbers
} else if (isset($_SESSION['idx'])) {
$id = $logOptions_id;
} else {
header("location: index.php");
exit();
}
// ------- END ESTABLISH THE PAGE ID ACCORDING TO CONDITIONS ---------
// ------- FILTER THE ID AND QUERY THE DATABASE --------
$id = preg_replace('#[^0-9]#i', '', $id); // filter everything but numbers on the ID just in case
$sql = mysql_query("SELECT * FROM myMembers WHERE id='$id' LIMIT 1"); // query the member
// ------- FILTER THE ID AND QUERY THE DATABASE --------
// ------- MAKE SURE PERSON EXISTS IN DATABASE ---------
$existCount = mysql_num_rows($sql); // count the row nums
if ($existCount == 0) { // evaluate the count
header("location: index.php?msg=user_does_not_exist");
exit();
}
// ------- END MAKE SURE PERSON EXISTS IN DATABASE ---------
// ------- WHILE LOOP FOR GETTING THE MEMBER DATA ---------
while($row = mysql_fetch_array($sql)){
$username = $row["username"];
$firstname = $row["firstname"];
$lastname = $row["lastname"];
$country = $row["country"];
$state = $row["state"];
$city = $row["city"];
$sign_up_date = $row["sign_up_date"];
$sign_up_date = strftime("%b %d, %Y", strtotime($sign_up_date));
$last_log_date = $row["last_log_date"];
$last_log_date = strftime("%b %d, %Y", strtotime($last_log_date));
$bio_body = $row["bio_body"];
$bio_body = str_replace("'", "'", $bio_body);
$bio_body = stripslashes($bio_body);
$website = $row["website"];
$youtube = $row["youtube"];
$facebook = $row["facebook"];
$twitter = $row["twitter"];
$friend_array = $row["friend_array"];
/////// Mechanism to Display Pic. See if they have uploaded a pic or not //////////////////////////
$check_pic = "members/$id/image01.jpg";
$default_pic = "members/0/image01.jpg";
if (file_exists($check_pic)) {
$user_pic = "<img src=\"$check_pic?$cacheBuster\" width=\"218px\" />";
} else {
$user_pic = "<img src=\"$default_pic\" width=\"218px\" />";
}
/////// Mechanism to Display Real Name Next to Username - real name(username) //////////////////////////
if ($firstname != "") {
$mainNameLine = "$firstname $lastname ($username)";
$username = $firstname;
} else {
$mainNameLine = $username;
}
/////// Mechanism to Display Youtube channel link or not //////////////////////////
if ($youtube == "") {
$youtube = "";
} else {
$youtube = '<br /><br /><img src="images/youtubeIcon.jpg" width="18" height="12" alt="Youtube Channel for ' . $username . '" /> <strong>YouTube Channel:</strong><br /><a href="http://www.youtube.com/user/' . $youtube . '" target="_blank">youtube.com/' . $youtube . '</a>';
}
/////// Mechanism to Display Facebook Profile link or not //////////////////////////
if ($facebook == "") {
$facebook = "";
} else {
$facebook = '<br /><br /><img src="images/facebookIcon.jpg" width="18" height="12" alt="Facebook Profile for ' . $username . '" /> <strong>Facebook Profile:</strong><br /><a href="http://www.facebook.com/profile.php?id=' . $facebook . '" target="_blank">profile.php?id=' . $facebook . '</a>';
}
/////// Mechanism to Display Twitter Tweet Widget or not //////////////////////////
if ($twitter == "") {
$twitterWidget = "";
} else {
$twitterWidget = "<script src=\"http://widgets.twimg.com/j/2/widget.js\"></script>
<script>
new TWTR.Widget({
version: 2,
type: 'profile',
rpp: 5,
interval: 6000,
width: 218,
height: 160,
theme: {
shell: {
background: '#BDF',
color: '#000000'
},
tweets: {
background: '#ffffff',
color: '#000000',
links: '#0066FF',
}
},
features: {
scrollbar: true,
loop: false,
live: false,
hashtags: true,
timestamp: true,
avatars: false,
behavior: 'all'
}
}).render().setUser('$twitter').start();
</script>";
}
/////// Mechanism to Display Website URL or not //////////////////////////
if ($website == "") {
$website = "";
} else {
$website = '<br /><br /><img src="images/websiteIcon.jpg" width="18" height="12" alt="Website URL for ' . $username . '" /> <strong>Website:</strong><br /><a href="http://' . $website . '" target="_blank">' . $website . '</a>';
}
/////// Mechanism to Display About me text or not //////////////////////////
if ($bio_body == "") {
$bio_body = "";
} else {
$bio_body = '<div class="infoBody">' . $bio_body . '</div>';
}
/////// Mechanism to Display Location Info or not //////////////////////////
if ($country == "" && $state == "" && $city == "") {
$locationInfo = "";
} else {
$locationInfo = "$city · $state<br />$country ".'<a href="#" onclick="return false" onmousedown="javascript:toggleViewMap(\'google_map\');">view map</a>';
}
} // close while loop
// ------- END WHILE LOOP FOR GETTING THE MEMBER DATA ---------
// ------- POST NEW BLAB TO DATABASE ---------
$blab_outout_msg = "";
if (isset($_POST['blab_field']) && $_POST['blab_field'] != "" && $_POST['blab_field'] != " "){
$blabWipit = $_POST['blabWipit'];
$sessWipit = base64_decode($_SESSION['wipit']);
if (!isset($_SESSION['wipit'])) {
} else if ($blabWipit == $sessWipit) {
// Delete any blabs over 50 for this member
$sqlDeleteBlabs = mysql_query("SELECT * FROM blabbing WHERE mem_id='$id' ORDER BY blab_date DESC LIMIT 50");
$bi = 1;
while ($row = mysql_fetch_array($sqlDeleteBlabs)) {
$blad_id = $row["id"];
if ($bi > 20) {
$deleteBlabs = mysql_query("DELETE FROM blabbing WHERE id='$blad_id'");
}
$bi++;
}
// End Delete any blabs over 20 for this member
$blab_field = $_POST['blab_field'];
$blab_field = stripslashes($blab_field);
$blab_field = strip_tags($blab_field);
$blab_field = mysql_real_escape_string($blab_field);
$blab_field = str_replace("'", "'", $blab_field);
$sql = mysql_query("INSERT INTO blabbing (mem_id, the_blab, blab_date) VALUES('$id','$blab_field', now())") or die (mysql_error());
$blab_outout_msg = "";
}
}
// ------- END POST NEW BLAB TO DATABASE ---------
// ------- MEMBER BLABS OUTPUT CONSTRUCTION ---------
/////// Mechanism to Display Pic
if (file_exists($check_pic)) {
$blab_pic = '<div style="overflow:hidden; height:40px;"><a href="profile.php?id=' . $id . '"><img src="' . $check_pic . '" width="40px" border="0" /></a></div>';
} else {
$blab_pic = '<div style="overflow:hidden; height:40px;"><a href="profile.php?id=' . $id . '"><img src="' . $default_pic . '" width="40px" border="0" /></a></div>';
}
/////// END Mechanism to Display Pic
$sql_blabs = mysql_query("SELECT id, mem_id, the_blab, blab_date FROM blabbing WHERE mem_id='$id' ORDER BY blab_date DESC LIMIT 20");
while($row = mysql_fetch_array($sql_blabs)){
$blabid = $row["id"];
$uid = $row["mem_id"];
$the_blab = $row["the_blab"];
$the_blab = ($activeLinkObject -> makeActiveLink($the_blab));
$blab_date = $row["blab_date"];
$convertedTime = ($myObject -> convert_datetime($blab_date));
$whenBlab = ($myObject -> makeAgo($convertedTime));
$blabberDisplayList .= '
<table style="background-color:#FFF; border:#999 1px solid; border-top:none;" cellpadding="5" width="100%">
<tr>
<td width="10%" valign="top">' . $blab_pic . '</td>
<td width="90%" valign="top" style="line-height:1.5em;"><span class="greenColor textsize10">' . $whenBlab . ' <a href="profile.php?id=' . $uid . '">' . $username . '</a> said:</span><br />
' . $the_blab . '</td>
</tr></table>';
}
// ------- END MEMBER BLABS OUTPUT CONSTRUCTION ---------
// ------- ESTABLISH THE PROFILE INTERACTION TOKEN ---------
$thisRandNum = rand(9999999999999,999999999999999999);
$_SESSION['wipit'] = base64_encode($thisRandNum); // Will always overwrite itself each time this script runs
// ------- END ESTABLISH THE PROFILE INTERACTION TOKEN ---------
// ------- EVALUATE WHAT CONTENT TO PLACE IN THE MEMBER INTERACTION BOX -------------------
// initialize some output variables
$friendLink = "";
$the_blab_form = "";
if (isset($_SESSION['idx']) && $logOptions_id != $id) { // If SESSION idx is set, AND it does not equal the profile owner's ID
// SQL Query the friend array for the logged in viewer of this profile if not the owner
$sqlArray = mysql_query("SELECT friend_array FROM myMembers WHERE id='" . $logOptions_id ."' LIMIT 1");
while($row=mysql_fetch_array($sqlArray)) { $iFriend_array = $row["friend_array"]; }
$iFriend_array = explode(",", $iFriend_array);
if (in_array($id, $iFriend_array)) {
$friendLink = '<a href="#" onclick="return false" onmousedown="javascript:toggleInteractContainers(\'remove_friend\');">Remove Friend</a>';
} else {
$friendLink = '<a href="#" onclick="return false" onmousedown="javascript:toggleInteractContainers(\'add_friend\');">Add as Friend</a>';
}
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
$interactionBox = '<br /><br /><div class="interactionLinksDiv">
' . $friendLink . '
<a href="#" onclick="return false" onmousedown="javascript:toggleInteractContainers(\'private_message\');">Private Message</a>
</div><br />';
$the_blab_form = '<div style="background-color:#BDF; border:#999 1px solid; padding:8px;">
<textarea name="blab_field" rows="3" style="width:99%;"></textarea>
<strong>Write on ' . $username . '\'s Board (coming soon)</strong>
</div>';
} else if (isset($_SESSION['idx']) && $logOptions_id == $id) { // If SESSION idx is set, AND it does equal the profile owner's ID
$interactionBox = '<br /><br /><div class="interactionLinksDiv">
<a href="#" onclick="return false" onmousedown="javascript:toggleInteractContainers(\'friend_requests\');">Friend Requests</a>
</div><br />';
$the_blab_form = ' ' . $blab_outout_msg . '
<div style="background-color:#BDF; border:#999 1px solid; padding:8px;">
<form action="profile.php" method="post" enctype="multipart/form-data" name="blab_from">
<textarea name="blab_field" rows="3" style="width:99%;"></textarea>
<input name="blabWipit" type="hidden" value="' . $thisRandNum . '" />
<strong>Blab away ' . $username . '</strong> (220 char max) <input name="submit" type="submit" value="Blab" />
</form></div>';
} else { // If no SESSION id is set, which means we have a person who is not logged in
$interactionBox = '<div style="border:#CCC 1px solid; padding:5px; background-color:#E4E4E4; color:#999; font-size:11px;">
<a href="register.php">Sign Up</a> or <a href="login.php">Log In</a> to interact with ' . $username . '
</div>';
$the_blab_form = '<div style="background-color:#BDF; border:#999 1px solid; padding:8px;">
<textarea name="blab_field" rows="3" style="width:99%;"></textarea>
<a href="register.php">Sign Up</a> or <a href="login.php">Log In</a> to write on ' . $username . '\'s Board
</div>';
}
// ------- END EVALUATE WHAT CONTENT TO PLACE IN THE MEMBER INTERACTION BOX -------------------
// ------- POPULATE FRIEND DISPLAY LISTS IF THEY HAVE AT LEAST ONE FRIEND -------------------
$friendList = "";
$friendPopBoxList = "";
if ($friend_array != "") {
// ASSEMBLE FRIEND LIST AND LINKS TO VIEW UP TO 6 ON PROFILE
$friendArray = explode(",", $friend_array);
$friendCount = count($friendArray);
$friendArray6 = array_slice($friendArray, 0, 6);
$friendList .= '<div class="infoHeader">' . $username . '\'s Friends (<a href="#" onclick="return false" onmousedown="javascript:toggleViewAllFriends(\'view_all_friends\');">' . $friendCount . '</a>)</div>';
$i = 0; // create a varible that will tell us how many items we looped over
$friendList .= '<div class="infoBody" style="border-bottom:#666 1px solid;"><table id="friendTable" align="center" cellspacing="4"></tr>';
foreach ($friendArray6 as $key => $value) {
$i++; // increment $i by one each loop pass
$check_pic = 'members/' . $value . '/image01.jpg';
if (file_exists($check_pic)) {
$frnd_pic = '<a href="profile.php?id=' . $value . '"><img src="' . $check_pic . '" width="54px" border="1"/></a>';
} else {
$frnd_pic = '<a href="profile.php?id=' . $value . '"><img src="members/0/image01.jpg" width="54px" border="1"/></a> ';
}
$sqlName = mysql_query("SELECT username, firstname FROM myMembers WHERE id='$value' LIMIT 1") or die ("Sorry we had a mysql error!");
while ($row = mysql_fetch_array($sqlName)) { $friendUserName = substr($row["username"],0,12); $friendFirstName = substr($row["firstname"],0,12);}
if (!$friendUserName) {$friendUserName = $friendFirstName;} // If username is blank use the firstname... programming changes in v1.32 call for this
if ($i % 6 == 4){
$friendList .= '<tr><td><div style="width:56px; height:68px; overflow:hidden;" title="' . $friendUserName . '">
<a href="profile.php?id=' . $value . '">' . $friendUserName . '</a><br />' . $frnd_pic . '
</div></td>';
} else {
$friendList .= '<td><div style="width:56px; height:68px; overflow:hidden;" title="' . $friendUserName . '">
<a href="profile.php?id=' . $value . '">' . $friendUserName . '</a><br />' . $frnd_pic . '
</div></td>';
}
}
$friendList .= '</tr></table>
<div align="right"><a href="#" onclick="return false" onmousedown="javascript:toggleViewAllFriends(\'view_all_friends\');">view all</a></div>
</div>';
// END ASSEMBLE FRIEND LIST... TO VIEW UP TO 6 ON PROFILE
// ASSEMBLE FRIEND LIST AND LINKS TO VIEW ALL(50 for now until we paginate the array)
$i = 0;
$friendArray50 = array_slice($friendArray, 0, 50);
$friendPopBoxList = '<table id="friendPopBoxTable" width="100%" align="center" cellpadding="6" cellspacing="0">';
foreach ($friendArray50 as $key => $value) {
$i++; // increment $i by one each loop pass
$check_pic = 'members/' . $value . '/image01.jpg';
if (file_exists($check_pic)) {
$frnd_pic = '<a href="profile.php?id=' . $value . '"><img src="' . $check_pic . '" width="54px" border="1"/></a>';
} else {
$frnd_pic = '<a href="profile.php?id=' . $value . '"><img src="members/0/image01.jpg" width="54px" border="1"/></a> ';
}
$sqlName = mysql_query("SELECT username, firstname, country, state, city FROM myMembers WHERE id='$value' LIMIT 1") or die ("Sorry we had a mysql error!");
while ($row = mysql_fetch_array($sqlName)) { $funame = $row["username"]; $ffname = $row["firstname"]; $fcountry = $row["country"]; $fstate = $row["state"]; $fcity = $row["city"]; }
if (!$funame) {$funame = $ffname;} // If username is blank use the firstname... programming changes in v1.32 call for this
if ($i % 2) {
$friendPopBoxList .= '<tr bgcolor="#F4F4F4"><td width="14%" valign="top">
<div style="width:56px; height:56px; overflow:hidden;" title="' . $funame . '">' . $frnd_pic . '</div></td>
<td width="86%" valign="top"><a href="profile.php?id=' . $value . '">' . $funame . '</a><br /><font size="-2"><em>' . $fcity . '<br />' . $fstate . '<br />' . $fcountry . '</em></font></td>
</tr>';
} else {
$friendPopBoxList .= '<tr bgcolor="#E0E0E0"><td width="14%" valign="top">
<div style="width:56px; height:56px; overflow:hidden;" title="' . $funame . '">' . $frnd_pic . '</div></td>
<td width="86%" valign="top"><a href="profile.php?id=' . $value . '">' . $funame . '</a><br /><font size="-2"><em>' . $fcity . '<br />' . $fstate . '<br />' . $fcountry . '</em></font></td>
</tr>';
}
}
$friendPopBoxList .= '</table>';
// END ASSEMBLE FRIEND LIST AND LINKS TO VIEW ALL(50 for now until we paginate the array)
}
// ------- END POPULATE FRIEND DISPLAY LISTS IF THEY HAVE AT LEAST ONE FRIEND -------------------
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<meta name="Description" content="Profile for <?php echo "$username"; ?>" />
<meta name="Keywords" content="<?php echo "$username, $city, $state, $country"; ?>" />
<meta name="rating" content="General" />
<meta name="ROBOTS" content="All" />
<title>Site Profile for <?php echo "$username"; ?></title>
<link href="style/main.css" rel="stylesheet" type="text/css" />
<link rel="icon" href="favicon.ico" type="image/x-icon" />
<link rel="shortcut icon" href="favicon.ico" type="image/x-icon" />
<link href="facebox.css" media="screen" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="js/jquery-1.2.6.min.js"></script>
<script type="text/javascript" src="js/jquery.livequery.js"></script>
<link href="dependencies/screen.css" type="text/css" rel="stylesheet" />
<script src="js/jquery.elastic.js" type="text/javascript" charset="utf-8"></script>
<script src="js/jquery.watermarkinput.js" type="text/javascript"></script>
<script type="text/javascript">
// <![CDATA[
$(document).ready(function(){
$('#shareButton').click(function(){
var a = $("#watermark").val();
if(a != "What's on your mind?")
{
$.post("posts.php?value="+a, {
}, function(response){
$('#posting').prepend($(response).fadeIn('slow'));
$("#watermark").val("Share the Gospel?");
});
}
});
$('.commentMark').livequery("focus", function(e){
var parent = $(this).parent();
$(".commentBox").children(".commentMark").css('width','320px');
$(".commentBox").children("a#SubmitComment").hide();
$(".commentBox").children(".CommentImg").hide();
var getID = parent.attr('id').replace('record-','');
$("#commentBox-"+getID).children("a#SubmitComment").show();
$('.commentMark').css('width','300px');
$("#commentBox-"+getID).children(".CommentImg").show();
});
//showCommentBox
$('a.showCommentBox').livequery("click", function(e){
var getpID = $(this).attr('id').replace('post_id','');
$("#commentBox-"+getpID).css('display','');
$("#commentMark-"+getpID).focus();
$("#commentBox-"+getpID).children("img.CommentImg").show();
$("#commentBox-"+getpID).children("a#SubmitComment").show();
});
//SubmitComment
$('a.comment').livequery("click", function(e){
var getpID = $(this).parent().attr('id').replace('commentBox-','');
var comment_text = $("#commentMark-"+getpID).val();
if(comment_text != "Write a comment...")
{
$.post("add_comment.php?comment_text="+comment_text+"&post_id="+getpID, {
}, function(response){
$('#CommentPosted'+getpID).append($(response).fadeIn('slow'));
$("#commentMark-"+getpID).val("Write a comment...");
});
}
});
//more records show
$('a.more_records').livequery("click", function(e){
var next = $(this).attr('id').replace('more_','');
$.post("posts.php?show_more_post="+next, {
}, function(response){
$('#bottomMoreButton').remove();
$('#posting').append($(response).fadeIn('slow'));
});
});
//deleteComment
$('a.c_delete').livequery("click", function(e){
if(confirm('Are you sure you want to delete this comment?')==false)
return false;
e.preventDefault();
var parent = $(this).parent();
var c_id = $(this).attr('id').replace('CID-','');
$.ajax({
type: 'get',
url: 'delete_comment.php?c_id='+ c_id,
data: '',
beforeSend: function(){
},
success: function(){
parent.fadeOut(200,function(){
parent.remove();
});
}
});
});
/// hover show remove button
$('.friends_area').livequery("mouseenter", function(e){
$(this).children("a.delete").show();
});
$('.friends_area').livequery("mouseleave", function(e){
$('a.delete').hide();
});
/// hover show remove button
$('a.delete').livequery("click", function(e){
if(confirm('Are you sure you want to delete this post?')==false)
return false;
e.preventDefault();
var parent = $(this).parent();
var temp = parent.attr('id').replace('record-','');
var main_tr = $('#'+temp).parent();
$.ajax({
type: 'get',
url: 'delete.php?id='+ parent.attr('id').replace('record-',''),
data: '',
beforeSend: function(){
},
success: function(){
parent.fadeOut(200,function(){
main_tr.remove();
});
}
});
});
$('textarea').elastic();
jQuery(function($){
$("#watermark").Watermark("What's on your mind?");
$(".commentMark").Watermark("Write a comment...");
});
jQuery(function($){
$("#watermark").Watermark("watermark","#369");
$(".commentMark").Watermark("watermark","#EEEEEE");
});
function UseData(){
$.Watermark.HideAll();
//Do Stuff
$.Watermark.ShowAll();
}
});
// ]]>
</script>
<script src="js/jquery-1.4.2.js" type="text/javascript"></script>
<style type="text/css">
<!--
.infoHeader {
background-color: #BDF;
font-size:11px;
font-weight:bold;
padding:8px;
border: #999 1px solid;
border-bottom:none;
width:200px;
}
.infoBody{
background-color: #FFF;
font-size:11px;
padding:8px;
border: #999 1px solid;
border-bottom:none;
width:200px;
}
/* ------- Interaction Links Class -------- */
.interactionLinksDiv a {
border:#B9B9B9 1px solid; padding:5px; color:#060; font-size:11px; background-image:url(style/headerBtnsBG.jpg); text-decoration:none;
}
.interactionLinksDiv a:hover {
border:#090 1px solid; padding:5px; color:#060; font-size:11px; background-image:url(style/headerBtnsBGover.jpg);
}
/* ------- Interaction Containers Class -------- */
.interactContainers {
padding:8px;
background-color:#BDF;
border:#999 1px solid;
display:none;
}
#add_friend_loader {
display:none;
}
#remove_friend_loader {
display:none;
}
#interactionResults {
display:none;
font-size:16px;
padding:8px;
}
#friendTable td{
font-size:9px;
}
#friendTable td a{
color:#03C;
text-decoration:none;
}
#view_all_friends {
background-image:url(style/opaqueDark.png);
width:270px;
padding:20px;
position:fixed;
top:150px;
display:none;
z-index:100;
margin-left:50px;
}
#google_map {
background-image:url(style/opaqueDark.png);
padding:20px;
position:fixed;
top:150px;
display:none;
z-index:100;
margin-left:50px;
}
-->
</style>
<script language="javascript" type="text/javascript">
// jQuery functionality for toggling member interaction containers
function toggleInteractContainers(x) {
if ($('#'+x).is(":hidden")) {
$('#'+x).slideDown(200);
} else {
$('#'+x).hide();
}
$('.interactContainers').hide();
}
function toggleViewAllFriends(x) {
if ($('#'+x).is(":hidden")) {
$('#'+x).fadeIn(200);
} else {
$('#'+x).fadeOut(200);
}
}
function toggleViewMap(x) {
if ($('#'+x).is(":hidden")) {
$('#'+x).fadeIn(200);
} else {
$('#'+x).fadeOut(200);
}
}
// Friend adding and accepting stuff
var thisRandNum = "<?php echo $thisRandNum; ?>";
var friendRequestURL = "scripts_for_profile/request_as_friend.php";
function addAsFriend(a,B)/> {
$("#add_friend_loader").show();
$.post(friendRequestURL,{ request: "requestFriendship", mem1: a, mem2: b, thisWipit: thisRandNum } ,function(data) {
$("#add_friend").html(data).show().fadeOut(12000);
});
}
function acceptFriendRequest (x) {
$.post(friendRequestURL,{ request: "acceptFriend", reqID: x, thisWipit: thisRandNum } ,function(data) {
$("#req"+x).html(data).show();
});
}
function denyFriendRequest (x) {
$.post(friendRequestURL,{ request: "denyFriend", reqID: x, thisWipit: thisRandNum } ,function(data) {
$("#req"+x).html(data).show();
});
}
// End Friend adding and accepting stuff
// Friend removal stuff
function removeAsFriend(a,B)/> {
$("#remove_friend_loader").show();
$.post(friendRequestURL,{ request: "removeFriendship", mem1: a, mem2: b, thisWipit: thisRandNum } ,function(data) {
$("#remove_friend").html(data).show().fadeOut(12000);
});
}
// End Friend removal stuff
// Start Private Messaging stuff
$('#pmForm').submit(function(){$('input[type=submit]', this).attr('disabled', 'disabled');});
function sendPM ( ) {
var pmSubject = $("#pmSubject");
var pmTextArea = $("#pmTextArea");
var sendername = $("#pm_sender_name");
var senderid = $("#pm_sender_id");
var recName = $("#pm_rec_name");
var recID = $("#pm_rec_id");
var pm_wipit = $("#pmWipit");
var url = "scripts_for_profile/private_msg_parse.php";
if (pmSubject.val() == "") {
$("#interactionResults").html('<img src="images/round_error.png" alt="Error" width="31" height="30" /> Please type a subject.').show().fadeOut(6000);
} else if (pmTextArea.val() == "") {
$("#interactionResults").html('<img src="images/round_error.png" alt="Error" width="31" height="30" /> Please type in your message.').show().fadeOut(6000);
} else {
$("#pmFormProcessGif").show();
$.post(url,{ subject: pmSubject.val(), message: pmTextArea.val(), senderName: sendername.val(), senderID: senderid.val(), rcpntName: recName.val(), rcpntID: recID.val(), thisWipit: pm_wipit.val() } , function(data) {
$('#private_message').slideUp("fast");
$("#interactionResults").html(data).show().fadeOut(10000);
document.pmForm.pmTextArea.value='';
document.pmForm.pmSubject.value='';
$("#pmFormProcessGif").hide();
});
}
}
// End Private Messaging stuff
</script>
</head>
<body>
<?php include_once "header_template.php"; ?>
<table class="mainBodyTable" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="738" valign="top"><br />
<table width="98%" border="0" align="center" cellpadding="6">
<tr>
<td width="33%" valign="top">
<?php echo $user_pic; ?>
<?php echo $bio_body; ?>
<div class="infoHeader"><?php echo $username; ?>'s Information</div>
<div class="infoBody">
<?php echo $locationInfo; ?>
<?php echo $website; ?>
<?php echo $youtube; ?>
<?php echo $facebook; ?>
</div>
<?php echo $friendList; ?>
<div id="view_all_friends">
<div align="right" style="padding:6px; background-color:#FFF; border-bottom:#666 1px solid;">
<div style="display:inline; font-size:14px; font-weight:bold; margin-right:150px;">All Friends</div>
<a href="#" onclick="return false" onmousedown="javascript:toggleViewAllFriends('view_all_friends');">close </a>
</div>
<div style="background-color:#FFF; height:240px; overflow:auto;">
<?php echo $friendPopBoxList; ?>
</div>
<div style="padding:6px; background-color:#000; border-top:#666 1px solid; font-size:10px; color: #0F0;">
Temporary programming shows 50 maximum. Navigating through the full list is coming soon.
</div>
</div>
<?php echo $twitterWidget; ?>
<div class="infoBody" style="border-bottom:#999 1px solid;"><?php include_once("ad_200_square.php"); ?></div>
</td>
<td width="67%" valign="top">
<span style="font-size:16px; font-weight:800;"><?php echo $mainNameLine; ?></span>
<?php echo $interactionBox; ?>
<div class="interactContainers" id="add_friend">
<div align="right"><a href="#" onclick="return false" onmousedown="javascript:toggleInteractContainers('add_friend');">cancel</a> </div>
Add <?php echo "$username"; ?> as a friend?
<a href="#" onclick="return false" onmousedown="javascript:addAsFriend(<?php echo $logOptions_id; ?>, <?php echo $id; ?>);">Yes</a>
<span id="add_friend_loader"><img src="images/loading.gif" width="28" height="10" alt="Loading" /></span>
</div>
<div class="interactContainers" id="remove_friend">
<div align="right"><a href="#" onclick="return false" onmousedown="javascript:toggleInteractContainers('remove_friend');">cancel</a> </div>
Remove <?php echo "$username"; ?> from your friend list?
<a href="#" onclick="return false" onmousedown="javascript:removeAsFriend(<?php echo $logOptions_id; ?>, <?php echo $id; ?>);">Yes</a>
<span id="remove_friend_loader"><img src="images/loading.gif" width="28" height="10" alt="Loading" /></span>
</div>
<!-- START DIV that serves as an interaction status and results container that only appears when we instruct it to -->
<div id="interactionResults" style="font-size:15px; padding:10px;"></div>
<!-- END DIV that serves as an interaction status and results container that only appears when we instruct it to -->
<!-- START DIV that contains the Private Message form -->
<div class="interactContainers" id="private_message">
<form action="javascript:sendPM();" name="pmForm" id="pmForm" method="post">
<font size="+1">Sending Private Message to <strong><em><?php echo "$username"; ?></em></strong></font><br /><br />
Subject:
<input name="pmSubject" id="pmSubject" type="text" maxlength="64" style="width:98%;" />
Message:
<textarea name="pmTextArea" id="pmTextArea" rows="8" style="width:98%;"></textarea>
<input name="pm_sender_id" id="pm_sender_id" type="hidden" value="<?php echo $_SESSION['id']; ?>" />
<input name="pm_sender_name" id="pm_sender_name" type="hidden" value="<?php echo $_SESSION['username']; ?>" />
<input name="pm_rec_id" id="pm_rec_id" type="hidden" value="<?php echo $id; ?>" />
<input name="pm_rec_name" id="pm_rec_name" type="hidden" value="<?php echo $username; ?>" />
<input name="pmWipit" id="pmWipit" type="hidden" value="<?php echo $thisRandNum; ?>" />
<span id="PMStatus" style="color:#F00;"></span>
<br /><input name="pmSubmit" type="submit" value="Submit" /> or <a href="#" onclick="return false" onmousedown="javascript:toggleInteractContainers('private_message');">Close</a>
<span id="pmFormProcessGif" style="display:none;"><img src="images/loading.gif" width="28" height="10" alt="Loading" /></span></form>
</div>
<!-- END DIV that contains the Private Message form -->
<div class="interactContainers" id="friend_requests" style="background-color:#FFF; height:240px; overflow:auto;">
<div align="right"><a href="#" onclick="return false" onmousedown="javascript:toggleInteractContainers('friend_requests');">close window</a> </div>
<h3>The following people are requesting you as a friend</h3>
<?php
$sql = "SELECT * FROM friends_requests WHERE mem2='$id' ORDER BY id ASC LIMIT 50";
$query = mysql_query($sql) or die ("Sorry we had a mysql error!");
$num_rows = mysql_num_rows($query);
if ($num_rows < 1) {
echo 'You have no Friend Requests at this time.';
} else {
while ($row = mysql_fetch_array($query)) {
$requestID = $row["id"];
$mem1 = $row["mem1"];
$sqlName = mysql_query("SELECT username FROM myMembers WHERE id='$mem1' LIMIT 1") or die ("Sorry we had a mysql error!");
while ($row = mysql_fetch_array($sqlName)) { $requesterUserName = $row["username"]; }
/////// Mechanism to Display Pic. See if they have uploaded a pic or not //////////////////////////
$check_pic = 'members/' . $mem1 . '/image01.jpg';
if (file_exists($check_pic)) {
$lil_pic = '<a href="profile.php?id=' . $mem1 . '"><img src="' . $check_pic . '" width="50px" border="0"/></a>';
} else {
$lil_pic = '<a href="profile.php?id=' . $mem1 . '"><img src="members/0/image01.jpg" width="50px" border="0"/></a>';
}
echo '<hr />
<table width="100%" cellpadding="5"><tr><td width="17%" align="left"><div style="overflow:hidden; height:50px;"> ' . $lil_pic . '</div></td>
<td width="83%"><a href="profile.php?id=' . $mem1 . '">' . $requesterUserName . '</a> wants to be your Friend!<br /><br />
<span id="req' . $requestID . '">
<a href="#" onclick="return false" onmousedown="javascript:acceptFriendRequest(' . $requestID . ');" >Accept</a>
OR
<a href="#" onclick="return false" onmousedown="javascript:denyFriendRequest(' . $requestID . ');" >Deny</a>
</span></td>
</tr>
</table>';
}
}
?>
</div>
<form id="profile" action="profile.php?id=<?php $id=$_POST['user_id']; echo $id;?>" method="post" name="postForm">
<div class="UIComposer_Box">
<span class="w">
<textarea class="input" id="watermark" name="watermark" style="height:20px" cols="60"></textarea>
</span>
<br clear="all" />
<div align="left" style="height:30px; padding:10px 5px;">
</span>
<a id="shareButton" style="float:left" class="small button Detail"> Share</a>
</div>
</div>
</form>
<br clear="all" />
<div id="posting" align="center">
<?php
include('connect_to_mysql.php');
include_once('posts.php');?>
</div>
</div>
</div>
</td>
</tr>
<tr>
<td colspan="2" valign="top">
<div id="google_map">
<div align="right" style="padding:4px; background-color:#D2F0D3;"><a href="#" onclick="return false" onmousedown="javascript:toggleViewMap('google_map');">close map</a></div>
<iframe width="680" height="280" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="http://maps.google.com/maps?f=q&source=s_q&hl=en&geocode=&q=<?php echo "$city,+$state,+$country";?>&ie=UTF8&hq=&hnear=<?php echo "$city,+$state,+$country";?>&z=12&output=embed"></iframe>
<div align="left" style="padding:4px; background-color:#D2F0D3;"><a href="#" onclick="return false" onmousedown="javascript:toggleViewMap('google_map');">close map</a></div>
</div>
</td>
</tr>
</table>
<p><br />
<br />
</p></td>
<td width="160" valign="top"><?php include_once("right_AD_template1.php"); ?><br /><br /><?php include_once("right_AD_template.php"); ?></td>
</tr>
</table>
<?php include_once "footer_template.php"; ?>
</body>
</html>
post.php
<?php
/* Web Intersect Social Network Template System and CMS v1.33
* Copyright (c) 2010 Adam Khoury
* Licensed under the GNU General Public License version 3.0 (GPLv3)
* http://www.webintersect.com/license.php
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
* See the GNU General Public License for more details.
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
* Date: October 7, 2010
*------------------------------------------------------------------------------------------------*/
// Start_session, check if user is logged in or not, and connect to the database all in one included file
include_once("scripts/checkuserlog.php");
// ------- INITIALIZE SOME VARIABLES ---------
// they must be initialized in some server environments or else errors will get thrown
$id = "";
$username = "";
$firstname = "";
$cacheBuster = rand(999999999,9999999999999); // Put on an image URL will help always show new when changed
// ------- END INITIALIZE SOME VARIABLES ---------
// ------- ESTABLISH THE PAGE ID ACCORDING TO CONDITIONS ---------
if (isset($_GET['id'])) {
$id = preg_replace('#[^0-9]#i', '', $_GET['id']); // filter everything but numbers
} else if (isset($_SESSION['idx'])) {
$id = $logOptions_id;
} else {
header("location: index.php");
exit();
}
// ------- END ESTABLISH THE PAGE ID ACCORDING TO CONDITIONS ---------
// ------- FILTER THE ID AND QUERY THE DATABASE --------
$id = preg_replace('#[^0-9]#i', '', $id); // filter everything but numbers on the ID just in case
$sql = mysql_query("SELECT * FROM myMembers WHERE id='$id' LIMIT 1"); // query the member
// ------- FILTER THE ID AND QUERY THE DATABASE --------
// ------- MAKE SURE PERSON EXISTS IN DATABASE ---------
$existCount = mysql_num_rows($sql); // count the row nums
if ($existCount == 0) { // evaluate the count
header("location: index.php?msg=user_does_not_exist");
exit();
}
// ------- END MAKE SURE PERSON EXISTS IN DATABASE ---------
// ------- WHILE LOOP FOR GETTING THE MEMBER DATA ---------
while($row = mysql_fetch_array($sql)){
$username = $row["username"];
$logOptions_firstname = $row["firstname"];
/////// Mechanism to Display Pic. See if they have uploaded a pic or not //////////////////////////
$check_pic = "members/$id/image01.jpg";
$default_pic = "members/0/image01.jpg";
if (file_exists($check_pic)) {
$user_pic = "<img src=\"$check_pic?$cacheBuster\" width=\"50px\" />";
} else {
$user_pic = "<img src=\"$default_pic\" width=\"50px\" />";
}
} // close while loop
function checkValues($value)
{
$value = trim($value);
if (get_magic_quotes_gpc()) {
$value = stripslashes($value);
}
$value = strtr($value,array_flip(get_html_translation_table(HTML_ENTITIES)));
$value = strip_tags($value);
$value = mysql_real_escape_string($value);
$value = htmlspecialchars ($value);
return $value;
}
function clickable_link($text = '')
{
$text = preg_replace('#(script|about|applet|activex|chrome):#is', "\\1:", $text);
$ret = ' ' . $text;
$ret = preg_replace("#(^|[\n ])([\w]+?://>/[\w\#$%&~/.\-;:=,?@\[\]+]*)#is", "\\1<a href=\"\\2\" target=\"_blank\">\\2</a>", $ret);
$ret = preg_replace("#(^|[\n ])((www|ftp)\.[\w\#$%&~/.\-;:=,?@\[\]+]*)#is", "\\1<a href=\"http://\\2\" target=\"_blank\">\\2</a>", $ret);
$ret = preg_replace("#(^|[\n ])([a-z0-9&\-_.]+?)@([\w\-]+\.([\w\-\.]+\.)*[\w]+)#i", "\\1<a href=\"mailto:\\2@\\3\">\\2@\\3</a>", $ret);
$ret = substr($ret, 1);
return $ret;
}
$next_records = 10;
$show_more_button = 0;
if(checkValues($_REQUEST['value']))
{
$userip = $_SERVER['REMOTE_ADDR'];
echo "INSERT INTO facebook_posts (post,firstname,userip,date_created,user_id,who) VALUES('".checkValues($_REQUEST['value'])."','".$logOptions_firstname."','".$userip."','".strtotime(date("Y-m-d H:i:s"))."', '". $logOptions_id."', '$id')";
$sql123="INSERT INTO facebook_posts (post,firstname,userip,date_created,user_id,who) VALUES('".checkValues($_REQUEST['value'])."','".$logOptions_firstname."','".$userip."','".strtotime(date("Y-m-d H:i:s"))."', '".$logOptions_id."', '$id')";
$result=mysql_query($sql123);
$result = mysql_query("SELECT *,
UNIX_TIMESTAMP() - date_created AS TimeSpent FROM facebook_posts WHERE who='$id' order by p_id desc limit 1");
}
elseif (isset($_REQUEST['show_more_post'])) // more posting paging
{
$next_records = $_REQUEST['show_more_post'] + 10;
$result = mysql_query("SELECT *,
UNIX_TIMESTAMP() - date_created AS TimeSpent FROM facebook_posts WHERE who='$id' order by p_id desc limit ".$_REQUEST['show_more_post'].", 10");
$check_res = mysql_query("SELECT * FROM facebook_posts WHERE who='$id' order by p_id desc limit ".$next_records.", 10");
$show_more_button = 0; // button in the end
$check_result = mysql_num_rows(@$check_res);
if($check_result > 0)
{
$show_more_button = 1;
}
}
else
{
$show_more_button = 1;
$result = mysql_query("SELECT *,
UNIX_TIMESTAMP() - date_created AS TimeSpent FROM facebook_posts WHERE who='$id' order by p_id desc limit 0,10");
}
while ($row = mysql_fetch_array($result))
{
$comments = mysql_query("SELECT *,
UNIX_TIMESTAMP() - date_created AS CommentTimeSpent FROM facebook_posts_comments WHERE post_id = ".$row['p_id']." order by c_id asc"); ?>
<div class="friends_area" id="record-<?php echo $row['p_id']?>">
<label style="float:left" class="name">
<?php echo $user_pic; ?>
<b><?php echo $row['firstname'];?> Wrote</b> <br />
<em><?php echo clickable_link($row['post']);?></em>
<br clear="all" />
<span>
<?php
// echo strtotime($row['date_created'],"Y-m-d H:i:s");
$days = floor($row['TimeSpent'] / (60 * 60 * 24));
$remainder = $row['TimeSpent'] % (60 * 60 * 24);
$hours = floor($remainder / (60 * 60));
$remainder = $remainder % (60 * 60);
$minutes = floor($remainder / 60);
$seconds = $remainder % 60;
if($days > 0)
echo date('F d Y', $row['date_created']);
elseif($days == 0 && $hours == 0 && $minutes == 0)
echo "few seconds ago";
elseif($days == 0 && $hours == 0)
echo $minutes.' minutes ago';
else
echo "few seconds ago";
?>
</span>
<a href="javascript: void(0)" id="post_id<?php echo $row['p_id']?>" class="showCommentBox">Comments</a>
</label>
<?php
$userip = $_SERVER['REMOTE_ADDR'];
if($row['user_id'] == $userip){?>
<a href="#" class="delete"> Remove</a>
<?php
}?>
<br clear="all" />
<div id="CommentPosted<?php echo $row['p_id']?>">
<?php
$comment_num_row = mysql_num_rows(@$comments);
if($comment_num_row > 0)
{
while ($rows = mysql_fetch_array($comments))
{
$days2 = floor($rows['CommentTimeSpent'] / (60 * 60 * 24));
$remainder = $rows['CommentTimeSpent'] % (60 * 60 * 24);
$hours = floor($remainder / (60 * 60));
$remainder = $remainder % (60 * 60);
$minutes = floor($remainder / 60);
$seconds = $remainder % 60;
?>
<div class="commentPanel" id="record-<?php echo $rows['c_id'];?>" align="left">
<img src="Wall/small.png" width="40" class="CommentImg" style="float:left;" alt="" />
<label class="postedComments">
<?php echo clickable_link($rows['comments']);?>
</label>
<br clear="all" />
<span style="margin-left:43px; color:#666666; font-size:11px">
<?php
if($days2 > 0)
echo date('F d Y', $rows['date_created']);
elseif($days2 == 0 && $hours == 0 && $minutes == 0)
echo "few seconds ago";
elseif($days2 == 0 && $hours == 0)
echo $minutes.' minutes ago';
else
echo "few seconds ago";
?>
</span>
<?php
$userip = $_SERVER['REMOTE_ADDR'];
if($rows['userip'] == $userip){?>
<a href="#" id="CID-<?php echo $rows['c_id'];?>" class="c_delete">Delete</a>
<?php
}?>
</div>
<?php
}?>
<?php
}?>
</div>
<div class="commentBox" align="right" id="commentBox-<?php echo $row['p_id'];?>" <?php echo (($comment_num_row) ? '' :'style="display:none"')?>>
<img src="Wall/small.png" width="40" class="CommentImg" style="float:left;" alt="" />
<label id="record-<?php echo $row['p_id'];?>">
<textarea class="commentMark" id="commentMark-<?php echo $row['p_id'];?>" name="commentMark" cols="60"></textarea>
</label>
<br clear="all" />
<a id="SubmitComment" class="small button comment"> Comment</a>
</div>
</div>
<?php
}
if($show_more_button == 1){?>
<div id="bottomMoreButton">
<a id="more_<?php echo @$next_records?>" class="more_records" href="javascript: void(0)">Older Posts</a>
</div>
<?php
}?>
Please help me
MOD EDIT: Spoiler'd huge quantity of code
This post has been edited by JackOfAllTrades: 28 November 2010 - 06:34 AM
Reason for edit:: ADDED CODE TAGS
Was This Post Helpful?
0
Page 1 of 1
|
|
Query failed: connection to localhost:3312 failed (errno=111, msg=Connection refused).
|

New Topic/Question
Reply


MultiQuote





|