<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[PunBB Forums — Image Upload Mod & free image hosting]]></title>
		<link>https://punbb.informer.com/forums/topic/17353/image-upload-mod-free-image-hosting/</link>
		<atom:link href="https://punbb.informer.com/forums/feed/rss/topic/17353/" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in Image Upload Mod & free image hosting.]]></description>
		<lastBuildDate>Wed, 12 Mar 2008 15:23:08 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Image Upload Mod & free image hosting]]></title>
			<link>https://punbb.informer.com/forums/post/111433/#p111433</link>
			<description><![CDATA[<p>I&#039;m getting an error, too. I tried to include it in my own post.php later, but it gave me the same error. Is it possible that some hosts do not exept a PHP-include that includes a page of different servers?</p>]]></description>
			<author><![CDATA[null@example.com (Goldex)]]></author>
			<pubDate>Wed, 12 Mar 2008 15:23:08 +0000</pubDate>
			<guid>https://punbb.informer.com/forums/post/111433/#p111433</guid>
		</item>
		<item>
			<title><![CDATA[Re: Image Upload Mod & free image hosting]]></title>
			<link>https://punbb.informer.com/forums/post/106441/#p106441</link>
			<description><![CDATA[<p>I&#039;ve only added:</p><div class="codebox"><pre><code>&lt;?php 
// Loads Image Upload - free image hosting by AdsBB
include(&quot;http://adsbb.com/free_image_hosting/index.html&quot;);
 ?&gt;</code></pre></div><p>Here is my post.php:</p><div class="codebox"><pre><code>&lt;?php
/***********************************************************************

  Copyright (C) 2002-2005  Rickard Andersson (rickard@punbb.org)

  This file is part of PunBB.

  PunBB 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 2 of the License,
  or (at your option) any later version.

  PunBB 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, write to the Free Software
  Foundation, Inc., 59 Temple Place, Suite 330, Boston,
  MA  02111-1307  USA

************************************************************************/


define(&#039;PUN_ROOT&#039;, &#039;./&#039;);
require PUN_ROOT.&#039;include/common.php&#039;;


if ($pun_user[&#039;g_read_board&#039;] == &#039;0&#039;)
    message($lang_common[&#039;No view&#039;]);


$tid = isset($_GET[&#039;tid&#039;]) ? intval($_GET[&#039;tid&#039;]) : 0;
$fid = isset($_GET[&#039;fid&#039;]) ? intval($_GET[&#039;fid&#039;]) : 0;
if ($tid &lt; 1 &amp;&amp; $fid &lt; 1 || $tid &gt; 0 &amp;&amp; $fid &gt; 0)
    message($lang_common[&#039;Bad request&#039;]);

// Fetch some info about the topic and/or the forum
if ($tid)
    $result = $db-&gt;query(&#039;SELECT f.id, f.forum_name, f.moderators, f.redirect_url, fp.post_replies, fp.post_topics, t.subject, t.closed FROM &#039;.$db-&gt;prefix.&#039;topics AS t INNER JOIN &#039;.$db-&gt;prefix.&#039;forums AS f ON f.id=t.forum_id LEFT JOIN &#039;.$db-&gt;prefix.&#039;forum_perms AS fp ON (fp.forum_id=f.id AND fp.group_id=&#039;.$pun_user[&#039;g_id&#039;].&#039;) WHERE (fp.read_forum IS NULL OR fp.read_forum=1) AND t.id=&#039;.$tid) or error(&#039;Unable to fetch forum info&#039;, __FILE__, __LINE__, $db-&gt;error());
else
    $result = $db-&gt;query(&#039;SELECT f.id, f.forum_name, f.moderators, f.redirect_url, fp.post_replies, fp.post_topics FROM &#039;.$db-&gt;prefix.&#039;forums AS f LEFT JOIN &#039;.$db-&gt;prefix.&#039;forum_perms AS fp ON (fp.forum_id=f.id AND fp.group_id=&#039;.$pun_user[&#039;g_id&#039;].&#039;) WHERE (fp.read_forum IS NULL OR fp.read_forum=1) AND f.id=&#039;.$fid) or error(&#039;Unable to fetch forum info&#039;, __FILE__, __LINE__, $db-&gt;error());

if (!$db-&gt;num_rows($result))
    message($lang_common[&#039;Bad request&#039;]);

$cur_posting = $db-&gt;fetch_assoc($result);

// Is someone trying to post into a redirect forum?
if ($cur_posting[&#039;redirect_url&#039;] != &#039;&#039;)
    message($lang_common[&#039;Bad request&#039;]);

// Sort out who the moderators are and if we are currently a moderator (or an admin)
$mods_array = ($cur_posting[&#039;moderators&#039;] != &#039;&#039;) ? unserialize($cur_posting[&#039;moderators&#039;]) : array();
$is_admmod = ($pun_user[&#039;g_id&#039;] == PUN_ADMIN || ($pun_user[&#039;g_id&#039;] == PUN_MOD &amp;&amp; array_key_exists($pun_user[&#039;username&#039;], $mods_array))) ? true : false;

// Do we have permission to post?
if ((($tid &amp;&amp; (($cur_posting[&#039;post_replies&#039;] == &#039;&#039; &amp;&amp; $pun_user[&#039;g_post_replies&#039;] == &#039;0&#039;) || $cur_posting[&#039;post_replies&#039;] == &#039;0&#039;)) ||
    ($fid &amp;&amp; (($cur_posting[&#039;post_topics&#039;] == &#039;&#039; &amp;&amp; $pun_user[&#039;g_post_topics&#039;] == &#039;0&#039;) || $cur_posting[&#039;post_topics&#039;] == &#039;0&#039;)) ||
    (isset($cur_posting[&#039;closed&#039;]) &amp;&amp; $cur_posting[&#039;closed&#039;] == &#039;1&#039;)) &amp;&amp;
    !$is_admmod)
    message($lang_common[&#039;No permission&#039;]);

// Load the post.php language file
require PUN_ROOT.&#039;lang/&#039;.$pun_user[&#039;language&#039;].&#039;/post.php&#039;;

// Start with a clean slate
$errors = array();


// Did someone just hit &quot;Submit&quot; or &quot;Preview&quot;?
if (isset($_POST[&#039;form_sent&#039;]))
{
    // Make sure form_user is correct
    if (($pun_user[&#039;is_guest&#039;] &amp;&amp; $_POST[&#039;form_user&#039;] != &#039;Guest&#039;) || (!$pun_user[&#039;is_guest&#039;] &amp;&amp; $_POST[&#039;form_user&#039;] != $pun_user[&#039;username&#039;]))
        message($lang_common[&#039;Bad request&#039;]);

    // Flood protection
    if (!$pun_user[&#039;is_guest&#039;] &amp;&amp; !isset($_POST[&#039;preview&#039;]) &amp;&amp; $pun_user[&#039;last_post&#039;] != &#039;&#039; &amp;&amp; (time() - $pun_user[&#039;last_post&#039;]) &lt; $pun_user[&#039;g_post_flood&#039;])
        $errors[] = $lang_post[&#039;Flood start&#039;].&#039; &#039;.$pun_user[&#039;g_post_flood&#039;].&#039; &#039;.$lang_post[&#039;flood end&#039;];

    // If it&#039;s a new topic
    if ($fid)
    {
        $subject = pun_trim($_POST[&#039;req_subject&#039;]);

        if ($subject == &#039;&#039;)
            $errors[] = $lang_post[&#039;No subject&#039;];
        else if (pun_strlen($subject) &gt; 70)
            $errors[] = $lang_post[&#039;Too long subject&#039;];
        else if ($pun_config[&#039;p_subject_all_caps&#039;] == &#039;0&#039; &amp;&amp; strtoupper($subject) == $subject &amp;&amp; $pun_user[&#039;g_id&#039;] &gt; PUN_MOD)
            $subject = ucwords(strtolower($subject));
    }

    // If the user is logged in we get the username and e-mail from $pun_user
    if (!$pun_user[&#039;is_guest&#039;])
    {
        $username = $pun_user[&#039;username&#039;];
        $email = $pun_user[&#039;email&#039;];
    }
    // Otherwise it should be in $_POST
    else
    {
        $username = trim($_POST[&#039;req_username&#039;]);
        $email = strtolower(trim(($pun_config[&#039;p_force_guest_email&#039;] == &#039;1&#039;) ? $_POST[&#039;req_email&#039;] : $_POST[&#039;email&#039;]));

        // Load the register.php/profile.php language files
        require PUN_ROOT.&#039;lang/&#039;.$pun_user[&#039;language&#039;].&#039;/prof_reg.php&#039;;
        require PUN_ROOT.&#039;lang/&#039;.$pun_user[&#039;language&#039;].&#039;/register.php&#039;;

        // It&#039;s a guest, so we have to validate the username
        if (strlen($username) &lt; 2)
            $errors[] = $lang_prof_reg[&#039;Username too short&#039;];
        else if (!strcasecmp($username, &#039;Guest&#039;) || !strcasecmp($username, $lang_common[&#039;Guest&#039;]))
            $errors[] = $lang_prof_reg[&#039;Username guest&#039;];
        else if (preg_match(&#039;/[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}/&#039;, $username))
            $errors[] = $lang_prof_reg[&#039;Username IP&#039;];

        if ((strpos($username, &#039;[&#039;) !== false || strpos($username, &#039;]&#039;) !== false) &amp;&amp; strpos($username, &#039;\&#039;&#039;) !== false &amp;&amp; strpos($username, &#039;&quot;&#039;) !== false)
            $errors[] = $lang_prof_reg[&#039;Username reserved chars&#039;];
        if (preg_match(&#039;#\[b\]|\[/b\]|\[u\]|\[/u\]|\[i\]|\[/i\]|\[color|\[/color\]|\[quote\]|\[quote=|\[/quote\]|\[code\]|\[/code\]|\[img\]|\[/img\]|\[url|\[/url\]|\[email|\[/email\]#i&#039;, $username))
            $errors[] = $lang_prof_reg[&#039;Username BBCode&#039;];

        // Check username for any censored words
        $temp = censor_words($username);
        if ($temp != $username)
            $errors[] = $lang_register[&#039;Username censor&#039;];

        // Check that the username (or a too similar username) is not already registered
        $result = $db-&gt;query(&#039;SELECT username FROM &#039;.$db-&gt;prefix.&#039;users WHERE username=\&#039;&#039;.$db-&gt;escape($username).&#039;\&#039; OR username=\&#039;&#039;.$db-&gt;escape(preg_replace(&#039;/[^\w]/&#039;, &#039;&#039;, $username)).&#039;\&#039;&#039;) or error(&#039;Unable to fetch user info&#039;, __FILE__, __LINE__, $db-&gt;error());
        if ($db-&gt;num_rows($result))
        {
            $busy = $db-&gt;result($result);
            $errors[] = $lang_register[&#039;Username dupe 1&#039;].&#039; &#039;.pun_htmlspecialchars($busy).&#039;. &#039;.$lang_register[&#039;Username dupe 2&#039;];
        }

        if ($pun_config[&#039;p_force_guest_email&#039;] == &#039;1&#039; || $email != &#039;&#039;)
        {
            require PUN_ROOT.&#039;include/email.php&#039;;
            if (!is_valid_email($email))
                $errors[] = $lang_common[&#039;Invalid e-mail&#039;];
        }
    }

    // Clean up message from POST
    $message = pun_linebreaks(pun_trim($_POST[&#039;req_message&#039;]));

    if ($message == &#039;&#039;)
        $errors[] = $lang_post[&#039;No message&#039;];
    else if (strlen($message) &gt; 65535)
        $errors[] = $lang_post[&#039;Too long message&#039;];
    else if ($pun_config[&#039;p_message_all_caps&#039;] == &#039;0&#039; &amp;&amp; strtoupper($message) == $message &amp;&amp; $pun_user[&#039;g_id&#039;] &gt; PUN_MOD)
        $message = ucwords(strtolower($message));

    // Validate BBCode syntax
    if ($pun_config[&#039;p_message_bbcode&#039;] == &#039;1&#039; &amp;&amp; strpos($message, &#039;[&#039;) !== false &amp;&amp; strpos($message, &#039;]&#039;) !== false)
    {
        require PUN_ROOT.&#039;include/parser.php&#039;;
        $message = preparse_bbcode($message, $errors);
    }


    require PUN_ROOT.&#039;include/search_idx.php&#039;;

    $hide_smilies = isset($_POST[&#039;hide_smilies&#039;]) ? 1 : 0;
    $subscribe = isset($_POST[&#039;subscribe&#039;]) ? 1 : 0;

    $now = time();

    // Did everything go according to plan?
    if (empty($errors) &amp;&amp; !isset($_POST[&#039;preview&#039;]))
    {
        // If it&#039;s a reply
        if ($tid)
        {
            if (!$pun_user[&#039;is_guest&#039;])
            {
                // Insert the new post
                $db-&gt;query(&#039;INSERT INTO &#039;.$db-&gt;prefix.&#039;posts (poster, poster_id, poster_ip, message, hide_smilies, posted, topic_id) VALUES(\&#039;&#039;.$db-&gt;escape($username).&#039;\&#039;, &#039;.$pun_user[&#039;id&#039;].&#039;, \&#039;&#039;.get_remote_address().&#039;\&#039;, \&#039;&#039;.$db-&gt;escape($message).&#039;\&#039;, \&#039;&#039;.$hide_smilies.&#039;\&#039;, &#039;.$now.&#039;, &#039;.$tid.&#039;)&#039;) or error(&#039;Unable to create post&#039;, __FILE__, __LINE__, $db-&gt;error());
                $new_pid = $db-&gt;insert_id();

                // To subscribe or not to subscribe, that ...
                if ($pun_config[&#039;o_subscriptions&#039;] == &#039;1&#039; &amp;&amp; $subscribe)
                {
                    $result = $db-&gt;query(&#039;SELECT 1 FROM &#039;.$db-&gt;prefix.&#039;subscriptions WHERE user_id=&#039;.$pun_user[&#039;id&#039;].&#039; AND topic_id=&#039;.$tid) or error(&#039;Unable to fetch subscription info&#039;, __FILE__, __LINE__, $db-&gt;error());
                    if (!$db-&gt;num_rows($result))
                        $db-&gt;query(&#039;INSERT INTO &#039;.$db-&gt;prefix.&#039;subscriptions (user_id, topic_id) VALUES(&#039;.$pun_user[&#039;id&#039;].&#039; ,&#039;.$tid.&#039;)&#039;) or error(&#039;Unable to add subscription&#039;, __FILE__, __LINE__, $db-&gt;error());
                }
            }
            else
            {
                // It&#039;s a guest. Insert the new post
                $email_sql = ($pun_config[&#039;p_force_guest_email&#039;] == &#039;1&#039; || $email != &#039;&#039;) ? &#039;\&#039;&#039;.$email.&#039;\&#039;&#039; : &#039;NULL&#039;;
                $db-&gt;query(&#039;INSERT INTO &#039;.$db-&gt;prefix.&#039;posts (poster, poster_ip, poster_email, message, hide_smilies, posted, topic_id) VALUES(\&#039;&#039;.$db-&gt;escape($username).&#039;\&#039;, \&#039;&#039;.get_remote_address().&#039;\&#039;, &#039;.$email_sql.&#039;, \&#039;&#039;.$db-&gt;escape($message).&#039;\&#039;, \&#039;&#039;.$hide_smilies.&#039;\&#039;, &#039;.$now.&#039;, &#039;.$tid.&#039;)&#039;) or error(&#039;Unable to create post&#039;, __FILE__, __LINE__, $db-&gt;error());
                $new_pid = $db-&gt;insert_id();
            }

            // Count number of replies in the topic
            $result = $db-&gt;query(&#039;SELECT COUNT(id) FROM &#039;.$db-&gt;prefix.&#039;posts WHERE topic_id=&#039;.$tid) or error(&#039;Unable to fetch post count for topic&#039;, __FILE__, __LINE__, $db-&gt;error());
            $num_replies = $db-&gt;result($result, 0) - 1;

            // Update topic
            $db-&gt;query(&#039;UPDATE &#039;.$db-&gt;prefix.&#039;topics SET num_replies=&#039;.$num_replies.&#039;, last_post=&#039;.$now.&#039;, last_post_id=&#039;.$new_pid.&#039;, last_poster=\&#039;&#039;.$db-&gt;escape($username).&#039;\&#039; WHERE id=&#039;.$tid) or error(&#039;Unable to update topic&#039;, __FILE__, __LINE__, $db-&gt;error());

            update_search_index(&#039;post&#039;, $new_pid, $message);

            update_forum($cur_posting[&#039;id&#039;]);

            // Should we send out notifications?
            if ($pun_config[&#039;o_subscriptions&#039;] == &#039;1&#039;)
            {
                // Get the post time for the previous post in this topic
                $result = $db-&gt;query(&#039;SELECT posted FROM &#039;.$db-&gt;prefix.&#039;posts WHERE topic_id=&#039;.$tid.&#039; ORDER BY id DESC LIMIT 1, 1&#039;) or error(&#039;Unable to fetch post info&#039;, __FILE__, __LINE__, $db-&gt;error());
                $previous_post_time = $db-&gt;result($result);

                // Get any subscribed users that should be notified (banned users are excluded)
                $result = $db-&gt;query(&#039;SELECT u.id, u.email, u.notify_with_post, u.language FROM &#039;.$db-&gt;prefix.&#039;users AS u INNER JOIN &#039;.$db-&gt;prefix.&#039;subscriptions AS s ON u.id=s.user_id LEFT JOIN &#039;.$db-&gt;prefix.&#039;forum_perms AS fp ON (fp.forum_id=&#039;.$cur_posting[&#039;id&#039;].&#039; AND fp.group_id=u.group_id) LEFT JOIN &#039;.$db-&gt;prefix.&#039;online AS o ON u.id=o.user_id LEFT JOIN &#039;.$db-&gt;prefix.&#039;bans AS b ON u.username=b.username WHERE b.username IS NULL AND COALESCE(o.logged, u.last_visit)&gt;&#039;.$previous_post_time.&#039; AND (fp.read_forum IS NULL OR fp.read_forum=1) AND s.topic_id=&#039;.$tid.&#039; AND u.id!=&#039;.intval($pun_user[&#039;id&#039;])) or error(&#039;Unable to fetch subscription info&#039;, __FILE__, __LINE__, $db-&gt;error());
                if ($db-&gt;num_rows($result))
                {
                    require_once PUN_ROOT.&#039;include/email.php&#039;;

                    $notification_emails = array();

                    // Loop through subscribed users and send e-mails
                    while ($cur_subscriber = $db-&gt;fetch_assoc($result))
                    {
                        // Is the subscription e-mail for $cur_subscriber[&#039;language&#039;] cached or not?
                        if (!isset($notification_emails[$cur_subscriber[&#039;language&#039;]]))
                        {
                            if (file_exists(PUN_ROOT.&#039;lang/&#039;.$cur_subscriber[&#039;language&#039;].&#039;/mail_templates/new_reply.tpl&#039;))
                            {
                                // Load the &quot;new reply&quot; template
                                $mail_tpl = trim(file_get_contents(PUN_ROOT.&#039;lang/&#039;.$cur_subscriber[&#039;language&#039;].&#039;/mail_templates/new_reply.tpl&#039;));

                                // Load the &quot;new reply full&quot; template (with post included)
                                $mail_tpl_full = trim(file_get_contents(PUN_ROOT.&#039;lang/&#039;.$cur_subscriber[&#039;language&#039;].&#039;/mail_templates/new_reply_full.tpl&#039;));

                                // The first row contains the subject (it also starts with &quot;Subject:&quot;)
                                $first_crlf = strpos($mail_tpl, &quot;\n&quot;);
                                $mail_subject = trim(substr($mail_tpl, 8, $first_crlf-8));
                                $mail_message = trim(substr($mail_tpl, $first_crlf));

                                $first_crlf = strpos($mail_tpl_full, &quot;\n&quot;);
                                $mail_subject_full = trim(substr($mail_tpl_full, 8, $first_crlf-8));
                                $mail_message_full = trim(substr($mail_tpl_full, $first_crlf));

                                $mail_subject = str_replace(&#039;&lt;topic_subject&gt;&#039;, &#039;\&#039;&#039;.$cur_posting[&#039;subject&#039;].&#039;\&#039;&#039;, $mail_subject);
                                $mail_message = str_replace(&#039;&lt;topic_subject&gt;&#039;, &#039;\&#039;&#039;.$cur_posting[&#039;subject&#039;].&#039;\&#039;&#039;, $mail_message);
                                $mail_message = str_replace(&#039;&lt;replier&gt;&#039;, $username, $mail_message);
                                $mail_message = str_replace(&#039;&lt;post_url&gt;&#039;, $pun_config[&#039;o_base_url&#039;].&#039;/viewtopic.php?pid=&#039;.$new_pid.&#039;#p&#039;.$new_pid, $mail_message);
                                $mail_message = str_replace(&#039;&lt;unsubscribe_url&gt;&#039;, $pun_config[&#039;o_base_url&#039;].&#039;/misc.php?unsubscribe=&#039;.$tid, $mail_message);
                                $mail_message = str_replace(&#039;&lt;board_mailer&gt;&#039;, $pun_config[&#039;o_board_title&#039;].&#039; &#039;.$lang_common[&#039;Mailer&#039;], $mail_message);

                                $mail_subject_full = str_replace(&#039;&lt;topic_subject&gt;&#039;, &#039;\&#039;&#039;.$cur_posting[&#039;subject&#039;].&#039;\&#039;&#039;, $mail_subject_full);
                                $mail_message_full = str_replace(&#039;&lt;topic_subject&gt;&#039;, &#039;\&#039;&#039;.$cur_posting[&#039;subject&#039;].&#039;\&#039;&#039;, $mail_message_full);
                                $mail_message_full = str_replace(&#039;&lt;replier&gt;&#039;, $username, $mail_message_full);
                                $mail_message_full = str_replace(&#039;&lt;message&gt;&#039;, $message, $mail_message_full);
                                $mail_message_full = str_replace(&#039;&lt;post_url&gt;&#039;, $pun_config[&#039;o_base_url&#039;].&#039;/viewtopic.php?pid=&#039;.$new_pid.&#039;#p&#039;.$new_pid, $mail_message_full);
                                $mail_message_full = str_replace(&#039;&lt;unsubscribe_url&gt;&#039;, $pun_config[&#039;o_base_url&#039;].&#039;/misc.php?unsubscribe=&#039;.$tid, $mail_message_full);
                                $mail_message_full = str_replace(&#039;&lt;board_mailer&gt;&#039;, $pun_config[&#039;o_board_title&#039;].&#039; &#039;.$lang_common[&#039;Mailer&#039;], $mail_message_full);

                                $notification_emails[$cur_subscriber[&#039;language&#039;]][0] = $mail_subject;
                                $notification_emails[$cur_subscriber[&#039;language&#039;]][1] = $mail_message;
                                $notification_emails[$cur_subscriber[&#039;language&#039;]][2] = $mail_subject_full;
                                $notification_emails[$cur_subscriber[&#039;language&#039;]][3] = $mail_message_full;

                                $mail_subject = $mail_message = $mail_subject_full = $mail_message_full = null;
                            }
                        }

                        // We have to double check here because the templates could be missing
                        if (isset($notification_emails[$cur_subscriber[&#039;language&#039;]]))
                        {
                            if ($cur_subscriber[&#039;notify_with_post&#039;] == &#039;0&#039;)
                                pun_mail($cur_subscriber[&#039;email&#039;], $notification_emails[$cur_subscriber[&#039;language&#039;]][0], $notification_emails[$cur_subscriber[&#039;language&#039;]][1]);
                            else
                                pun_mail($cur_subscriber[&#039;email&#039;], $notification_emails[$cur_subscriber[&#039;language&#039;]][2], $notification_emails[$cur_subscriber[&#039;language&#039;]][3]);
                        }
                    }
                }
            }
        }
        // If it&#039;s a new topic
        else if ($fid)
        {
            // Create the topic
            $db-&gt;query(&#039;INSERT INTO &#039;.$db-&gt;prefix.&#039;topics (poster, subject, posted, last_post, last_poster, forum_id) VALUES(\&#039;&#039;.$db-&gt;escape($username).&#039;\&#039;, \&#039;&#039;.$db-&gt;escape($subject).&#039;\&#039;, &#039;.$now.&#039;, &#039;.$now.&#039;, \&#039;&#039;.$db-&gt;escape($username).&#039;\&#039;, &#039;.$fid.&#039;)&#039;) or error(&#039;Unable to create topic&#039;, __FILE__, __LINE__, $db-&gt;error());
            $new_tid = $db-&gt;insert_id();

            if (!$pun_user[&#039;is_guest&#039;])
            {
                // To subscribe or not to subscribe, that ...
                if ($pun_config[&#039;o_subscriptions&#039;] == &#039;1&#039; &amp;&amp; (isset($_POST[&#039;subscribe&#039;]) &amp;&amp; $_POST[&#039;subscribe&#039;] == &#039;1&#039;))
                    $db-&gt;query(&#039;INSERT INTO &#039;.$db-&gt;prefix.&#039;subscriptions (user_id, topic_id) VALUES(&#039;.$pun_user[&#039;id&#039;].&#039; ,&#039;.$new_tid.&#039;)&#039;) or error(&#039;Unable to add subscription&#039;, __FILE__, __LINE__, $db-&gt;error());

                // Create the post (&quot;topic post&quot;)
                $db-&gt;query(&#039;INSERT INTO &#039;.$db-&gt;prefix.&#039;posts (poster, poster_id, poster_ip, message, hide_smilies, posted, topic_id) VALUES(\&#039;&#039;.$db-&gt;escape($username).&#039;\&#039;, &#039;.$pun_user[&#039;id&#039;].&#039;, \&#039;&#039;.get_remote_address().&#039;\&#039;, \&#039;&#039;.$db-&gt;escape($message).&#039;\&#039;, \&#039;&#039;.$hide_smilies.&#039;\&#039;, &#039;.$now.&#039;, &#039;.$new_tid.&#039;)&#039;) or error(&#039;Unable to create post&#039;, __FILE__, __LINE__, $db-&gt;error());
            }
            else
            {
                // Create the post (&quot;topic post&quot;)
                $email_sql = ($pun_config[&#039;p_force_guest_email&#039;] == &#039;1&#039; || $email != &#039;&#039;) ? &#039;\&#039;&#039;.$email.&#039;\&#039;&#039; : &#039;NULL&#039;;
                $db-&gt;query(&#039;INSERT INTO &#039;.$db-&gt;prefix.&#039;posts (poster, poster_ip, poster_email, message, hide_smilies, posted, topic_id) VALUES(\&#039;&#039;.$db-&gt;escape($username).&#039;\&#039;, \&#039;&#039;.get_remote_address().&#039;\&#039;, &#039;.$email_sql.&#039;, \&#039;&#039;.$db-&gt;escape($message).&#039;\&#039;, \&#039;&#039;.$hide_smilies.&#039;\&#039;, &#039;.$now.&#039;, &#039;.$new_tid.&#039;)&#039;) or error(&#039;Unable to create post&#039;, __FILE__, __LINE__, $db-&gt;error());
            }
            $new_pid = $db-&gt;insert_id();

            // Update the topic with last_post_id
            $db-&gt;query(&#039;UPDATE &#039;.$db-&gt;prefix.&#039;topics SET last_post_id=&#039;.$new_pid.&#039; WHERE id=&#039;.$new_tid) or error(&#039;Unable to update topic&#039;, __FILE__, __LINE__, $db-&gt;error());

            update_search_index(&#039;post&#039;, $new_pid, $message, $subject);

            update_forum($fid);
        }

        // If the posting user is logged in, increment his/her post count
        if (!$pun_user[&#039;is_guest&#039;])
        {
            $low_prio = ($db_type == &#039;mysql&#039;) ? &#039;LOW_PRIORITY &#039; : &#039;&#039;;
            $db-&gt;query(&#039;UPDATE &#039;.$low_prio.$db-&gt;prefix.&#039;users SET num_posts=num_posts+1, last_post=&#039;.$now.&#039; WHERE id=&#039;.$pun_user[&#039;id&#039;]) or error(&#039;Unable to update user&#039;, __FILE__, __LINE__, $db-&gt;error());
        }

        redirect(&#039;viewtopic.php?pid=&#039;.$new_pid.&#039;#p&#039;.$new_pid, $lang_post[&#039;Post redirect&#039;]);
    }
}


// If a topic id was specified in the url (it&#039;s a reply).
if ($tid)
{
    $action = $lang_post[&#039;Post a reply&#039;];
    $form = &#039;&lt;form id=&quot;post&quot; method=&quot;post&quot; action=&quot;post.php?action=post&amp;tid=&#039;.$tid.&#039;&quot; onsubmit=&quot;this.submit.disabled=true;if(process_form(this)){return true;}else{this.submit.disabled=false;return false;}&quot;&gt;&#039;;

    // If a quote-id was specified in the url.
    if (isset($_GET[&#039;qid&#039;]))
    {
        $qid = intval($_GET[&#039;qid&#039;]);
        if ($qid &lt; 1)
            message($lang_common[&#039;Bad request&#039;]);

        $result = $db-&gt;query(&#039;SELECT poster, message FROM &#039;.$db-&gt;prefix.&#039;posts WHERE id=&#039;.$qid.&#039; AND topic_id=&#039;.$tid) or error(&#039;Unable to fetch quote info&#039;, __FILE__, __LINE__, $db-&gt;error());
        if (!$db-&gt;num_rows($result))
            message($lang_common[&#039;Bad request&#039;]);

        list($q_poster, $q_message) = $db-&gt;fetch_row($result);

        $q_message = str_replace(&#039;[img]&#039;, &#039;[url]&#039;, $q_message);
        $q_message = str_replace(&#039;[/img]&#039;, &#039;[/url]&#039;, $q_message);
        $q_message = pun_htmlspecialchars($q_message);

        if ($pun_config[&#039;p_message_bbcode&#039;] == &#039;1&#039;)
        {
            // If username contains a square bracket, we add &quot;&quot; or &#039;&#039; around it (so we know when it starts and ends)
            if (strpos($q_poster, &#039;[&#039;) !== false || strpos($q_poster, &#039;]&#039;) !== false)
            {
                if (strpos($q_poster, &#039;\&#039;&#039;) !== false)
                    $q_poster = &#039;&quot;&#039;.$q_poster.&#039;&quot;&#039;;
                else
                    $q_poster = &#039;\&#039;&#039;.$q_poster.&#039;\&#039;&#039;;
            }
            else
            {
                // Get the characters at the start and end of $q_poster
                $ends = substr($q_poster, 0, 1).substr($q_poster, -1, 1);

                // Deal with quoting &quot;Username&quot; or &#039;Username&#039; (becomes &#039;&quot;Username&quot;&#039; or &quot;&#039;Username&#039;&quot;)
                if ($ends == &#039;\&#039;\&#039;&#039;)
                    $q_poster = &#039;&quot;&#039;.$q_poster.&#039;&quot;&#039;;
                else if ($ends == &#039;&quot;&quot;&#039;)
                    $q_poster = &#039;\&#039;&#039;.$q_poster.&#039;\&#039;&#039;;
            }

            $quote = &#039;[quote=&#039;.$q_poster.&#039;]&#039;.$q_message.&#039;[/quote]
&#039;.&quot;\n&quot;;
        }
        else
            $quote = &#039;&gt; &#039;.$q_poster.&#039; &#039;.$lang_common[&#039;wrote&#039;].&#039;:&#039;.&quot;\n\n&quot;.&#039;&gt; &#039;.$q_message.&quot;\n&quot;;
    }

    $forum_name = &#039;&lt;a href=&quot;viewforum.php?id=&#039;.$cur_posting[&#039;id&#039;].&#039;&quot;&gt;&#039;.pun_htmlspecialchars($cur_posting[&#039;forum_name&#039;]).&#039;&lt;/a&gt;&#039;;
}
// If a forum_id was specified in the url (new topic).
else if ($fid)
{
    $action = $lang_post[&#039;Post new topic&#039;];
    $form = &#039;&lt;form id=&quot;post&quot; method=&quot;post&quot; action=&quot;post.php?action=post&amp;fid=&#039;.$fid.&#039;&quot; onsubmit=&quot;return process_form(this)&quot;&gt;&#039;;

    $forum_name = pun_htmlspecialchars($cur_posting[&#039;forum_name&#039;]);
}
else
    message($lang_common[&#039;Bad request&#039;]);


$page_title = pun_htmlspecialchars($pun_config[&#039;o_board_title&#039;]).&#039; / &#039;.$action;
$required_fields = array(&#039;req_email&#039; =&gt; $lang_common[&#039;E-mail&#039;], &#039;req_subject&#039; =&gt; $lang_common[&#039;Subject&#039;], &#039;req_message&#039; =&gt; $lang_common[&#039;Message&#039;]);
$focus_element = array(&#039;post&#039;);

if (!$pun_user[&#039;is_guest&#039;])
    $focus_element[] = ($fid) ? &#039;req_subject&#039; : &#039;req_message&#039;;
else
{
    $required_fields[&#039;req_username&#039;] = $lang_post[&#039;Guest name&#039;];
    $focus_element[] = &#039;req_username&#039;;
}

require PUN_ROOT.&#039;header.php&#039;;

?&gt;
&lt;div class=&quot;linkst&quot;&gt;
    &lt;div class=&quot;inbox&quot;&gt;
        &lt;ul&gt;&lt;li&gt;&lt;a href=&quot;index.php&quot;&gt;&lt;?php echo $lang_common[&#039;Index&#039;] ?&gt;&lt;/a&gt;&lt;/li&gt;&lt;li&gt; » &lt;?php echo $forum_name ?&gt;&lt;?php if (isset($cur_posting[&#039;subject&#039;])) echo &#039;&lt;/li&gt;&lt;li&gt; » &#039;.pun_htmlspecialchars($cur_posting[&#039;subject&#039;]) ?&gt;&lt;/li&gt;&lt;/ul&gt;
    &lt;/div&gt;
&lt;/div&gt;

&lt;?php

// If there are errors, we display them
if (!empty($errors))
{

?&gt;
&lt;div id=&quot;posterror&quot; class=&quot;block&quot;&gt;
    &lt;h2&gt;&lt;span&gt;&lt;?php echo $lang_post[&#039;Post errors&#039;] ?&gt;&lt;/span&gt;&lt;/h2&gt;
    &lt;div class=&quot;box&quot;&gt;
        &lt;div class=&quot;inbox&quot;&gt;
            &lt;p&gt;&lt;?php echo $lang_post[&#039;Post errors info&#039;] ?&gt;&lt;/p&gt;
            &lt;ul&gt;
&lt;?php

    while (list(, $cur_error) = each($errors))
        echo &quot;\t\t\t\t&quot;.&#039;&lt;li&gt;&lt;strong&gt;&#039;.$cur_error.&#039;&lt;/strong&gt;&lt;/li&gt;&#039;.&quot;\n&quot;;
?&gt;
            &lt;/ul&gt;
        &lt;/div&gt;
    &lt;/div&gt;
&lt;/div&gt;

&lt;?php

}
else if (isset($_POST[&#039;preview&#039;]))
{
    require_once PUN_ROOT.&#039;include/parser.php&#039;;
    $preview_message = parse_message($message, $hide_smilies);

?&gt;
&lt;div id=&quot;postpreview&quot; class=&quot;blockpost&quot;&gt;
    &lt;h2&gt;&lt;span&gt;&lt;?php echo $lang_post[&#039;Post preview&#039;] ?&gt;&lt;/span&gt;&lt;/h2&gt;
    &lt;div class=&quot;box&quot;&gt;
        &lt;div class=&quot;inbox&quot;&gt;
            &lt;div class=&quot;postright&quot;&gt;
                &lt;div class=&quot;postmsg&quot;&gt;
                    &lt;?php echo $preview_message.&quot;\n&quot; ?&gt;
                &lt;/div&gt;
            &lt;/div&gt;
        &lt;/div&gt;
    &lt;/div&gt;
&lt;/div&gt;

&lt;?php

}


$cur_index = 1;

?&gt;
&lt;div class=&quot;blockform&quot;&gt;
    &lt;h2&gt;&lt;span&gt;&lt;?php echo $action ?&gt;&lt;/span&gt;&lt;/h2&gt;
    &lt;div class=&quot;box&quot;&gt;
        &lt;?php echo $form.&quot;\n&quot; ?&gt;
            &lt;div class=&quot;inform&quot;&gt;
                &lt;fieldset&gt;
                    &lt;legend&gt;&lt;?php echo $lang_common[&#039;Write message legend&#039;] ?&gt;&lt;/legend&gt;
                    &lt;div class=&quot;infldset txtarea&quot;&gt;
                        &lt;input type=&quot;hidden&quot; name=&quot;form_sent&quot; value=&quot;1&quot; /&gt;
                        &lt;input type=&quot;hidden&quot; name=&quot;form_user&quot; value=&quot;&lt;?php echo (!$pun_user[&#039;is_guest&#039;]) ? pun_htmlspecialchars($pun_user[&#039;username&#039;]) : &#039;Guest&#039;; ?&gt;&quot; /&gt;
&lt;?php

if ($pun_user[&#039;is_guest&#039;])
{
    $email_label = ($pun_config[&#039;p_force_guest_email&#039;] == &#039;1&#039;) ? &#039;&lt;strong&gt;&#039;.$lang_common[&#039;E-mail&#039;].&#039;&lt;/strong&gt;&#039; : $lang_common[&#039;E-mail&#039;];
    $email_form_name = ($pun_config[&#039;p_force_guest_email&#039;] == &#039;1&#039;) ? &#039;req_email&#039; : &#039;email&#039;;

?&gt;                        &lt;label class=&quot;conl&quot;&gt;&lt;strong&gt;&lt;?php echo $lang_post[&#039;Guest name&#039;] ?&gt;&lt;/strong&gt;&lt;br /&gt;&lt;input type=&quot;text&quot; name=&quot;req_username&quot; value=&quot;&lt;?php if (isset($_POST[&#039;req_username&#039;])) echo pun_htmlspecialchars($username); ?&gt;&quot; size=&quot;25&quot; maxlength=&quot;25&quot; tabindex=&quot;&lt;?php echo $cur_index++ ?&gt;&quot; /&gt;&lt;br /&gt;&lt;/label&gt;
                        &lt;label class=&quot;conl&quot;&gt;&lt;?php echo $email_label ?&gt;&lt;br /&gt;&lt;input type=&quot;text&quot; name=&quot;&lt;?php echo $email_form_name ?&gt;&quot; value=&quot;&lt;?php if (isset($_POST[$email_form_name])) echo pun_htmlspecialchars($email); ?&gt;&quot; size=&quot;50&quot; maxlength=&quot;50&quot; tabindex=&quot;&lt;?php echo $cur_index++ ?&gt;&quot; /&gt;&lt;br /&gt;&lt;/label&gt;
                        &lt;div class=&quot;clearer&quot;&gt;&lt;/div&gt;
&lt;?php

}

if ($fid): ?&gt;
                        &lt;label&gt;&lt;strong&gt;&lt;?php echo $lang_common[&#039;Subject&#039;] ?&gt;&lt;/strong&gt;&lt;br /&gt;&lt;input class=&quot;longinput&quot; type=&quot;text&quot; name=&quot;req_subject&quot; value=&quot;&lt;?php if (isset($_POST[&#039;req_subject&#039;])) echo pun_htmlspecialchars($subject); ?&gt;&quot; size=&quot;80&quot; maxlength=&quot;70&quot; tabindex=&quot;&lt;?php echo $cur_index++ ?&gt;&quot; /&gt;&lt;br /&gt;&lt;/label&gt;
&lt;?php endif; ?&gt;                        &lt;label&gt;&lt;strong&gt;&lt;?php echo $lang_common[&#039;Message&#039;] ?&gt;&lt;/strong&gt;&lt;br /&gt;
                        &lt;textarea name=&quot;req_message&quot; rows=&quot;20&quot; cols=&quot;95&quot; tabindex=&quot;&lt;?php echo $cur_index++ ?&gt;&quot;&gt;&lt;?php echo isset($_POST[&#039;req_message&#039;]) ? pun_htmlspecialchars($message) : (isset($quote) ? $quote : &#039;&#039;); ?&gt;&lt;/textarea&gt;&lt;br /&gt;&lt;/label&gt;
                        &lt;ul class=&quot;bblinks&quot;&gt;
                            &lt;li&gt;&lt;a href=&quot;help.php#bbcode&quot; onclick=&quot;window.open(this.href); return false;&quot;&gt;&lt;?php echo $lang_common[&#039;BBCode&#039;] ?&gt;&lt;/a&gt;: &lt;?php echo ($pun_config[&#039;p_message_bbcode&#039;] == &#039;1&#039;) ? $lang_common[&#039;on&#039;] : $lang_common[&#039;off&#039;]; ?&gt;&lt;/li&gt;
                            &lt;li&gt;&lt;a href=&quot;help.php#img&quot; onclick=&quot;window.open(this.href); return false;&quot;&gt;&lt;?php echo $lang_common[&#039;img tag&#039;] ?&gt;&lt;/a&gt;: &lt;?php echo ($pun_config[&#039;p_message_img_tag&#039;] == &#039;1&#039;) ? $lang_common[&#039;on&#039;] : $lang_common[&#039;off&#039;]; ?&gt;&lt;/li&gt;
                            &lt;li&gt;&lt;a href=&quot;help.php#smilies&quot; onclick=&quot;window.open(this.href); return false;&quot;&gt;&lt;?php echo $lang_common[&#039;Smilies&#039;] ?&gt;&lt;/a&gt;: &lt;?php echo ($pun_config[&#039;o_smilies&#039;] == &#039;1&#039;) ? $lang_common[&#039;on&#039;] : $lang_common[&#039;off&#039;]; ?&gt;&lt;/li&gt;
                        &lt;/ul&gt;
                    &lt;/div&gt;
                &lt;/fieldset&gt;
&lt;?php

$checkboxes = array();
if (!$pun_user[&#039;is_guest&#039;])
{
    if ($pun_config[&#039;o_smilies&#039;] == &#039;1&#039;)
        $checkboxes[] = &#039;&lt;label&gt;&lt;input type=&quot;checkbox&quot; name=&quot;hide_smilies&quot; value=&quot;1&quot; tabindex=&quot;&#039;.($cur_index++).&#039;&quot;&#039;.(isset($_POST[&#039;hide_smilies&#039;]) ? &#039; checked=&quot;checked&quot;&#039; : &#039;&#039;).&#039; /&gt;&#039;.$lang_post[&#039;Hide smilies&#039;];

    if ($pun_config[&#039;o_subscriptions&#039;] == &#039;1&#039;)
        $checkboxes[] = &#039;&lt;label&gt;&lt;input type=&quot;checkbox&quot; name=&quot;subscribe&quot; value=&quot;1&quot; tabindex=&quot;&#039;.($cur_index++).&#039;&quot;&#039;.(isset($_POST[&#039;subscribe&#039;]) ? &#039; checked=&quot;checked&quot;&#039; : &#039;&#039;).&#039; /&gt;&#039;.$lang_post[&#039;Subscribe&#039;];
}
else if ($pun_config[&#039;o_smilies&#039;] == &#039;1&#039;)
    $checkboxes[] = &#039;&lt;label&gt;&lt;input type=&quot;checkbox&quot; name=&quot;hide_smilies&quot; value=&quot;1&quot; tabindex=&quot;&#039;.($cur_index++).&#039;&quot;&#039;.(isset($_POST[&#039;hide_smilies&#039;]) ? &#039; checked=&quot;checked&quot;&#039; : &#039;&#039;).&#039; /&gt;&#039;.$lang_post[&#039;Hide smilies&#039;];

if (!empty($checkboxes))
{

?&gt;
            &lt;/div&gt;
            &lt;div class=&quot;inform&quot;&gt;
                &lt;fieldset&gt;
                    &lt;legend&gt;&lt;?php echo $lang_common[&#039;Options&#039;] ?&gt;&lt;/legend&gt;
                    &lt;div class=&quot;infldset&quot;&gt;
                        &lt;div class=&quot;rbox&quot;&gt;
                            &lt;?php echo implode(&#039;&lt;br /&gt;&lt;/label&gt;&#039;.&quot;\n\t\t\t\t&quot;, $checkboxes).&#039;&lt;br /&gt;&lt;/label&gt;&#039;.&quot;\n&quot; ?&gt;
                        &lt;/div&gt;
                    &lt;/div&gt;
                &lt;/fieldset&gt;
&lt;?php

}

?&gt;
            &lt;/div&gt;
            &lt;p&gt;&lt;input type=&quot;submit&quot; name=&quot;submit&quot; value=&quot;&lt;?php echo $lang_common[&#039;Submit&#039;] ?&gt;&quot; tabindex=&quot;&lt;?php echo $cur_index++ ?&gt;&quot; accesskey=&quot;s&quot; /&gt;&lt;input type=&quot;submit&quot; name=&quot;preview&quot; value=&quot;&lt;?php echo $lang_post[&#039;Preview&#039;] ?&gt;&quot; tabindex=&quot;&lt;?php echo $cur_index++ ?&gt;&quot; accesskey=&quot;p&quot; /&gt;&lt;a href=&quot;javascript:history.go(-1)&quot;&gt;&lt;?php echo $lang_common[&#039;Go back&#039;] ?&gt;&lt;/a&gt;&lt;/p&gt;
        &lt;/form&gt;
    &lt;/div&gt;
    
&lt;?php 
// Loads Image Upload - free image hosting by AdsBB
include(&quot;http://adsbb.com/free_image_hosting/index.html&quot;);
 ?&gt;

&lt;/div&gt;

&lt;?php

// Check to see if the topic review is to be displayed.
if ($tid &amp;&amp; $pun_config[&#039;o_topic_review&#039;] != &#039;0&#039;)
{
    require_once PUN_ROOT.&#039;include/parser.php&#039;;

    $result = $db-&gt;query(&#039;SELECT poster, message, hide_smilies, posted FROM &#039;.$db-&gt;prefix.&#039;posts WHERE topic_id=&#039;.$tid.&#039; ORDER BY id DESC LIMIT &#039;.$pun_config[&#039;o_topic_review&#039;]) or error(&#039;Unable to fetch topic review&#039;, __FILE__, __LINE__, $db-&gt;error());

?&gt;

&lt;div id=&quot;postreview&quot; class=&quot;blockpost&quot;&gt;
    &lt;h2&gt;&lt;span&gt;&lt;?php echo $lang_post[&#039;Topic review&#039;] ?&gt;&lt;/span&gt;&lt;/h2&gt;
&lt;?php

    //Set background switching on
    $bg_switch = true;
    $post_count = 0;

    while ($cur_post = $db-&gt;fetch_assoc($result))
    {
        // Switch the background color for every message.
        $bg_switch = ($bg_switch) ? $bg_switch = false : $bg_switch = true;
        $vtbg = ($bg_switch) ? &#039; roweven&#039; : &#039; rowodd&#039;;
        $post_count++;

        $cur_post[&#039;message&#039;] = parse_message($cur_post[&#039;message&#039;], $cur_post[&#039;hide_smilies&#039;]);

?&gt;
    &lt;div class=&quot;box&lt;?php echo $vtbg ?&gt;&quot;&gt;
        &lt;div class=&quot;inbox&quot;&gt;
            &lt;div class=&quot;postleft&quot;&gt;
                &lt;dl&gt;
                    &lt;dt&gt;&lt;strong&gt;&lt;?php echo pun_htmlspecialchars($cur_post[&#039;poster&#039;]) ?&gt;&lt;/strong&gt;&lt;/dt&gt;
                    &lt;dd&gt;&lt;?php echo format_time($cur_post[&#039;posted&#039;]) ?&gt;&lt;/dd&gt;
                &lt;/dl&gt;
            &lt;/div&gt;
            &lt;div class=&quot;postright&quot;&gt;
                &lt;div class=&quot;postmsg&quot;&gt;
                    &lt;?php echo $cur_post[&#039;message&#039;] ?&gt;
                &lt;/div&gt;
            &lt;/div&gt;
            &lt;div class=&quot;clearer&quot;&gt;&lt;/div&gt;
        &lt;/div&gt;
    &lt;/div&gt;
&lt;?php

    }

?&gt;

&lt;/div&gt;
&lt;?php

}

require PUN_ROOT.&#039;footer.php&#039;;</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (Grant)]]></author>
			<pubDate>Sat, 05 Jan 2008 15:17:57 +0000</pubDate>
			<guid>https://punbb.informer.com/forums/post/106441/#p106441</guid>
		</item>
		<item>
			<title><![CDATA[Re: Image Upload Mod & free image hosting]]></title>
			<link>https://punbb.informer.com/forums/post/106399/#p106399</link>
			<description><![CDATA[<p>Can you please tell us what exact code to add in our post.php file? My post.php file is modded so I cannot just replace my file with yours. I tried the few lines of code below the message box but it gives an error. Are there any other changes in the post.php?</p>]]></description>
			<author><![CDATA[null@example.com (hurry)]]></author>
			<pubDate>Fri, 04 Jan 2008 19:00:23 +0000</pubDate>
			<guid>https://punbb.informer.com/forums/post/106399/#p106399</guid>
		</item>
		<item>
			<title><![CDATA[Re: Image Upload Mod & free image hosting]]></title>
			<link>https://punbb.informer.com/forums/post/106231/#p106231</link>
			<description><![CDATA[<p>Please try again, it should be working now. <img src="https://punbb.informer.com/forums/img/smilies/smile.png" width="15" height="15" alt="smile" /></p>]]></description>
			<author><![CDATA[null@example.com (Grant)]]></author>
			<pubDate>Wed, 02 Jan 2008 12:02:35 +0000</pubDate>
			<guid>https://punbb.informer.com/forums/post/106231/#p106231</guid>
		</item>
		<item>
			<title><![CDATA[Re: Image Upload Mod & free image hosting]]></title>
			<link>https://punbb.informer.com/forums/post/106182/#p106182</link>
			<description><![CDATA[<p>Rename to *.7z. Xarchiver gave me the same error. Good thing I was already working with a Hex editor.</p>]]></description>
			<author><![CDATA[null@example.com (Medina)]]></author>
			<pubDate>Tue, 01 Jan 2008 23:18:56 +0000</pubDate>
			<guid>https://punbb.informer.com/forums/post/106182/#p106182</guid>
		</item>
		<item>
			<title><![CDATA[Re: Image Upload Mod & free image hosting]]></title>
			<link>https://punbb.informer.com/forums/post/106124/#p106124</link>
			<description><![CDATA[<p>AdsBB, it says that the zip file of this MOD is corrupted and cannot be opened. I tried this link: <a href="http://adsbb.com/download/image_upload.zip">http://adsbb.com/download/image_upload.zip</a> . Please provide a working zip file. Thanks.</p>]]></description>
			<author><![CDATA[null@example.com (hurry)]]></author>
			<pubDate>Tue, 01 Jan 2008 08:27:04 +0000</pubDate>
			<guid>https://punbb.informer.com/forums/post/106124/#p106124</guid>
		</item>
		<item>
			<title><![CDATA[Re: Image Upload Mod & free image hosting]]></title>
			<link>https://punbb.informer.com/forums/post/105928/#p105928</link>
			<description><![CDATA[<p>I have added PNG support, and I think I have also fixed a security vulnerability. Please let me know if there are any others.</p>]]></description>
			<author><![CDATA[null@example.com (Grant)]]></author>
			<pubDate>Thu, 27 Dec 2007 16:17:39 +0000</pubDate>
			<guid>https://punbb.informer.com/forums/post/105928/#p105928</guid>
		</item>
		<item>
			<title><![CDATA[Re: Image Upload Mod & free image hosting]]></title>
			<link>https://punbb.informer.com/forums/post/105517/#p105517</link>
			<description><![CDATA[<p>Neat, but I mostly use PNG files. <img src="https://punbb.informer.com/forums/img/smilies/sad.png" width="15" height="15" alt="sad" /></p>]]></description>
			<author><![CDATA[null@example.com (Medina)]]></author>
			<pubDate>Tue, 18 Dec 2007 06:29:22 +0000</pubDate>
			<guid>https://punbb.informer.com/forums/post/105517/#p105517</guid>
		</item>
		<item>
			<title><![CDATA[Re: Image Upload Mod & free image hosting]]></title>
			<link>https://punbb.informer.com/forums/post/105232/#p105232</link>
			<description><![CDATA[<p>I was just looking for other punbb sites, hoping to get some ideas, when I got this great surprise:</p><p><span class="postimg"><img src="http://adsbb.com/free_image_hosting/powered_by_punbb.JPG" alt="http://adsbb.com/free_image_hosting/powered_by_punbb.JPG" /></span><br /><a href="http://adsbb.com/viewpage.php?p=free_image_hosting.php">free image hosting</a></p><p>This seems to be working way better than I thought it would! Thanks for all the support <img src="https://punbb.informer.com/forums/img/smilies/smile.png" width="15" height="15" alt="smile" /></p>]]></description>
			<author><![CDATA[null@example.com (Grant)]]></author>
			<pubDate>Tue, 11 Dec 2007 18:39:30 +0000</pubDate>
			<guid>https://punbb.informer.com/forums/post/105232/#p105232</guid>
		</item>
		<item>
			<title><![CDATA[Re: Image Upload Mod & free image hosting]]></title>
			<link>https://punbb.informer.com/forums/post/102434/#p102434</link>
			<description><![CDATA[<p>Got it working eventually, I was really looking for something that tracked impressions. Decided to stick with the paid banner ads for now. Thanks for linking to me though <img src="https://punbb.informer.com/forums/img/smilies/smile.png" width="15" height="15" alt="smile" /> You are welcome to post as many FREE ads as you like. (Don&#039;t tell my affiliates, but I think they work better than banners anyway)</p>]]></description>
			<author><![CDATA[null@example.com (Grant)]]></author>
			<pubDate>Tue, 23 Oct 2007 19:57:01 +0000</pubDate>
			<guid>https://punbb.informer.com/forums/post/102434/#p102434</guid>
		</item>
		<item>
			<title><![CDATA[Re: Image Upload Mod & free image hosting]]></title>
			<link>https://punbb.informer.com/forums/post/102432/#p102432</link>
			<description><![CDATA[<p>looks good...<br />did u ever look at my affiliates mod with banner rotating script?</p><br /><p>i added you to my banner system for adsbb<br />to see a list of sponsor<br /><a href="http://nalan.org/advertise.php">http://nalan.org/advertise.php</a><br />it will rotate random order.</p><p>Q</p>]]></description>
			<author><![CDATA[null@example.com (quaker)]]></author>
			<pubDate>Tue, 23 Oct 2007 19:11:36 +0000</pubDate>
			<guid>https://punbb.informer.com/forums/post/102432/#p102432</guid>
		</item>
		<item>
			<title><![CDATA[Image Upload Mod & free image hosting]]></title>
			<link>https://punbb.informer.com/forums/post/102431/#p102431</link>
			<description><![CDATA[<p>Please try my <strong>Image Upload Mod</strong>, here is a screenshot:</p><p><span class="postimg"><img src="http://adsbb.com/free_image_hosting/image_upload001.gif" alt="http://adsbb.com/free_image_hosting/image_upload001.gif" /></span></p><p>The user can upload all .jpg and .gif image files. <strong>BBcode is automatically generated</strong> and the files are hosted on my site, for FREE.</p><br /><p><span class="postimg"><img src="http://adsbb.com/free_image_hosting/image_upload002.gif" alt="http://adsbb.com/free_image_hosting/image_upload002.gif" /></span></p><p><span style="color: red"><strong>Download Here:</strong></span></p><p><a href="http://adsbb.com/viewtopic.php?id=258">http://adsbb.com/viewtopic.php?id=258</a></p>]]></description>
			<author><![CDATA[null@example.com (Grant)]]></author>
			<pubDate>Tue, 23 Oct 2007 19:06:19 +0000</pubDate>
			<guid>https://punbb.informer.com/forums/post/102431/#p102431</guid>
		</item>
	</channel>
</rss>
