Newgrounds.com — Everything, By Everyone.

Checking login status…

USERNAME:

PASSWORD:

Logging in…

Logged in as:
.
Logging out…
Inbox My Account Log Out


You need a Grounds Gold Account to post on the NG BBS! If you don't have one, click here to sign up now! It's fast, free, and easy — and opens up tons of great NG features!

Author Search Results: 'AcidX'

We found 326 matches.


<< < > >>

Viewing 1-30 of 326 matches. 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11

1.

Elated

Topic: Don't know if anyone knew this

Posted: 06/23/08 10:38 PM

Forum: Flash

Yeah...
I'm not sure but I think this came with CS3.
Could've been in 8, never really checked.
Only use lines for drawin me backgrounds, occaisionally.

Peace ;]


2.

Elated

Topic: How is this cool effect done,..

Posted: 06/23/08 08:01 PM

Forum: Flash

lmao


3.

Elated

Topic: I Need Ganondorf Voices From Ssbm.

Posted: 06/23/08 04:34 PM

Forum: Flash

n00b!


4.

None

Topic: The Food Collab!

Posted: 06/22/08 06:21 PM

Forum: Flash

Aight. That's cool then.
If anyone's got some links to any finished parts that'd be cool.
Feel free to PM links to me if you're keepin it all under wraps.

Don't be too concerned if ya don't hear back from me. Just close up the Collab without me.
If not, you may be hearin from me again soon.
Reason I looked so late is coz I jus finished College. Heh, w00t!

Peace out ~


5.

None

Topic: The Food Collab!

Posted: 06/22/08 05:58 PM

Forum: Flash

I may give it a shot actually.
What's the collab rules; in terms of sound, music, framerate, stage size, etc..?
Also, roughly, how long are everyone else pieces?

Peace ~


6.

None

Topic: Mass Suicide Collab [reanimated]

Posted: 06/22/08 05:32 PM

Forum: Flash

I second that.
I'd be interested in a spot in this yo.

Peace ~


7.

None

Topic: The Food Collab!

Posted: 06/22/08 05:31 PM

Forum: Flash

Yo yo!
Sup?

There any places goin in this collab? Haven't read through thread yet.
Also, anyone got links to any previews of how it's lookin atm?

Peace out ~


8.

Happy

Topic: PHP Problems

Posted: 05/19/08 06:10 PM

Forum: Programming

Well... That seems to have solved(?) that problem.

Still getting the same error when trying to add news though.

Any ideas?


9.

None

Topic: PHP Problems

Posted: 05/19/08 05:46 PM

Forum: Programming

echo "<center><h3>Edit News Topic</h3><br /><b>$topic</b></center>";
echo "<table width=\"65%\" cellpadding=\"0\" cellspacing=\"0\" align=\"center\">\n";
echo "<form action=\"index.php?action=editnews\" method=\"post\">";
echo "<tr><td>Title: </td><td><input type=\"text\" size=\"25\" name=\"title\" value=\"$title\" /></td></tr>\n";
echo "<tr><td>News Body: </td><td><textarea cols=\"40\" rows=\"15\" name=\"news\">$body</textarea></td></tr>\n";
echo "<tr><td colspan=\"2\" align=\"center\"><input type=\"submit\" name=\"submitted\" value=\" Submit \" /></td></tr>\n";
echo "<input type=\"hidden\" value=\"submitted\" />";
echo "</form>";
echo "</table>";
echo "<form action=\"index.php?action=editnews\" method=\"get\">";
echo "<input type=\"hidden\" value=\"$id\" name=\"$id\" />";
echo "</form>";
}
}
function editnews($id) {
global $db;

$title = $_POST['title'];
$newso = $_POST['news'];
$newso = strip_tags($newso, '<a><b><i><u>');

if(!isset($_SESSION['admin']) && !isset($_SESSION['password'])){
echo '<center><h3>Error!</h3></center>You do not have sufficient permission to view this page.';
}else{
if(isset($_POST['submitted'])){
$query = "SELECT id FROM news WHERE title='$title' LIMIT 1";
$result = mysql_query($query);
$row = mysql_fetch_assoc($result);
$id = $row['id'];
$date = $row['postdate'];
$query = "UPDATE news SET newstext='$newso', title='$title' WHERE id='$id' LIMIT 1";
$result = mysql_query($query);

if($result) {
$title = stripslashes($title);
echo "News topic <a href=\"index.php?action=show&id=$id\"><B>$title</B></a> has been updated. <br /> <center><a href=\"index.php\">Go Back</a></center>";
}else{
echo 'Error! <b>' . mysql_error() . '</b>';

}
}
}
}

function deletenews129($id) {
if(!isset($_SESSION['admin']) && !isset($_SESSION['password'])){
echo "<center><h3>Error!</h3></center> <br />You cannont view this page because you do not have proper identification. Please login.";
}else{
$query = "DELETE FROM news WHERE id='$id' LIMIT 1";
$result = mysql_query($query);
if($result) {
echo "The news you have select to delete has been successfully deleted.<br /> Either <a href=\"index.php\">Go back</a> or go to your <a href=\"/admin_login.php\">Admin Panel</a>";
}else{
echo 'Error! <b>' . mysql_error() . '</b>';
}
}
}


