<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[get e post aiuto modifica]]></title><description><![CDATA[<p dir="auto">ciao ragazzi ho un problemino...cioè vorrei cambiare una cosa a un file...<br />
ho uno script che quando uno scrive un messaggio nella barra del link x inviarlo riscrive tutto il testo e se questo è lungo a volte crea problemi...dovrebbe essere la funzione get o post da cambiare...sapete dirmi se vi allego il file dove cambiarla????</p>
<pre><code class="language-php">&lt;?php

$title = 'Nuovo topic';
require 'pmheader.php';

$sub = (empty($_POST['sub'])) ? "0" : $_POST['sub'];
$txt = (empty($_POST['txt'])) ? "0" : $_POST['txt'];
$forum = (empty($_POST['forum'])) ? "-1" : $_POST['forum'];

echo $header;

if(!$userdata['session_logged_in'])
{
	echo "Spiacente devi essere loggato per postare un nuovo topic. Clicca &lt;anchor&gt;Qui!&lt;go href=\"" . append_sid("waplogin.$phpEx") . "\" /&gt;&lt;/anchor&gt;";
}


else if($sub == "0" || $txt == "0" || $forum == "-1")
{
?&gt;
Oggetto: &lt;input name="sub" type="text" emptyok="false"/&gt;&lt;br/&gt;
Messaggio: &lt;input name="txt" emptyok="false"/&gt;&lt;br/&gt;
Forum: &lt;select name="forum"&gt;
&lt;option value="-1"&gt;Scegli il forum&lt;/option&gt;
&lt;?php
	
	$query = $db-&gt;sql_query("select forum_id,forum_name from ". FORUMS_TABLE . " where forum_status = \"0\" order by cat_id ASC");
	$forum = $db-&gt;sql_fetchrowset($query);
	foreach ($forum as $val)
	{
		$auth = auth(AUTH_ALL,$val['forum_id'],$userdata);
		if($auth['auth_post'])
		{
			echo "&lt;option value=\"".$val['forum_id']."\"&gt;".htmlentities ($val['forum_name'])."&lt;/option&gt;\n";
		}
	}


?&gt;
&lt;/select&gt;&lt;br/&gt;
&lt;anchor&gt;
	Invia&lt;br/&gt;
	&lt;go href="&lt;?php echo append_sid("wapnew.$phpEx?sub=$(sub)&amp;amp;txt=$(txt)&amp;amp;forum=$(forum)"); ?&gt;" method="post"&gt;
		&lt;postfield name="sub" value="$(sub)"/&gt;
		&lt;postfield name="txt" value="$(txt)"/&gt;
		&lt;postfield name="forum" value="$(forum)"/&gt;
	&lt;/go&gt;
&lt;/anchor&gt;
&lt;?php
}
else
{
	$current_time = time();
	$sql = $db-&gt;sql_query("SELECT * FROM " . USERS_TABLE . " WHERE username = '" . str_replace("\'", "''", $userdata['username']) . "'");
	$userdata = $db-&gt;sql_fetchrow($sql);
	$user_id = $userdata['user_id'];
	if( $userdata['user_level'] != ADMIN &amp;&amp; $board_config['board_disable'] )
	{
		echo "Mi spiace ma il forum e\'disattivato. Visita il sito web in un\' altro momento";
	}
	else {
				$sql = "SELECT forum_status FROM " . FORUMS_TABLE . " WHERE forum_id = \"$forum_id\"";
				$query = $db-&gt;sql_query($sql);
				$forum_status = $db-&gt;sql_fetchrow($query);
				$auth = auth(AUTH_ALL,$forum_id,$userdata);
				if ( $forum_status['forum_status'] == FORUM_LOCKED &amp;&amp; !$auth['auth_mod']) 
					{
					$footer = "&lt;br/&gt;&lt;br/&gt;&lt;anchor&gt;Forum Home&lt;go href=\"" . append_sid("wap.$phpEx") . "\" /&gt;&lt;/anchor&gt;".$footer;
					echo "Mi spiace questo forum e\' chiuso. Non puoi postare nel topic.";
					die(" ".$footer);
					}
					else 
					{
						//Flood Control
						$current_time = time();
						$query  = $db-&gt;sql_query("SELECT MAX(post_time) AS last_post_time FROM " . POSTS_TABLE . " WHERE poster_id = \"$user_id\"");
						$flood = $db-&gt;sql_fetchrow($query);
						if ( $flood['last_post_time'] &gt; 0 &amp;&amp; ( $current_time - $flood['last_post_time'] ) &lt; $board_config['flood_interval'] )
						{
							echo "Non puoi inviare un messaggio subito. Aspetta un po e riprova.";
						}
						else
						{
							$txt = $txt." \n\n&lt;i&gt;Scritto da Nokia Mobile Device&lt;/i&gt;";
							$uid = make_bbcode_uid();
							$txt = prepare_wap_post($txt,$uid);
							$time = time();
							$update_topics = $db-&gt;sql_query("insert into " . TOPICS_TABLE . " (forum_id, topic_title, topic_poster, topic_time, topic_views, topic_replies, topic_status, topic_vote, topic_type, topic_first_post_id, topic_last_post_id, topic_moved_id) values (\"$forum\", \"$sub\", \"$user_id\", \"$time\", \"0\", \"0\", \"0\", \"0\", \"0\", \"0\",\"0\", \"0\")");
							$topic = $db-&gt;sql_nextid();
							$update_posts = $db-&gt;sql_query("insert into " . POSTS_TABLE . " (topic_id, forum_id, poster_id, post_time, poster_ip, enable_bbcode, enable_html, enable_smilies, enable_sig, post_edit_count) values (\"$topic\",\"$forum\",\"".$userdata['user_id']."\",\"$time\",\"".$userdata['user_ip']."\",\"0\",\"0\",\"1\",\"$sig\",\"0\")");
							$post_id = $db-&gt;sql_nextid();
							$update_topics2 = $db-&gt;sql_query("update ". TOPICS_TABLE . " set topic_first_post_id = \"$post_id\", topic_last_post_id = \"$post_id\" where topic_id = \"$topic\"");
							$update_text = $db-&gt;sql_query("insert into " . POSTS_TEXT_TABLE . " (post_id, bbcode_uid, post_subject, post_text) values (\"$post_id\", \"$uid\", \"$sub\", \"$txt\")");
							$update_forums = $db-&gt;sql_query("update " . FORUMS_TABLE . " set forum_posts=forum_posts+1, forum_last_post_id = $post_id, forum_topics=forum_topics+1 where forum_id = \"$forum\"");
							$update_user = $db-&gt;sql_query("update " . USERS_TABLE . " set user_posts=user_posts+1 where user_id = \"$user_id\"");
							echo "Clicca &lt;anchor&gt;Qui!&lt;go href=\"". append_sid("waptopic.$phpEx?topic=$topic&amp;amp;forum=$forum") . "\" /&gt;&lt;/anchor&gt; per vedere il tuo messaggio.";
						}
					}
				}
			}
echo $footer;
?&gt;
</code></pre>
<p dir="auto">grazie a ki mi saprà aiutare</p>
]]></description><link>https://dev.connect.gt/topic/55480/get-e-post-aiuto-modifica</link><generator>RSS for Node</generator><lastBuildDate>Fri, 04 Dec 2026 17:27:43 GMT</lastBuildDate><atom:link href="https://dev.connect.gt/topic/55480.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 02 Dec 2007 16:13:00 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to get e post aiuto modifica on Mon, 03 Dec 2007 16:43:04 GMT]]></title><description><![CDATA[<p dir="auto">Ciao <em><strong>hiwap3</strong></em>,<br />
purtroppo non mi è chiara la domanda... :bho:<br />
Cos'è la barra del link? Come la si usa per inviare messaggi? Che problema ti crea quando il testo è troppo lungo?</p>
<p dir="auto">Dacci maggiori indicazioni e forse riusciremo ad aiutarti!<br />
<img src="https://dev.connect.gt/assets/plugins/nodebb-plugin-emoji/emoji/customizations/54a3bffb-5e4a-4eb8-81dc-99b2072e5d05-175.gif?v=3abbd2034aa" class="not-responsive emoji emoji-customizations emoji--ciauz" style="height:1.4em;width:auto;vertical-align:middle" title=":ciauz:" alt="" /></p>
]]></description><link>https://dev.connect.gt/post/645718</link><guid isPermaLink="true">https://dev.connect.gt/post/645718</guid><dc:creator><![CDATA[ceccus]]></dc:creator><pubDate>Mon, 03 Dec 2007 16:43:04 GMT</pubDate></item></channel></rss>