function deletecom129($id) {
if(!isset($_SESSION['admin']) && !isset($_SESSION['password'])){
echo "<center><h3>Error!</h3></center> <br />You cannont view this page because you do not have proper identification. Please login.";
}else{
$query = "DELETE FROM news_comments WHERE id='$id' LIMIT 1";
$result = mysql_query($query);
if($result) {
echo "The Comment you have select to delete has been successfully deleted.<br /> Either <a href=\"index.php\">Go back</a> or go to your <a href=\"/admin_login.php\">Admin Panel</a>";
}else{
echo 'Error! <b>' . mysql_error() . '</b>';
}
}
}


function editcom129($id) {
    global $db;
    
    if(!isset($_SESSION['admin']) && !isset($_SESSION['password'])){
        echo '<center><h3>Error!</h3></center>You do not have sufficient permission to view this page.';
    }else{
        
        $query = "SELECT * FROM news_comments WHERE id='$id'";
        $result = mysql_query ($query) or die('Error! <b>' . mysql_error() . '</b>');
        $row = mysql_fetch_assoc ($result);
        $name = $row['name'];
        $comment = $row['comment'];
        $name = stripslashes($name);
        $comment = nl2br($comment);
        $comment = strip_tags($comment, '<a><b><i><u>');
        echo "<center><h3>Edit Comment by</h3></center>";
        
        echo "<table width=\"65%\" cellpadding=\"0\" cellspacing=\"0\" align=\"center\">\n";
        echo "<form action=\"index.php?action=editnews\" method=\"post\">";
        echo "<tr><td>Name: </td><td><input type=\"text\" size=\"25\" name=\"name\" value=\"$name\" /></td></tr>\n";
        echo "<tr><td>Comment: </td><td><textarea cols=\"40\" rows=\"15\" name=\"comment\">$comment</textarea></td></tr>\n";
        echo "<tr><td colspan=\"2\" align=\"center\"><input type=\"submit\" name=\"submitted\" value=\" Submit \" /></td></tr>\n";
        echo "<input type=\"hidden\" value=\"submitted\" />";
        echo "</form>";
        echo "</table>";
        echo "<form action=\"index.php?action=editnews\" method=\"get\">";
        echo "<input type=\"hidden\" value=\"$id\" name=\"$id\" />";
        echo "</form>";
        }
    }
}
function editcom($id) {
global $db;

$comment = $_POST['comment'];
$name = $_POST['name'];
$comment = strip_tags($comment, '<a><b><i><u>');

if(!isset($_SESSION['admin']) && !isset($_SESSION['password'])){
echo '<center><h3>Error!</h3></center>You do not have sufficeint permission to view this page.';
}else{
if(isset($_POST['submitted'])){
$query = "SELECT id FROM news_comments WHERE comment='$comment' LIMIT 1";
$result = mysql_query($query);
$row = mysql_fetch_assoc($result);
$id = $row['id'];

$query = "UPDATE news_comments SET comment='$comment', name='$name' WHERE id='$id' LIMIT 1";
$result = mysql_query($query);
if($result) {
$name = stripslashes($name);

echo "Comment has been updated. <br /> <center><a href=\"index.php\">Go Back</a></center>";
}else{
echo 'Error! <b>' . mysql_error() . '</b>';

}
}
}
}


switch($_GET['action']) {

case 'show':
displayOneItem($_GET['id']);
break;
case 'showcom':
displayOneItem_withComments($_GET['id']);
break;
case 'all':
displayNews(1);
break;
case 'editnews129':
editnews129($_GET['id']);
break;
case 'editnews':
editnews();
break;
case 'deletenews129':
deletenews129($_GET['id']);
break;
case 'addcomment':
addComment($_GET['id']);
break;
case 'deletecom129':
deletecom129($_GET['id']);
break;
case 'editcom129':
editcom129($_GET['id']);
break;
case 'editcom':
editcom();
break;
case 'addnews':
addnews();
break;
case 'addnews129':
addnews129();
break;
default:
displayNews();
}

?>

Apologies that the Header & Footer aren't included (therefore the lines listed in the errors don't fully correspond to what they will be for anyone looking). Currently, the <?php starts on line 55 and the session_start is on line 1.

Any thoughts people?
Peace ~


10.

Sleeping

Topic: PHP Problems

Posted: 05/19/08 05:43 PM

Forum: Programming

Hey again peeps.
Sorted out my main issues... Now I got these problems...

When Logged In, trying to Add News:
Fatal error: Call to undefined function addnews129() in /home/willjb/public_html/index.php on line 455

When trying to View Page:
Warning: Missing argument 1 for displayNews(), called in /home/willjb/public_html/index.php on line 458 and defined in /home/willjb/public_html/index.php on line 62

And here's that code for anyone wanting to take it on:

<?php session_start(); ?>

<?php
  
$max_items = 10;

$db = mysql_connect ('localhost','USERNM','PASSWD');
mysql_select_db ('willjb_blog',$db);

function displayNews($all) {

global $db, $max_items;

if ($all == 0) {

$query = "SELECT id, title, newstext," . "DATE_FORMAT(postdate, '%b %e, %Y') as date " . "FROM news ORDER BY id DESC LIMIT $max_items";

} else {
$query = "SELECT id, title, newstext," . "DATE_FORMAT(postdate, '%b %e, %Y') as date " . "FROM news ORDER BY id DESC";
}
$result = mysql_query ($query);
while ($row = mysql_fetch_assoc ($result)) {
echo "<TABLE border=\"0\" width=\"400\" align=\"center\">\n";

$date = $row['date'];
$title = htmlentities ($row['title']);
$news = strip_tags ($row['newstext'], '<a><b><i><u>');
$news = nl2br ($news);
$id = $row['id'];

echo "<TR><TD><p><a href=\"{$_SERVER['PHP_SELF']}" . "?action=show&id=$id\"<b>$title</b></a> posted on <i>$date</i></p></TD>\n";
echo "\n";

$comment_query = "SELECT count(*) FROM news_comments " . "WHERE news_id={$row['id']}";
$comment_result = mysql_query ($comment_query);
$comment_row = mysql_fetch_row($comment_result);

echo "<TD algin=\"right\"><p><a href=\"{$_SERVER['PHP_SELF']}" . "?action=showcom&id={$row['id']}\">Comments</a> " . "{" . "$comment_row[0]}</p></TD></TR>\n";

echo "</TABLE>\n";
echo "\n";
}

if ($all == 0) {
echo "<br /><center><a href=\"{$_SERVER['PHP_SELF']}" . "?action=all\">View all news</a></center>\n";

}
}

function displayOneItem($id) {
global $db;
$query = "SELECT * FROM news WHERE id=$id";
$result = mysql_query ($query);


if (mysql_num_rows ($result) == 0) {
echo "<center><b>Error!</b></center>\n";
echo "<p>No News Exists for the ID specified. Please try again.</p>\n";
return;
}
$row = mysql_fetch_assoc($result);
echo "<TABLE border=\"0\" width=\"400\" align=\"center\">\n";

$title = htmlentities ($row['title']);
$news = strip_tags ($row['newstext'], '<a><b><i><u>');
$news = nl2br ($news);

echo "<TR><TD align=\"center\"><b><p>$title</p></b></TD></TR>\n";
echo "<tr><td align=\"center\"><p><<<------------------------------------------->>></p></td></tr>\n";
echo "<TR><TD><p>$news</p></TD></TR>\n";

echo "</TABLE>\n";
echo "<BR>\n";



echo "<Center>";

if(!isset($_SESSION['admin']) && !isset($_SESSION['password'])){
echo "";
}else{
echo "<hr color=\"#666666\" width=\"50%\" />";
echo "&rarr; <b><a href=\"index.php?action=editnews129&id=$id\">Edit News</a></b>
-- 
<b><a href=\"index.php?action=deletenews129&id=$id\" onClick=\"return confirm('Are you sure you really want to start to try to delete this valuable piece of information that can never be retrieved no matter how hard I trys?')\">Delete News</a></b> &larr;";
echo "<hr color=\"#666666\" width=\"50%\" />";

}
echo "</center>";

echo '<center><a href="' . $_SERVER[PHP_SELF] . '?action=showcom&id=' . $id . '">Show Comments</a></center>';
}
function displayOneItem_withComments($id) {
global $db;

$query = "SELECT * FROM news WHERE id=$id";
$result = mysql_query ($query);

if (mysql_num_rows ($result) == 0) {
echo "<center><b>Error!</b></center>\n";
echo "<p>No News Exists for the ID specified. Please try again.</p>\n";
return;
}
$row = mysql_fetch_assoc($result);
echo "<TABLE border=\"0\" width=\"400\" align=\"center\">\n";

$title = htmlentities ($row['title']);
$news = strip_tags ($row['newstext'], '<a><b><i><u>');
$news = nl2br ($news);

echo "<TR><TD align=\"center\"><b><p>$title</p></b></TD></TR>\n";
echo "<tr><td align=\"center\"><p><<<------------------------------------------->>></p></td></tr>\n";
echo "<TR><TD><p>$news</p></TD></TR>\n";
echo "</TABLE>\n";
echo "<BR>\n";


echo "<Center>";

if(!isset($_SESSION['admin']) && !isset($_SESSION['password'])){
echo "";
}else{
echo "<hr color=\"#666666\" width=\"50%\" />";
echo "&rarr; <b><a href=\"index.php?action=editnews129&id=$id\">Edit News</a></b>
-- 
<b><a href=\"index.php?action=deletenews129&id=$id\" onClick=\"return confirm('Are you sure you really want to start to try to delete this valuable piece of information that can never be retrieved no matter how hard I trys?')\">Delete News</a></b> &larr;";
echo "<hr color=\"#666666\" width=\"50%\" />";

}
echo "</center>";
displayComments($id);
}

function displayComments($id) { 
global $db; 
$query = "SELECT * FROM news_comments WHERE news_id=$id"; 
$result = mysql_query ($query); 
echo '<center><a href="' . $_SERVER[PHP_SELF] . '?action=show&id=' . $id . '">Show without Comments</a></center>'; 
echo "<center><h3>Comments</h3><HR width=\"100%\"></center>\n"; 
while ($row = mysql_fetch_assoc ($result)) { 
echo "<TABLE border=\"0\" width=\"400\" align=\"center\">\n"; 
$name = htmlentities ($row['name']); 
echo "<TR><TD><u>Posted by <b>$name</b></u>"; 
echo "</TD></TR>\n"; 
$comment = strip_tags ($row['comment'], '<a><b><i><u>'); 
$comment = nl2br ($comment); 
echo "<TR><TD><p>$comment</p></TD></TR>\n"; 
echo "<tr><td align=\"left\" valign=\"top\">"; 
echo "</tr></td>"; 
echo "<tr><td><p>====================================================</p></td></tr>\n"; 
echo "</TABLE>\n"; 
echo "\n";  
}

function addComment($id) {
global $db;

$query = "INSERT INTO news_comments " . "VALUES('',$id,'{$_POST['name']}'," . "'{$_POST['comment']}')";
mysql_query($query);
echo "Comment entered. Thanks!<BR>\n";
echo "<center><a href=\"{$_SERVER['PHP_SELF']}" . "?action=showcom&id=$id\">Back</a></center>\n";
}

function addnews129($id) {

global $db;

session_start();
if(!isset($_SESSION['admin']) && !isset($_SESSION['password'])){
echo '<center><h3>Error!</h3></center>You do not have sufficeint permission to view this page.';

}else{

$query = "SELECT * FROM news WHERE id=$id";
$result = mysql_query ($query);
echo "<center><h3>Add News</h3></center>\n";
echo "<div align=\"left\">";
echo "There are 4 types of add-ins allowed to be used. They are: <ul>";
echo "<li>&lt;b&gt;<b>BOLD</b>&lt;/b&gt; </li>";
echo "<li>&lt;i&gt;<i>ITALIC</i>&lt;/i&gt; </li>";
echo "<li>&lt;u&gt;<u>UNDERLINED</u>&lt;/u&gt; </li>";
echo "<li>&lt;a href=\"http://www.somesite.com\"&gt;<a href=\"http://www.somesite.com\">NAME OF SOMESITE</a>&lt;/a&gt;</li></ul>";
echo "</div>";
echo "<center><FORM action=\"{$_SERVER['PHP_SELF']}" . "?action=addnews\" method=POST>\n";
echo "Title: <input type=\"text\" " . "size=\"30\" name=\"title\"><BR>\n";
echo "<TEXTAREA cols=\"40\" rows=\"15\" " . "name=\"news\"></TEXTAREA><BR>\n";
echo "<input type=\"submit\" name=\"submit\" " . "value=\"Add News\"\n";
echo "</FORM></center>\n";
}

}

function addnews($id) {
global $db;

$title = $_POST['title'];
$newstext = $_POST['news'];
$query = "INSERT INTO news (postdate, title, newstext)" . "VALUES(NOW(), '$title', '$newstext')";
$result = mysql_query($query);

if($result){
echo "<center>News Submitted</center><BR>\n";
echo "<center><a href=\"{$_SERVER['PHP_SELF']}\">Back</a></center>\n";
}else{
echo 'Error! Something\'s wrong with the database or something!<br /><br /><b>';
echo mysql_error();
echo '</b>';

}
}


function editnews129($id) {
global $db;

if(!isset($_SESSION['admin']) && !isset($_SESSION['password'])){
echo '<center><h3>Error!</h3></center>You do not have sufficient permission to view this page.';
}else{

$query = "SELECT * FROM news WHERE id='$id'";
$result = mysql_query ($query) or die('Error! <b>' . mysql_error() . '</b>');
$row = mysql_fetch_assoc ($result);
$title = $row['title'];
$body = $row['newstext'];
$title = stripslashes($title);
$body = nl2br($body);
$body = strip_tags($body, '<a><b><i><u>');

Continued next post...


11.

Winking

Topic: Unexpected $end - custom blog

Posted: 05/18/08 04:31 PM

Forum: Programming

At 5/18/08 01:33 PM, authorblues wrote:
At 5/18/08 11:55 AM, AcidX wrote: function displayComments($id)
this function is never closed. it has no corresponding closing bracket.

Yah... Fixed that not too long ago. Just now I'm getting that undefined error stated in my last post.
The code is still the same, only the curly bracket is now closed.
Don't have a clue what's up with it tbh...


12.

None

Topic: Unexpected $end - custom blog

Posted: 05/18/08 01:22 PM

Forum: Programming

Aight... Solved that,
only now the error I'm getting is this:

Fatal error: Call to undefined function addnews129() in /home/willjb/public_html/index.php on line 455

Annoying much, hm.
Anyone got thoughts on what's up?
I haven't actually had a proper look yet as I just sorted out the other problem but I'll have a look now and report back. Anyone who can see the problem then, by all means, post the solution ;)

Peace ~


13.

None

Topic: Unexpected $end - custom blog

Posted: 05/18/08 11:56 AM

Forum: Programming

function editcom129($id) {
    global $db;
    
    if(!isset($_SESSION['admin']) && !isset($_SESSION['password'])){
        echo '<center><h3>Error!</h3></center>You do not have sufficient permission to view this page.';
    }else{
        
        $query = "SELECT * FROM news_comments WHERE id='$id'";
        $result = mysql_query ($query) or die('Error! <b>' . mysql_error() . '</b>');
        $row = mysql_fetch_assoc ($result);
        $name = $row['name'];
        $comment = $row['comment'];
        $name = stripslashes($name);
        $comment = nl2br($comment);
        $comment = strip_tags($comment, '<a><b><i><u>');
        echo "<center><h3>Edit Comment by</h3></center>";
        
        echo "<table width=\"65%\" cellpadding=\"0\" cellspacing=\"0\" align=\"center\">\n";
        echo "<form action=\"index.php?action=editnews\" method=\"post\">";
        echo "<tr><td>Name: </td><td><input type=\"text\" size=\"25\" name=\"name\" value=\"$name\" /></td></tr>\n";
        echo "<tr><td>Comment: </td><td><textarea cols=\"40\" rows=\"15\" name=\"comment\">$comment</textarea></td></tr>\n";
        echo "<tr><td colspan=\"2\" align=\"center\"><input type=\"submit\" name=\"submitted\" value=\" Submit \" /></td></tr>\n";
        echo "<input type=\"hidden\" value=\"submitted\" />";
        echo "</form>";
        echo "</table>";
        echo "<form action=\"index.php?action=editnews\" method=\"get\">";
        echo "<input type=\"hidden\" value=\"$id\" name=\"$id\" />";
        echo "</form>";
        }
    }
}
function editcom($id) {
global $db;

$comment = $_POST['comment'];
$name = $_POST['name'];
$comment = strip_tags($comment, '<a><b><i><u>');

if(!isset($_SESSION['admin']) && !isset($_SESSION['password'])){
echo '<center><h3>Error!</h3></center>You do not have sufficeint permission to view this page.';
}else{
if(isset($_POST['submitted'])){
$query = "SELECT id FROM news_comments WHERE comment='$comment' LIMIT 1";
$result = mysql_query($query);
$row = mysql_fetch_assoc($result);
$id = $row['id'];

$query = "UPDATE news_comments SET comment='$comment', name='$name' WHERE id='$id' LIMIT 1";
$result = mysql_query($query);
if($result) {
$name = stripslashes($name);

echo "Comment has been updated. <br /> <center><a href=\"index.php\">Go Back</a></center>";
}else{
echo 'Error! <b>' . mysql_error() . '</b>';

}
}
}
}


switch($_GET['action']) {

case 'show':
displayOneItem($_GET['id']);
break;
case 'showcom':
displayOneItem_withComments($_GET['id']);
break;
case 'all':
displayNews(1);
break;
case 'editnews129':
editnews129($_GET['id']);
break;
case 'editnews':
editnews();
break;
case 'deletenews129':
deletenews129($_GET['id']);
break;
case 'addcomment':
addComment($_GET['id']);
break;
case 'deletecom129':
deletecom129($_GET['id']);
break;
case 'editcom129':
editcom129($_GET['id']);
break;
case 'editcom':
editcom();
break;
case 'addnews':
addnews();
break;
case 'addnews129':
addnews129();
break;
default:
displayNews();
}

?>

That's all the code, minus the header and footer of course.
Any thoughts guys?
And is the database pointed to correctly? That's the full name of the database, as opposed to just blog or _blog..

Peace ~


14.

Beaten

Topic: Unexpected $end - custom blog

Posted: 05/18/08 11:55 AM

Forum: Programming

Hey.
Recently embarked on setting up a PHP blog system using a code provided to me, here at NG, via Mr. Hulse. The login page works fine and, as far as I know, it's all correct. However, when trying to view the main page it retrieves the following error.

Parse error: syntax error, unexpected $end in /home/willjb/public_html/index.php on line 480

Now, the code is long so will have to be spread out over two posts, but, anyone who wants to have a look and give a shot at fixing it is more than welcome. I'm completely stumped on this one.

<?php session_start(); ?>
  
<?php
  
$max_items = 10;

$db = mysql_connect ('localhost','USERNM','PASSWRD');
mysql_select_db ('willjb_blog',$db);


function displayNews($all) {

global $db, $max_items;

if ($all == 0) {

$query = "SELECT id, title, newstext," . "DATE_FORMAT(postdate, '%b %e, %Y') as date " . "FROM news ORDER BY id DESC LIMIT $max_items";

} else {
$query = "SELECT id, title, newstext," . "DATE_FORMAT(postdate, '%b %e, %Y') as date " . "FROM news ORDER BY id DESC";
}
$result = mysql_query ($query);
while ($row = mysql_fetch_assoc ($result)) {
echo "<TABLE border=\"0\" width=\"400\" align=\"center\">\n";


$date = $row['date'];
$title = htmlentities ($row['title']);
$news = strip_tags ($row['newstext'], '<a><b><i><u>');
$news = nl2br ($news);
$id = $row['id'];

echo "<TR><TD><p><a href=\"{$_SERVER['PHP_SELF']}" . "?action=show&id=$id\"<b>$title</b></a> posted on <i>$date</i></p></TD>\n";
echo "\n";


$comment_query = "SELECT count(*) FROM news_comments " . "WHERE news_id={$row['id']}";
$comment_result = mysql_query ($comment_query);
$comment_row = mysql_fetch_row($comment_result);

echo "<TD algin=\"right\"><p><a href=\"{$_SERVER['PHP_SELF']}" . "?action=showcom&id={$row['id']}\">Comments</a> " . "{" . "$comment_row[0]}</p></TD></TR>\n";

echo "</TABLE>\n";
echo "\n";
}

if ($all == 0) {
echo "<br /><center><a href=\"{$_SERVER['PHP_SELF']}" . "?action=all\">View all news</a></center>\n";
}
}


function displayOneItem($id) {
global $db;
$query = "SELECT * FROM news WHERE id=$id";
$result = mysql_query ($query);


if (mysql_num_rows ($result) == 0) {
echo "<center><b>Error!</b></center>\n";
echo "<p>No News Exists for the ID specified. Please try again.</p>\n";
return;
}
$row = mysql_fetch_assoc($result);
echo "<TABLE border=\"0\" width=\"400\" align=\"center\">\n";

$title = htmlentities ($row['title']);
$news = strip_tags ($row['newstext'], '<a><b><i><u>');
$news = nl2br ($news);

echo "<TR><TD align=\"center\"><b><p>$title</p></b></TD></TR>\n";
echo "<tr><td align=\"center\"><p><<<------------------------------------------->>></p></td></tr>\n";
echo "<TR><TD><p>$news</p></TD></TR>\n";

echo "</TABLE>\n";
echo "<BR>\n";



echo "<Center>";

if(!isset($_SESSION['admin']) && !isset($_SESSION['password'])){
echo "";
}else{
echo "<hr color=\"#666666\" width=\"50%\" />";
echo "&rarr; <b><a href=\"index.php?action=editnews129&id=$id\">Edit News</a></b>
-- 
<b><a href=\"index.php?action=deletenews129&id=$id\" onClick=\"return confirm('Are you sure you really want to start to try to delete this valuable piece of information that can never be retrieved no matter how hard I trys?')\">Delete News</a></b> &larr;";
echo "<hr color=\"#666666\" width=\"50%\" />";

}
echo "</center>";

echo '<center><a href="' . $_SERVER[PHP_SELF] . '?action=showcom&id=' . $id . '">Show Comments</a></center>';
}
function displayOneItem_withComments($id) {
global $db;

$query = "SELECT * FROM news WHERE id=$id";
$result = mysql_query ($query);

if (mysql_num_rows ($result) == 0) {
echo "<center><b>Error!</b></center>\n";
echo "<p>No News Exists for the ID specified. Please try again.</p>\n";
return;
}
$row = mysql_fetch_assoc($result);
echo "<TABLE border=\"0\" width=\"400\" align=\"center\">\n";

$title = htmlentities ($row['title']);
$news = strip_tags ($row['newstext'], '<a><b><i><u>');
$news = nl2br ($news);

echo "<TR><TD align=\"center\"><b><p>$title</p></b></TD></TR>\n";
echo "<tr><td align=\"center\"><p><<<------------------------------------------->>></p></td></tr>\n";
echo "<TR><TD><p>$news</p></TD></TR>\n";
echo "</TABLE>\n";
echo "<BR>\n";


echo "<Center>";

if(!isset($_SESSION['admin']) && !isset($_SESSION['password'])){
echo "";
}else{
echo "<hr color=\"#666666\" width=\"50%\" />";
echo "&rarr; <b><a href=\"index.php?action=editnews129&id=$id\">Edit News</a></b>
-- 
<b><a href=\"index.php?action=deletenews129&id=$id\" onClick=\"return confirm('Are you sure you really want to start to try to delete this valuable piece of information that can never be retrieved no matter how hard I trys?')\">Delete News</a></b> &larr;";
echo "<hr color=\"#666666\" width=\"50%\" />";

}
echo "</center>";
displayComments($id);
}
function displayComments($id) {

global $db;

$query = "SELECT * FROM news_comments WHERE news_id=$id";
$result = mysql_query ($query);

echo '<center><a href="' . $_SERVER[PHP_SELF] . '?action=show&id=' . $id . '">Show without Comments</a></center>';
echo "<center><h3>Comments</h3><HR width=\"100%\"></center>\n";

while ($row = mysql_fetch_assoc ($result)) {
echo "<TABLE border=\"0\" width=\"400\" align=\"center\">\n";

$name = htmlentities ($row['name']);
echo "<TR><TD><u>Posted by <b>$name</b></u>";

echo "</TD></TR>\n";

$comment = strip_tags ($row['comment'], '<a><b><i><u>');
$comment = nl2br ($comment);
echo "<TR><TD><p>$comment</p></TD></TR>\n";
echo "<tr><td align=\"left\" valign=\"top\">";

if(!isset($_SESSION['admin']) && !isset($_SESSION['password'])){
echo "";
}else{

echo "<p>&larr; <a href=\"index.php?action=editcom129&id={$row['id']}\">Edit Comment</a> -- <a href=\"index.php?action=deletecom129&id={$row['id']}\" onClick=\"return confirm('Are you sure you really want to start to try to delete this valuable piece of information that can never be retrieved no matter how hard I trys?')\">Delete Comment</a> &rarr;</p>";
}
echo "</tr></td>";
echo "<tr><td><p>====================================================</p></td></tr>\n";

echo "</TABLE>\n";
echo "\n";
function addComment($id) {
global $db;

$query = "INSERT INTO news_comments " . "VALUES('',$id,'{$_POST['name']}'," . "'{$_POST['comment']}')";
mysql_query($query);
echo "Comment entered. Thanks!<BR>\n";
echo "<center><a href=\"{$_SERVER['PHP_SELF']}" . "?action=showcom&id=$id\">Back</a></center>\n";
}

function addnews129($id) {

global $db;

session_start();
if(!isset($_SESSION['admin']) && !isset($_SESSION['password'])){
echo '<center><h3>Error!</h3></center>You do not have sufficeint permission to view this page.';

}else{

$query = "SELECT * FROM news WHERE id=$id";
$result = mysql_query ($query);
echo "<center><h3>Add News</h3></center>\n";
echo "<div align=\"left\">";
echo "There are 4 types of add-ins allowed to be used. They are: <ul>";
echo "<li>&lt;b&gt;<b>BOLD</b>&lt;/b&gt; </li>";
echo "<li>&lt;i&gt;<i>ITALIC</i>&lt;/i&gt; </li>";
echo "<li>&lt;u&gt;<u>UNDERLINED</u>&lt;/u&gt; </li>";
echo "<li>&lt;a href=\"http://www.somesite.com\"&gt;<a href=\"http://www.somesite.com\">NAME OF SOMESITE</a>&lt;/a&gt;</li></ul>";
echo "</div>";
echo "<center><FORM action=\"{$_SERVER['PHP_SELF']}" . "?action=addnews\" method=POST>\n";
echo "Title: <input type=\"text\" " . "size=\"30\" name=\"title\"><BR>\n";
echo "<TEXTAREA cols=\"40\" rows=\"15\" " . "name=\"news\"></TEXTAREA><BR>\n";
echo "<input type=\"submit\" name=\"submit\" " . "value=\"Add News\"\n";
echo "</FORM></center>\n";
}

}


function addnews($id) {
global $db;

$title = $_POST['title'];
$newstext = $_POST['news'];
$query = "INSERT INTO news (postdate, title, newstext)" . "VALUES(NOW(), '$title', '$newstext')";
$result = mysql_query($query);

if($result){
echo "<center>News Submitted</center><BR>\n";
echo "<center><a href=\"{$_SERVER['PHP_SELF']}\">Back</a></center>\n";
}else{
echo 'Error! Something\'s wrong with the database or something!<br /><br /><b>';
echo mysql_error();
echo '</b>';

}
}


function editnews129($id) {
global $db;

if(!isset($_SESSION['admin']) && !isset($_SESSION['password'])){
echo '<center><h3>Error!</h3></center>You do not have sufficient permission

15.

None

Topic: Good Designs?

Posted: 05/18/08 11:34 AM

Forum: Programming


16.

None

Topic: Creating Custom Cms?

Posted: 05/16/08 12:26 PM

Forum: Programming

Aight.
Thanks a lot for those links dude.
Lookin at a lot of this, my experience with PhpBB/FetchAll should be very similar to this.
I'll start workin on a basic version of things to come and see how it goes. On top of my coursework, etc, it's gonna be slow progress but it'll get done.

Cheers ~


17.

None

Topic: Creating Custom Cms?

Posted: 05/15/08 07:51 PM

Forum: Programming

At 5/15/08 07:38 PM, X-Gary-Gigax-X wrote: roflmao

Yeah, it's all about the fuckin rolfmao enit.


18.

None

Topic: Creating Custom Cms?

Posted: 05/15/08 06:16 PM

Forum: Programming

Hey.
Cheers for the response. Forgot to mention I'm also very farmiliar with PHP as, like HTML, it is near second nature to me from working with it a lot in the past (forums and various PHP operated aspects of my old site).

Heh.
My bad.

I've looked into Wordpress and Drupal before but never got too far. There's just so much going on and the system doesn't particularly compliment the way I work. I figured embarking on a simple system would be more beneficial to me as It will also allow me complete control if I ever chose to redesign or upload custom pages and whatnot.

~


19.

None

Topic: Creating Custom Cms?

Posted: 05/15/08 05:34 PM

Forum: Programming

Hey.
Serious request here.

Thinking about starting up my own website as a sorta portfolio to showcase the various things I do. Was considering setting up my own Content Management System, only with the bare essentials I'd be after. For example:
- A simple News Posting/Blog system which would allow viewers to posts comments (possible to track IP's in case of spammers?)
- Something which would enable me to Photos/Images? Ability to comment these would also be a great plus side. The ability to upload .SWF's would be good too, though that is also fine done manually if that'd be a pain.

Other than that, all the excess stuff would be simple codes such as a calender and RSS updates or whatever.
I'm experienced in HTML and CSS enough to embark on something like this, provided someone could perhaps sort me out with some information on what to do with my databases and such. That's something I'm not so educated on as I've always used automated systems in the past.

Thanks for your time. Any help is appreciated.
~


20.

Shouting

Topic: Quick Caption Competiton

Posted: 04/06/08 07:07 PM

Forum: General

AW HOYL SHEIT!1/.


21.

None

Topic: horny hentai lover LOLZ

Posted: 03/13/08 10:22 PM

Forum: General

At 6/16/07 09:55 AM, joeyjoe1 wrote:
At 6/16/07 09:54 AM, ismellarat wrote: Its funny how there are tissues up in the corner.
what a sad little boy.
Yep.


YEP.
He blatantly sleeps face down every night and fulfils his all his comic book fantasies.

Slightly unnerving that you managed to find that image...

22.

Elated

Topic: Robbed and Pissed

Posted: 03/13/08 10:19 PM

Forum: General

Just take pride in the fact that you will never have to stoop to their level.


23.

Mad as Hell

Topic: I made a bet...

Posted: 03/13/08 10:12 PM

Forum: General

Someone please ban him from the BBS for a week.
It would be so very worth crushing all his hopes and dreams with the click of a button.


24.

None

Topic: special talents...

Posted: 03/13/08 10:09 PM

Forum: General

I can crack my neck, shoulders, arms, legs, wrists, face, eyes, fingers, toes, etc..
Also I've done a fair few huge burps in my time.

Sometimes I like to draw as well.

25.

Questioning

Topic: Spent

Posted: 03/13/08 10:03 PM

Forum: General

Lovely.
Has to be on of the most revolting art forms ever...

Why didn't I think of that

26.

Thinking

Topic: Man has 100th bday party at Hooters

Posted: 03/13/08 09:56 PM

Forum: General

Get in!


27.

None

Topic: Site Outage

Posted: 08/16/07 07:54 PM

Forum: NG News

At 8/16/07 05:50 PM, Tim wrote: The site will be going down tomorrow morning for maintenance. The outage will begin around 8-10am and last for 1-2 hours. Sorry for the inconvenience.

O.MF. WHAT IN THE NAME OF TOM F*LP!?
I'M NEVER COMING TO THIS SITE EVER AGAIN IN MY SAD, SORRY LITTLE LIFE.

k. I feel better now.
Thanks for the info.

Just out of interest, is there any word on when feautres like the "View Flash Portal Reviews" and such in our account pages will be functional?
Just little things I always liked to have =)

peace ~


28.

Winking

Topic: Draw Luis

Posted: 08/02/07 10:25 PM

Forum: Art

At 8/1/07 09:44 PM, Luis wrote: if only i could grow facial hair.

Because Mexicans and facial hair is funny.

Yes I got lazy with the background; it's only a quickie.
Sue me.

Draw Luis


29.

Happy

Topic: Flash Reg's Uk Meetup 07 Innit

Posted: 08/02/07 06:08 PM

Forum: Flash

Hey again.
Just thought that it would make sense for us to get in touch with some of the obvious ones? (Super Flash Bros for a start).
So if you happen to be on the portal and see a submission from a UK regular, make sure to send em a PM pointing them in the direction.
I can contact the SFB if no one else has already?
Oh well, I'll do it in a bit anyways ;D

Also, I'll probably only be coming for one day (Saturday) but will arrive early and leave late (or early if ugetme;) Depends on the prices of places to stay really. I can bring a sleeping bag if necessary...

Hell, I could pass out in a pool of my own vomit in Camden market and I'd be happy ;P

Peace!


30.

None

Topic: Flash Reg's Uk Meetup 07 Innit

Posted: 08/02/07 01:21 PM

Forum: Flash

At 8/2/07 10:57 AM, Rustygames wrote: 2) We cannot go to a bar and get drinks because a lot of users who would want to come are under 18

Why dont we all go to the zoo :D

And, obviously, bring a whole load of intoxication with us before we show up, right?
and no worries! I can join ya'll in the bar ;D
And the more of us there are at a bar, the less we'll get questioned about age =)

FACT

All times are Eastern Daylight Time (GMT -4) | Current Time: 06:58 AM

<< < > >>

Viewing 1-30 of 326 matches. 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11