Menu
Forums
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Trending
What's new
New posts
New profile posts
Latest activity
Members
Current visitors
New profile posts
Search profile posts
Upgrades
Log in
Register
What's new
Search
Search
Search titles only
By:
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
Server Development
Habbo Retros
Habbo Q&A
Add-On Tags for RevCMS Habbo Theme?
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="duplix" data-source="post: 127762" data-attributes="member: 18659"><p>HTML</p><p> </p><p><span style="font-family: 'monospace'"><span style="color: #000000"><div class="content-box-radio"></span></span></p><p><span style="font-family: 'monospace'"><span style="color: #000000"><div class="habblet-container "></span></span></p><p><span style="font-family: 'monospace'"><span style="color: #000000"> <ul class="box-tabs"></span></span></p><p><span style="font-family: 'monospace'"><span style="color: #000000"> <li id="tab-3-2" class="selected"><a href="#">My Tags</a><span class="tab-spacer"></span></li></span></span></p><p><span style="font-family: 'monospace'"><span style="color: #000000"> </ul></span></span></p><p><span style="font-family: 'monospace'"><span style="color: #000000"> <br /></span></span></p><p><span style="font-family: 'monospace'"><span style="color: #000000"> <a href="me" class="tab-ajax"></a></span></span></p><p><span style="font-family: 'monospace'"><span style="color: #000000"> </div></span></span></p><p><span style="font-family: 'monospace'"><span style="color: #000000"> <div id="tab-3-2-content" ></span></span></p><p><span style="font-family: 'monospace'"><span style="color: #000000"> <div id="my-tag-info" class="habblet-content-info"></span></span></p><p><span style="font-family: 'monospace'"><span style="color: #000000"> </span></span><span style="color: #0000bb"><span style="font-family: 'monospace'"><?php </span></span><span style="color: #007700"><span style="font-family: 'monospace'">if(</span></span><span style="color: #0000bb"><span style="font-family: 'monospace'">$tags_num </span></span><span style="color: #007700"><span style="font-family: 'monospace'">> </span></span><span style="color: #0000bb"><span style="font-family: 'monospace'">19</span></span><span style="color: #007700"><span style="font-family: 'monospace'">){ echo </span></span><span style="color: #dd0000"><span style="font-family: 'monospace'">"Max limit tag.delete one of your tag and then add."</span></span><span style="color: #007700"><span style="font-family: 'monospace'">; } elseif(</span></span><span style="color: #0000bb"><span style="font-family: 'monospace'">$tags_num </span></span><span style="color: #007700"><span style="font-family: 'monospace'">== </span></span><span style="color: #0000bb"><span style="font-family: 'monospace'">0</span></span><span style="color: #007700"><span style="font-family: 'monospace'">){ echo </span></span><span style="color: #dd0000"><span style="font-family: 'monospace'">"You dont have tag. Answere the question or make ur own."</span></span><span style="color: #007700"><span style="font-family: 'monospace'">; } elseif(</span></span><span style="color: #0000bb"><span style="font-family: 'monospace'">$tags_num </span></span><span style="color: #007700"><span style="font-family: 'monospace'">< </span></span><span style="color: #0000bb"><span style="font-family: 'monospace'">20</span></span><span style="color: #007700"><span style="font-family: 'monospace'">){ echo </span></span><span style="color: #dd0000"><span style="font-family: 'monospace'">"u dident use all of ur tags. Add more!"</span></span><span style="color: #007700"><span style="font-family: 'monospace'">; } </span></span><span style="color: #0000bb"><span style="font-family: 'monospace'">?></span></span><span style="font-family: 'monospace'"><span style="color: #000000"> </div></span></span></p><p><span style="font-family: 'monospace'"><span style="color: #000000"><div class="box-content"></span></span></p><p><span style="font-family: 'monospace'"><span style="color: #000000"> <div class="habblet" id="my-tags-list"></span></span></p><p> </p><p><span style="color: #0000bb"><span style="font-family: 'monospace'"><?php </span></span><span style="color: #007700"><span style="font-family: 'monospace'">if(</span></span><span style="color: #0000bb"><span style="font-family: 'monospace'">$tags_num </span></span><span style="color: #007700"><span style="font-family: 'monospace'">> </span></span><span style="color: #0000bb"><span style="font-family: 'monospace'">0</span></span><span style="color: #007700"><span style="font-family: 'monospace'">){</span></span></p><p><span style="color: #007700"><span style="font-family: 'monospace'"> echo </span></span><span style="color: #dd0000"><span style="font-family: 'monospace'">"<ul class=\"tag-list make-clickable\"> "</span></span><span style="color: #007700"><span style="font-family: 'monospace'">;</span></span></p><p><span style="color: #007700"><span style="font-family: 'monospace'"> while(</span></span><span style="color: #0000bb"><span style="font-family: 'monospace'">$row </span></span><span style="color: #007700"><span style="font-family: 'monospace'">= </span></span><span style="color: #0000bb"><span style="font-family: 'monospace'">mysql_fetch_assoc</span></span><span style="color: #007700"><span style="font-family: 'monospace'">(</span></span><span style="color: #0000bb"><span style="font-family: 'monospace'">$fetch_tags</span></span><span style="color: #007700"><span style="font-family: 'monospace'">)){</span></span></p><p><span style="color: #007700"><span style="font-family: 'monospace'"> echo </span></span><span style="color: #dd0000"><span style="font-family: 'monospace'">" <li><a href=\"tags?tag="</span></span><span style="color: #007700"><span style="font-family: 'monospace'">.</span></span><span style="color: #0000bb"><span style="font-family: 'monospace'">strtolower</span></span><span style="color: #007700"><span style="font-family: 'monospace'">(</span></span><span style="color: #0000bb"><span style="font-family: 'monospace'">$row</span></span><span style="color: #007700"><span style="font-family: 'monospace'">[</span></span><span style="color: #dd0000"><span style="font-family: 'monospace'">'tag'</span></span><span style="color: #007700"><span style="font-family: 'monospace'">]).</span></span><span style="color: #dd0000"><span style="font-family: 'monospace'">"\" class=\"tag\" style=\"font-size:10px\">"</span></span><span style="color: #007700"><span style="font-family: 'monospace'">.</span></span><span style="color: #0000bb"><span style="font-family: 'monospace'">strtolower</span></span><span style="color: #007700"><span style="font-family: 'monospace'">(</span></span><span style="color: #0000bb"><span style="font-family: 'monospace'">$row</span></span><span style="color: #007700"><span style="font-family: 'monospace'">[</span></span><span style="color: #dd0000"><span style="font-family: 'monospace'">'tag'</span></span><span style="color: #007700"><span style="font-family: 'monospace'">]).</span></span><span style="color: #dd0000"><span style="font-family: 'monospace'">"</a></span></span></p><p><span style="color: #dd0000"><span style="font-family: 'monospace'"> <a href='?do="</span></span><span style="color: #007700"><span style="font-family: 'monospace'">.</span></span><span style="color: #0000bb"><span style="font-family: 'monospace'">$row</span></span><span style="color: #007700"><span style="font-family: 'monospace'">[</span></span><span style="color: #dd0000"><span style="font-family: 'monospace'">'id'</span></span><span style="color: #007700"><span style="font-family: 'monospace'">].</span></span><span style="color: #dd0000"><span style="font-family: 'monospace'">"' title=\"delete tag\"><img src='app/tpl/skins/Mango/images/tags.gif' /></a></li>"</span></span><span style="color: #007700"><span style="font-family: 'monospace'">;</span></span></p><p><span style="color: #007700"><span style="font-family: 'monospace'"> }</span></span></p><p><span style="color: #007700"><span style="font-family: 'monospace'"> echo </span></span><span style="color: #dd0000"><span style="font-family: 'monospace'">"</ul>"</span></span><span style="color: #007700"><span style="font-family: 'monospace'">;</span></span></p><p><span style="color: #007700"><span style="font-family: 'monospace'">} </span></span><span style="color: #0000bb"><span style="font-family: 'monospace'">?></span></span> </p><p><span style="color: #0000bb"><span style="font-family: 'monospace'"><?php </span></span><span style="color: #007700"><span style="font-family: 'monospace'">if(</span></span><span style="color: #0000bb"><span style="font-family: 'monospace'">$tags_num </span></span><span style="color: #007700"><span style="font-family: 'monospace'">< </span></span><span style="color: #0000bb"><span style="font-family: 'monospace'">20</span></span><span style="color: #007700"><span style="font-family: 'monospace'">){ </span></span><span style="color: #0000bb"><span style="font-family: 'monospace'">?></span></span><span style="font-family: 'monospace'"><span style="color: #000000"> <form method="post"></span></span></p><p><span style="font-family: 'monospace'"><span style="color: #000000"> <div class="add-tag-form clearfix"></span></span></p><p><span style="font-family: 'monospace'"><span style="color: #000000"> <input type="image" class="tagme" src="YOURTAGIMG to validate"></span></span></p><p><span style="font-family: 'monospace'"><span style="color: #000000"> <input type="text" name="newtag" id="add-tag-input" maxlength="20" style="float: left"/></span></span></p><p><span style="font-family: 'monospace'"><span style="color: #000000"> <em class="tag-question"></span></span><span style="color: #0000bb"><span style="font-family: 'monospace'"><?php </span></span><span style="color: #007700"><span style="font-family: 'monospace'">echo </span></span><span style="color: #0000bb"><span style="font-family: 'monospace'">$tag_question</span></span><span style="color: #007700"><span style="font-family: 'monospace'">; </span></span><span style="color: #0000bb"><span style="font-family: 'monospace'">?></span></span><span style="font-family: 'monospace'"><span style="color: #000000"></em></span></span></p><p><span style="font-family: 'monospace'"><span style="color: #000000"> </div></span></span></p><p><span style="font-family: 'monospace'"><span style="color: #000000"> <div style="clear: both"></div></span></span></p><p><span style="font-family: 'monospace'"><span style="color: #000000"> </form></span></span></p><p><span style="color: #0000bb"><span style="font-family: 'monospace'"><?php </span></span><span style="color: #007700"><span style="font-family: 'monospace'">} </span></span><span style="color: #0000bb"><span style="font-family: 'monospace'">?></span></span><span style="font-family: 'monospace'"><span style="color: #000000"> </div></span></span></p><p><span style="font-family: 'monospace'"><span style="color: #000000"></div></span></span></p><p> </p><p><span style="font-family: 'monospace'"><span style="color: #000000"><script type="text/javascript"></span></span></p><p><span style="font-family: 'monospace'"><span style="color: #000000">document.observe("dom:loaded", function() {</span></span></p><p><span style="font-family: 'monospace'"><span style="color: #000000"> TagHelper.setTexts({</span></span></p><p><span style="font-family: 'monospace'"><span style="color: #000000"> tagLimitText: "you have reached your tag limit - delete 1 if you want to add new one.",</span></span></p><p><span style="font-family: 'monospace'"><span style="color: #000000"> invalidTagText: "Invalid tag",</span></span></p><p><span style="font-family: 'monospace'"><span style="color: #000000"> buttonText: "OK"</span></span></p><p><span style="font-family: 'monospace'"><span style="color: #000000"> });</span></span></p><p><span style="font-family: 'monospace'"><span style="color: #000000"> TagHelper.init('21063711');</span></span></p><p><span style="font-family: 'monospace'"><span style="color: #000000">});</span></span></p><p><span style="font-family: 'monospace'"><span style="color: #000000"></script></span></span></p><p><span style="font-family: 'monospace'"><span style="color: #000000"></div></span></span></p><p> </p><p> </p><p> </p><p> </p><p> </p><p><span style="font-family: 'monospace'"><span style="color: #000000">PHP</span></span></p><p> </p><p><span style="color: #007700"><span style="font-family: 'monospace'">[</span></span><span style="color: #0000bb"><span style="font-family: 'monospace'">PHP</span></span><span style="color: #007700"><span style="font-family: 'monospace'">]</span></span><span style="color: #0000bb"><span style="font-family: 'monospace'">$my_id </span></span><span style="color: #007700"><span style="font-family: 'monospace'">= </span></span><span style="color: #0000bb"><span style="font-family: 'monospace'">$_SESSION</span></span><span style="color: #007700"><span style="font-family: 'monospace'">[</span></span><span style="color: #dd0000"><span style="font-family: 'monospace'">'user'</span></span><span style="color: #007700"><span style="font-family: 'monospace'">][</span></span><span style="color: #dd0000"><span style="font-family: 'monospace'">'id'</span></span><span style="color: #007700"><span style="font-family: 'monospace'">];</span></span><span style="color: #0000bb"><span style="font-family: 'monospace'">$fetch_tags </span></span><span style="color: #007700"><span style="font-family: 'monospace'">= </span></span><span style="color: #0000bb"><span style="font-family: 'monospace'">mysql_query</span></span><span style="color: #007700"><span style="font-family: 'monospace'">(</span></span><span style="color: #dd0000"><span style="font-family: 'monospace'">"SELECT tag,id FROM user_tags WHERE user_id = '"</span></span><span style="color: #007700"><span style="font-family: 'monospace'">.</span></span><span style="color: #0000bb"><span style="font-family: 'monospace'">$my_id</span></span><span style="color: #007700"><span style="font-family: 'monospace'">.</span></span><span style="color: #dd0000"><span style="font-family: 'monospace'">"' LIMIT 20"</span></span><span style="color: #007700"><span style="font-family: 'monospace'">) or die(</span></span><span style="color: #0000bb"><span style="font-family: 'monospace'">mysql_error</span></span><span style="color: #007700"><span style="font-family: 'monospace'">());</span></span><span style="color: #0000bb"><span style="font-family: 'monospace'">$tags_num </span></span><span style="color: #007700"><span style="font-family: 'monospace'">= </span></span><span style="color: #0000bb"><span style="font-family: 'monospace'">mysql_num_rows</span></span><span style="color: #007700"><span style="font-family: 'monospace'">(</span></span><span style="color: #0000bb"><span style="font-family: 'monospace'">$fetch_tags</span></span><span style="color: #007700"><span style="font-family: 'monospace'">);</span></span></p><p> <span style="color: #007700"><span style="font-family: 'monospace'"></span></span></p><p><span style="color: #007700"><span style="font-family: 'monospace'"> </span></span><span style="color: #0000bb"><span style="font-family: 'monospace'">$randomq</span></span><span style="color: #007700"><span style="font-family: 'monospace'">[] = </span></span><span style="color: #dd0000"><span style="font-family: 'monospace'">"What is your favourite food?"</span></span><span style="color: #007700"><span style="font-family: 'monospace'">;</span></span></p><p><span style="color: #007700"><span style="font-family: 'monospace'"> </span></span><span style="color: #0000bb"><span style="font-family: 'monospace'">$randomq</span></span><span style="color: #007700"><span style="font-family: 'monospace'">[] = </span></span><span style="color: #dd0000"><span style="font-family: 'monospace'">"Who is your favourite actor?"</span></span><span style="color: #007700"><span style="font-family: 'monospace'">;</span></span></p><p><span style="color: #007700"><span style="font-family: 'monospace'"> </span></span><span style="color: #0000bb"><span style="font-family: 'monospace'">$randomq</span></span><span style="color: #007700"><span style="font-family: 'monospace'">[] = </span></span><span style="color: #dd0000"><span style="font-family: 'monospace'">"What kind of music do you like?"</span></span><span style="color: #007700"><span style="font-family: 'monospace'">;</span></span></p><p><span style="color: #007700"><span style="font-family: 'monospace'"> </span></span><span style="color: #0000bb"><span style="font-family: 'monospace'">$randomq</span></span><span style="color: #007700"><span style="font-family: 'monospace'">[] = </span></span><span style="color: #dd0000"><span style="font-family: 'monospace'">"What is your favourite sport?"</span></span><span style="color: #007700"><span style="font-family: 'monospace'">;</span></span></p><p><span style="color: #007700"><span style="font-family: 'monospace'"> </span></span><span style="color: #0000bb"><span style="font-family: 'monospace'">$randomq</span></span><span style="color: #007700"><span style="font-family: 'monospace'">[] = </span></span><span style="color: #dd0000"><span style="font-family: 'monospace'">"Who is your favourite actress?"</span></span><span style="color: #007700"><span style="font-family: 'monospace'">;</span></span></p><p><span style="color: #007700"><span style="font-family: 'monospace'"> </span></span><span style="color: #0000bb"><span style="font-family: 'monospace'">$randomq</span></span><span style="color: #007700"><span style="font-family: 'monospace'">[] = </span></span><span style="color: #dd0000"><span style="font-family: 'monospace'">"What is your favourite colour?"</span></span><span style="color: #007700"><span style="font-family: 'monospace'">;</span></span></p><p><span style="color: #007700"><span style="font-family: 'monospace'"> </span></span><span style="color: #0000bb"><span style="font-family: 'monospace'">$randomq</span></span><span style="color: #007700"><span style="font-family: 'monospace'">[] = </span></span><span style="color: #dd0000"><span style="font-family: 'monospace'">"What is your favourite band?"</span></span><span style="color: #007700"><span style="font-family: 'monospace'">;</span></span></p><p><span style="color: #007700"><span style="font-family: 'monospace'"> </span></span><span style="color: #0000bb"><span style="font-family: 'monospace'">$randomq</span></span><span style="color: #007700"><span style="font-family: 'monospace'">[] = </span></span><span style="color: #dd0000"><span style="font-family: 'monospace'">"What is your favourite TV show?"</span></span><span style="color: #007700"><span style="font-family: 'monospace'">;</span></span></p><p><span style="color: #007700"><span style="font-family: 'monospace'"> </span></span><span style="color: #0000bb"><span style="font-family: 'monospace'">$randomq</span></span><span style="color: #007700"><span style="font-family: 'monospace'">[] = </span></span><span style="color: #dd0000"><span style="font-family: 'monospace'">"Which football team do you support?"</span></span><span style="color: #007700"><span style="font-family: 'monospace'">;</span></span></p><p><span style="color: #007700"><span style="font-family: 'monospace'"> </span></span><span style="color: #0000bb"><span style="font-family: 'monospace'">$randomq</span></span><span style="color: #007700"><span style="font-family: 'monospace'">[] = </span></span><span style="color: #dd0000"><span style="font-family: 'monospace'">"What is your favourite football team?"</span></span><span style="color: #007700"><span style="font-family: 'monospace'">;</span></span></p><p><span style="color: #007700"><span style="font-family: 'monospace'"> </span></span><span style="color: #0000bb"><span style="font-family: 'monospace'">$randomq</span></span><span style="color: #007700"><span style="font-family: 'monospace'">[] = </span></span><span style="color: #dd0000"><span style="font-family: 'monospace'">"Your favourite cartoon?"</span></span><span style="color: #007700"><span style="font-family: 'monospace'">;</span></span></p><p><span style="color: #007700"><span style="font-family: 'monospace'"> </span></span><span style="color: #0000bb"><span style="font-family: 'monospace'">$randomq</span></span><span style="color: #007700"><span style="font-family: 'monospace'">[] = </span></span><span style="color: #dd0000"><span style="font-family: 'monospace'">"What is your favourite video game?"</span></span><span style="color: #007700"><span style="font-family: 'monospace'">;</span></span></p><p><span style="color: #007700"><span style="font-family: 'monospace'"> </span></span><span style="color: #0000bb"><span style="font-family: 'monospace'">$randomq</span></span><span style="color: #007700"><span style="font-family: 'monospace'">[] = </span></span><span style="color: #dd0000"><span style="font-family: 'monospace'">"What's your favourite pastime?"</span></span><span style="color: #007700"><span style="font-family: 'monospace'">;</span></span></p><p><span style="color: #007700"><span style="font-family: 'monospace'"> </span></span><span style="color: #0000bb"><span style="font-family: 'monospace'">$randomq</span></span><span style="color: #007700"><span style="font-family: 'monospace'">[] = </span></span><span style="color: #dd0000"><span style="font-family: 'monospace'">"What kind of mood are you in right now?"</span></span><span style="color: #007700"><span style="font-family: 'monospace'">;</span></span></p><p><span style="color: #007700"><span style="font-family: 'monospace'"> </span></span><span style="color: #0000bb"><span style="font-family: 'monospace'">$randomq</span></span><span style="color: #007700"><span style="font-family: 'monospace'">[] = </span></span><span style="color: #dd0000"><span style="font-family: 'monospace'">"What is your favourite movie?"</span></span><span style="color: #007700"><span style="font-family: 'monospace'">;</span></span></p><p><span style="color: #007700"><span style="font-family: 'monospace'"> </span></span><span style="color: #0000bb"><span style="font-family: 'monospace'">$randomq</span></span><span style="color: #007700"><span style="font-family: 'monospace'">[] = </span></span><span style="color: #dd0000"><span style="font-family: 'monospace'">"What is your favourite time of year?"</span></span><span style="color: #007700"><span style="font-family: 'monospace'">;</span></span></p><p> <span style="color: #007700"><span style="font-family: 'monospace'"></span></span><span style="color: #0000bb"><span style="font-family: 'monospace'">srand </span></span><span style="color: #007700"><span style="font-family: 'monospace'">((double) </span></span><span style="color: #0000bb"><span style="font-family: 'monospace'">microtime</span></span><span style="color: #007700"><span style="font-family: 'monospace'">() * </span></span><span style="color: #0000bb"><span style="font-family: 'monospace'">1000000</span></span><span style="color: #007700"><span style="font-family: 'monospace'">);</span></span><span style="color: #0000bb"><span style="font-family: 'monospace'">$chosen </span></span><span style="color: #007700"><span style="font-family: 'monospace'">= </span></span><span style="color: #0000bb"><span style="font-family: 'monospace'">rand</span></span><span style="color: #007700"><span style="font-family: 'monospace'">(</span></span><span style="color: #0000bb"><span style="font-family: 'monospace'">0</span></span><span style="color: #007700"><span style="font-family: 'monospace'">,</span></span><span style="color: #0000bb"><span style="font-family: 'monospace'">count</span></span><span style="color: #007700"><span style="font-family: 'monospace'">(</span></span><span style="color: #0000bb"><span style="font-family: 'monospace'">$randomq</span></span><span style="color: #007700"><span style="font-family: 'monospace'">)-</span></span><span style="color: #0000bb"><span style="font-family: 'monospace'">1</span></span><span style="color: #007700"><span style="font-family: 'monospace'">);</span></span></p><p> <span style="color: #007700"><span style="font-family: 'monospace'"></span></span><span style="color: #0000bb"><span style="font-family: 'monospace'">$tag_question </span></span><span style="color: #007700"><span style="font-family: 'monospace'">= </span></span><span style="color: #0000bb"><span style="font-family: 'monospace'">$randomq</span></span><span style="color: #007700"><span style="font-family: 'monospace'">[</span></span><span style="color: #0000bb"><span style="font-family: 'monospace'">$chosen</span></span><span style="color: #007700"><span style="font-family: 'monospace'">];</span></span></p><p> <span style="color: #007700"><span style="font-family: 'monospace'"></span></span></p><p><span style="color: #007700"><span style="font-family: 'monospace'"> </span></span><span style="color: #0000bb"><span style="font-family: 'monospace'">$do </span></span><span style="color: #007700"><span style="font-family: 'monospace'">= </span></span><span style="color: #0000bb"><span style="font-family: 'monospace'">$_GET</span></span><span style="color: #007700"><span style="font-family: 'monospace'">[</span></span><span style="color: #dd0000"><span style="font-family: 'monospace'">'do'</span></span><span style="color: #007700"><span style="font-family: 'monospace'">];</span></span></p><p><span style="color: #007700"><span style="font-family: 'monospace'"> if(</span></span><span style="color: #0000bb"><span style="font-family: 'monospace'">$do </span></span><span style="color: #007700"><span style="font-family: 'monospace'">!= </span></span><span style="color: #dd0000"><span style="font-family: 'monospace'">""</span></span><span style="color: #007700"><span style="font-family: 'monospace'">) {</span></span></p><p><span style="color: #007700"><span style="font-family: 'monospace'"> </span></span><span style="color: #0000bb"><span style="font-family: 'monospace'">mysql_query</span></span><span style="color: #007700"><span style="font-family: 'monospace'">(</span></span><span style="color: #dd0000"><span style="font-family: 'monospace'">"DELETE FROM user_tags WHERE id = '"</span></span><span style="color: #007700"><span style="font-family: 'monospace'">.</span></span><span style="color: #0000bb"><span style="font-family: 'monospace'">$do</span></span><span style="color: #007700"><span style="font-family: 'monospace'">.</span></span><span style="color: #dd0000"><span style="font-family: 'monospace'">"'"</span></span><span style="color: #007700"><span style="font-family: 'monospace'">);</span></span></p><p><span style="color: #007700"><span style="font-family: 'monospace'"> </span></span><span style="color: #0000bb"><span style="font-family: 'monospace'">Redirect</span></span><span style="color: #007700"><span style="font-family: 'monospace'">(</span></span><span style="color: #dd0000"><span style="font-family: 'monospace'">"me"</span></span><span style="color: #007700"><span style="font-family: 'monospace'">);</span></span></p><p><span style="color: #007700"><span style="font-family: 'monospace'"> }</span></span></p><p><span style="color: #007700"><span style="font-family: 'monospace'"> </span></span></p><p><span style="color: #007700"><span style="font-family: 'monospace'"> if (isset(</span></span><span style="color: #0000bb"><span style="font-family: 'monospace'">$_POST</span></span><span style="color: #007700"><span style="font-family: 'monospace'">[</span></span><span style="color: #dd0000"><span style="font-family: 'monospace'">'newtag'</span></span><span style="color: #007700"><span style="font-family: 'monospace'">]))</span></span></p><p><span style="color: #007700"><span style="font-family: 'monospace'"> {</span></span></p><p><span style="color: #007700"><span style="font-family: 'monospace'"> </span></span><span style="color: #0000bb"><span style="font-family: 'monospace'">$user_id </span></span><span style="color: #007700"><span style="font-family: 'monospace'">= </span></span><span style="color: #0000bb"><span style="font-family: 'monospace'">$_SESSION</span></span><span style="color: #007700"><span style="font-family: 'monospace'">[</span></span><span style="color: #dd0000"><span style="font-family: 'monospace'">'user'</span></span><span style="color: #007700"><span style="font-family: 'monospace'">][</span></span><span style="color: #dd0000"><span style="font-family: 'monospace'">'id'</span></span><span style="color: #007700"><span style="font-family: 'monospace'">];</span></span></p><p><span style="color: #007700"><span style="font-family: 'monospace'"> </span></span><span style="color: #0000bb"><span style="font-family: 'monospace'">$tag </span></span><span style="color: #007700"><span style="font-family: 'monospace'">= </span></span><span style="color: #0000bb"><span style="font-family: 'monospace'">htmlspecialchars</span></span><span style="color: #007700"><span style="font-family: 'monospace'">(</span></span><span style="color: #0000bb"><span style="font-family: 'monospace'">addslashes</span></span><span style="color: #007700"><span style="font-family: 'monospace'">(</span></span><span style="color: #0000bb"><span style="font-family: 'monospace'">$_POST</span></span><span style="color: #007700"><span style="font-family: 'monospace'">[</span></span><span style="color: #0000bb"><span style="font-family: 'monospace'">newtag</span></span><span style="color: #007700"><span style="font-family: 'monospace'">]));</span></span></p><p><span style="color: #007700"><span style="font-family: 'monospace'"> </span></span></p><p><span style="color: #007700"><span style="font-family: 'monospace'"> if (</span></span><span style="color: #0000bb"><span style="font-family: 'monospace'">strlen</span></span><span style="color: #007700"><span style="font-family: 'monospace'">(</span></span><span style="color: #0000bb"><span style="font-family: 'monospace'">$user_id</span></span><span style="color: #007700"><span style="font-family: 'monospace'">) < </span></span><span style="color: #0000bb"><span style="font-family: 'monospace'">1 </span></span><span style="color: #007700"><span style="font-family: 'monospace'">|| </span></span><span style="color: #0000bb"><span style="font-family: 'monospace'">strlen</span></span><span style="color: #007700"><span style="font-family: 'monospace'">(</span></span><span style="color: #0000bb"><span style="font-family: 'monospace'">$tag</span></span><span style="color: #007700"><span style="font-family: 'monospace'">) < </span></span><span style="color: #0000bb"><span style="font-family: 'monospace'">1</span></span><span style="color: #007700"><span style="font-family: 'monospace'">)</span></span></p><p><span style="color: #007700"><span style="font-family: 'monospace'"> {</span></span></p><p><span style="color: #007700"><span style="font-family: 'monospace'"> </span></span><span style="color: #0000bb"><span style="font-family: 'monospace'">Redirect</span></span><span style="color: #007700"><span style="font-family: 'monospace'">(</span></span><span style="color: #dd0000"><span style="font-family: 'monospace'">"me"</span></span><span style="color: #007700"><span style="font-family: 'monospace'">);</span></span></p><p><span style="color: #007700"><span style="font-family: 'monospace'"> }</span></span></p><p><span style="color: #007700"><span style="font-family: 'monospace'"> else</span></span></p><p><span style="color: #007700"><span style="font-family: 'monospace'"> {</span></span></p><p><span style="color: #007700"><span style="font-family: 'monospace'"> </span></span><span style="color: #0000bb"><span style="font-family: 'monospace'">mysql_query</span></span><span style="color: #007700"><span style="font-family: 'monospace'">(</span></span><span style="color: #dd0000"><span style="font-family: 'monospace'">"INSERT INTO user_tags (user_id ,tag) VALUES ('" </span></span><span style="color: #007700"><span style="font-family: 'monospace'">. </span></span><span style="color: #0000bb"><span style="font-family: 'monospace'">$user_id </span></span><span style="color: #007700"><span style="font-family: 'monospace'">. </span></span><span style="color: #dd0000"><span style="font-family: 'monospace'">"','" </span></span><span style="color: #007700"><span style="font-family: 'monospace'">. </span></span><span style="color: #0000bb"><span style="font-family: 'monospace'">$tag </span></span><span style="color: #007700"><span style="font-family: 'monospace'">. </span></span><span style="color: #dd0000"><span style="font-family: 'monospace'">"')"</span></span><span style="color: #007700"><span style="font-family: 'monospace'">);</span></span></p><p><span style="color: #007700"><span style="font-family: 'monospace'"> </span></span><span style="color: #0000bb"><span style="font-family: 'monospace'">Redirect</span></span><span style="color: #007700"><span style="font-family: 'monospace'">(</span></span><span style="color: #dd0000"><span style="font-family: 'monospace'">"me"</span></span><span style="color: #007700"><span style="font-family: 'monospace'">);</span></span></p><p><span style="color: #007700"><span style="font-family: 'monospace'"> }</span></span></p><p><span style="color: #007700"><span style="font-family: 'monospace'"> }</span></span></p><p> </p><p> </p><p> </p><p> </p><p> </p><p> </p><p><a href="http://devbest.com/threads/addon-tags-revcms.14785/" target="_blank">http://devbest.com/threads/addon-tags-revcms.14785/</a> <- <img src="/styles/default/xenforo/smilies/emojione/smile.png" class="smilie" loading="lazy" alt=":)" title="Smile :)" data-shortname=":)" /></p><p> </p><p></p></blockquote><p></p>
[QUOTE="duplix, post: 127762, member: 18659"] HTML [FONT=monospace][COLOR=#000000]<div class="content-box-radio">[/COLOR][/FONT] [FONT=monospace][COLOR=#000000]<div class="habblet-container ">[/COLOR][/FONT] [FONT=monospace][COLOR=#000000] <ul class="box-tabs">[/COLOR][/FONT] [FONT=monospace][COLOR=#000000] <li id="tab-3-2" class="selected"><a href="#">My Tags</a><span class="tab-spacer"></span></li>[/COLOR][/FONT] [FONT=monospace][COLOR=#000000] </ul>[/COLOR][/FONT] [FONT=monospace][COLOR=#000000] <br />[/COLOR][/FONT] [FONT=monospace][COLOR=#000000] <a href="me" class="tab-ajax"></a>[/COLOR][/FONT] [FONT=monospace][COLOR=#000000] </div>[/COLOR][/FONT] [FONT=monospace][COLOR=#000000] <div id="tab-3-2-content" >[/COLOR][/FONT] [FONT=monospace][COLOR=#000000] <div id="my-tag-info" class="habblet-content-info">[/COLOR][/FONT] [FONT=monospace][COLOR=#000000] [/COLOR][/FONT][COLOR=#0000bb][FONT=monospace]<?php [/FONT][/COLOR][COLOR=#007700][FONT=monospace]if([/FONT][/COLOR][COLOR=#0000bb][FONT=monospace]$tags_num [/FONT][/COLOR][COLOR=#007700][FONT=monospace]> [/FONT][/COLOR][COLOR=#0000bb][FONT=monospace]19[/FONT][/COLOR][COLOR=#007700][FONT=monospace]){ echo [/FONT][/COLOR][COLOR=#dd0000][FONT=monospace]"Max limit tag.delete one of your tag and then add."[/FONT][/COLOR][COLOR=#007700][FONT=monospace]; } elseif([/FONT][/COLOR][COLOR=#0000bb][FONT=monospace]$tags_num [/FONT][/COLOR][COLOR=#007700][FONT=monospace]== [/FONT][/COLOR][COLOR=#0000bb][FONT=monospace]0[/FONT][/COLOR][COLOR=#007700][FONT=monospace]){ echo [/FONT][/COLOR][COLOR=#dd0000][FONT=monospace]"You dont have tag. Answere the question or make ur own."[/FONT][/COLOR][COLOR=#007700][FONT=monospace]; } elseif([/FONT][/COLOR][COLOR=#0000bb][FONT=monospace]$tags_num [/FONT][/COLOR][COLOR=#007700][FONT=monospace]< [/FONT][/COLOR][COLOR=#0000bb][FONT=monospace]20[/FONT][/COLOR][COLOR=#007700][FONT=monospace]){ echo [/FONT][/COLOR][COLOR=#dd0000][FONT=monospace]"u dident use all of ur tags. Add more!"[/FONT][/COLOR][COLOR=#007700][FONT=monospace]; } [/FONT][/COLOR][COLOR=#0000bb][FONT=monospace]?>[/FONT][/COLOR][FONT=monospace][COLOR=#000000] </div>[/COLOR][/FONT] [FONT=monospace][COLOR=#000000]<div class="box-content">[/COLOR][/FONT] [FONT=monospace][COLOR=#000000] <div class="habblet" id="my-tags-list">[/COLOR][/FONT] [FONT=monospace][COLOR=#000000] [/COLOR][/FONT] [COLOR=#0000bb][FONT=monospace]<?php [/FONT][/COLOR][COLOR=#007700][FONT=monospace]if([/FONT][/COLOR][COLOR=#0000bb][FONT=monospace]$tags_num [/FONT][/COLOR][COLOR=#007700][FONT=monospace]> [/FONT][/COLOR][COLOR=#0000bb][FONT=monospace]0[/FONT][/COLOR][COLOR=#007700][FONT=monospace]){ echo [/FONT][/COLOR][COLOR=#dd0000][FONT=monospace]"<ul class=\"tag-list make-clickable\"> "[/FONT][/COLOR][COLOR=#007700][FONT=monospace]; while([/FONT][/COLOR][COLOR=#0000bb][FONT=monospace]$row [/FONT][/COLOR][COLOR=#007700][FONT=monospace]= [/FONT][/COLOR][COLOR=#0000bb][FONT=monospace]mysql_fetch_assoc[/FONT][/COLOR][COLOR=#007700][FONT=monospace]([/FONT][/COLOR][COLOR=#0000bb][FONT=monospace]$fetch_tags[/FONT][/COLOR][COLOR=#007700][FONT=monospace])){ echo [/FONT][/COLOR][COLOR=#dd0000][FONT=monospace]" <li><a href=\"tags?tag="[/FONT][/COLOR][COLOR=#007700][FONT=monospace].[/FONT][/COLOR][COLOR=#0000bb][FONT=monospace]strtolower[/FONT][/COLOR][COLOR=#007700][FONT=monospace]([/FONT][/COLOR][COLOR=#0000bb][FONT=monospace]$row[/FONT][/COLOR][COLOR=#007700][FONT=monospace][[/FONT][/COLOR][COLOR=#dd0000][FONT=monospace]'tag'[/FONT][/COLOR][COLOR=#007700][FONT=monospace]]).[/FONT][/COLOR][COLOR=#dd0000][FONT=monospace]"\" class=\"tag\" style=\"font-size:10px\">"[/FONT][/COLOR][COLOR=#007700][FONT=monospace].[/FONT][/COLOR][COLOR=#0000bb][FONT=monospace]strtolower[/FONT][/COLOR][COLOR=#007700][FONT=monospace]([/FONT][/COLOR][COLOR=#0000bb][FONT=monospace]$row[/FONT][/COLOR][COLOR=#007700][FONT=monospace][[/FONT][/COLOR][COLOR=#dd0000][FONT=monospace]'tag'[/FONT][/COLOR][COLOR=#007700][FONT=monospace]]).[/FONT][/COLOR][COLOR=#dd0000][FONT=monospace]"</a> <a href='?do="[/FONT][/COLOR][COLOR=#007700][FONT=monospace].[/FONT][/COLOR][COLOR=#0000bb][FONT=monospace]$row[/FONT][/COLOR][COLOR=#007700][FONT=monospace][[/FONT][/COLOR][COLOR=#dd0000][FONT=monospace]'id'[/FONT][/COLOR][COLOR=#007700][FONT=monospace]].[/FONT][/COLOR][COLOR=#dd0000][FONT=monospace]"' title=\"delete tag\"><img src='app/tpl/skins/Mango/images/tags.gif' /></a></li>"[/FONT][/COLOR][COLOR=#007700][FONT=monospace]; } echo [/FONT][/COLOR][COLOR=#dd0000][FONT=monospace]"</ul>"[/FONT][/COLOR][COLOR=#007700][FONT=monospace]; } [/FONT][/COLOR][COLOR=#0000bb][FONT=monospace]?>[/FONT][/COLOR][FONT=monospace][COLOR=#000000] [/COLOR][/FONT] [COLOR=#0000bb][FONT=monospace]<?php [/FONT][/COLOR][COLOR=#007700][FONT=monospace]if([/FONT][/COLOR][COLOR=#0000bb][FONT=monospace]$tags_num [/FONT][/COLOR][COLOR=#007700][FONT=monospace]< [/FONT][/COLOR][COLOR=#0000bb][FONT=monospace]20[/FONT][/COLOR][COLOR=#007700][FONT=monospace]){ [/FONT][/COLOR][COLOR=#0000bb][FONT=monospace]?>[/FONT][/COLOR][FONT=monospace][COLOR=#000000] <form method="post">[/COLOR][/FONT] [FONT=monospace][COLOR=#000000] <div class="add-tag-form clearfix">[/COLOR][/FONT] [FONT=monospace][COLOR=#000000] <input type="image" class="tagme" src="YOURTAGIMG to validate">[/COLOR][/FONT] [FONT=monospace][COLOR=#000000] <input type="text" name="newtag" id="add-tag-input" maxlength="20" style="float: left"/>[/COLOR][/FONT] [FONT=monospace][COLOR=#000000] <em class="tag-question">[/COLOR][/FONT][COLOR=#0000bb][FONT=monospace]<?php [/FONT][/COLOR][COLOR=#007700][FONT=monospace]echo [/FONT][/COLOR][COLOR=#0000bb][FONT=monospace]$tag_question[/FONT][/COLOR][COLOR=#007700][FONT=monospace]; [/FONT][/COLOR][COLOR=#0000bb][FONT=monospace]?>[/FONT][/COLOR][FONT=monospace][COLOR=#000000]</em>[/COLOR][/FONT] [FONT=monospace][COLOR=#000000] </div>[/COLOR][/FONT] [FONT=monospace][COLOR=#000000] <div style="clear: both"></div>[/COLOR][/FONT] [FONT=monospace][COLOR=#000000] </form>[/COLOR][/FONT] [COLOR=#0000bb][FONT=monospace]<?php [/FONT][/COLOR][COLOR=#007700][FONT=monospace]} [/FONT][/COLOR][COLOR=#0000bb][FONT=monospace]?>[/FONT][/COLOR][FONT=monospace][COLOR=#000000] </div>[/COLOR][/FONT] [FONT=monospace][COLOR=#000000]</div>[/COLOR][/FONT] [FONT=monospace][COLOR=#000000] [/COLOR][/FONT] [FONT=monospace][COLOR=#000000]<script type="text/javascript">[/COLOR][/FONT] [FONT=monospace][COLOR=#000000]document.observe("dom:loaded", function() {[/COLOR][/FONT] [FONT=monospace][COLOR=#000000] TagHelper.setTexts({[/COLOR][/FONT] [FONT=monospace][COLOR=#000000] tagLimitText: "you have reached your tag limit - delete 1 if you want to add new one.",[/COLOR][/FONT] [FONT=monospace][COLOR=#000000] invalidTagText: "Invalid tag",[/COLOR][/FONT] [FONT=monospace][COLOR=#000000] buttonText: "OK"[/COLOR][/FONT] [FONT=monospace][COLOR=#000000] });[/COLOR][/FONT] [FONT=monospace][COLOR=#000000] TagHelper.init('21063711');[/COLOR][/FONT] [FONT=monospace][COLOR=#000000]});[/COLOR][/FONT] [FONT=monospace][COLOR=#000000]</script>[/COLOR][/FONT] [FONT=monospace][COLOR=#000000]</div>[/COLOR][/FONT] [FONT=monospace][COLOR=#000000]PHP[/COLOR][/FONT] [COLOR=#007700][FONT=monospace][[/FONT][/COLOR][COLOR=#0000bb][FONT=monospace]PHP[/FONT][/COLOR][COLOR=#007700][FONT=monospace]][/FONT][/COLOR][COLOR=#0000bb][FONT=monospace]$my_id [/FONT][/COLOR][COLOR=#007700][FONT=monospace]= [/FONT][/COLOR][COLOR=#0000bb][FONT=monospace]$_SESSION[/FONT][/COLOR][COLOR=#007700][FONT=monospace][[/FONT][/COLOR][COLOR=#dd0000][FONT=monospace]'user'[/FONT][/COLOR][COLOR=#007700][FONT=monospace]][[/FONT][/COLOR][COLOR=#dd0000][FONT=monospace]'id'[/FONT][/COLOR][COLOR=#007700][FONT=monospace]];[/FONT][/COLOR][COLOR=#0000bb][FONT=monospace]$fetch_tags [/FONT][/COLOR][COLOR=#007700][FONT=monospace]= [/FONT][/COLOR][COLOR=#0000bb][FONT=monospace]mysql_query[/FONT][/COLOR][COLOR=#007700][FONT=monospace]([/FONT][/COLOR][COLOR=#dd0000][FONT=monospace]"SELECT tag,id FROM user_tags WHERE user_id = '"[/FONT][/COLOR][COLOR=#007700][FONT=monospace].[/FONT][/COLOR][COLOR=#0000bb][FONT=monospace]$my_id[/FONT][/COLOR][COLOR=#007700][FONT=monospace].[/FONT][/COLOR][COLOR=#dd0000][FONT=monospace]"' LIMIT 20"[/FONT][/COLOR][COLOR=#007700][FONT=monospace]) or die([/FONT][/COLOR][COLOR=#0000bb][FONT=monospace]mysql_error[/FONT][/COLOR][COLOR=#007700][FONT=monospace]());[/FONT][/COLOR][COLOR=#0000bb][FONT=monospace]$tags_num [/FONT][/COLOR][COLOR=#007700][FONT=monospace]= [/FONT][/COLOR][COLOR=#0000bb][FONT=monospace]mysql_num_rows[/FONT][/COLOR][COLOR=#007700][FONT=monospace]([/FONT][/COLOR][COLOR=#0000bb][FONT=monospace]$fetch_tags[/FONT][/COLOR][COLOR=#007700][FONT=monospace]); [/FONT][/COLOR][COLOR=#0000bb][FONT=monospace]$randomq[/FONT][/COLOR][COLOR=#007700][FONT=monospace][] = [/FONT][/COLOR][COLOR=#dd0000][FONT=monospace]"What is your favourite food?"[/FONT][/COLOR][COLOR=#007700][FONT=monospace]; [/FONT][/COLOR][COLOR=#0000bb][FONT=monospace]$randomq[/FONT][/COLOR][COLOR=#007700][FONT=monospace][] = [/FONT][/COLOR][COLOR=#dd0000][FONT=monospace]"Who is your favourite actor?"[/FONT][/COLOR][COLOR=#007700][FONT=monospace]; [/FONT][/COLOR][COLOR=#0000bb][FONT=monospace]$randomq[/FONT][/COLOR][COLOR=#007700][FONT=monospace][] = [/FONT][/COLOR][COLOR=#dd0000][FONT=monospace]"What kind of music do you like?"[/FONT][/COLOR][COLOR=#007700][FONT=monospace]; [/FONT][/COLOR][COLOR=#0000bb][FONT=monospace]$randomq[/FONT][/COLOR][COLOR=#007700][FONT=monospace][] = [/FONT][/COLOR][COLOR=#dd0000][FONT=monospace]"What is your favourite sport?"[/FONT][/COLOR][COLOR=#007700][FONT=monospace]; [/FONT][/COLOR][COLOR=#0000bb][FONT=monospace]$randomq[/FONT][/COLOR][COLOR=#007700][FONT=monospace][] = [/FONT][/COLOR][COLOR=#dd0000][FONT=monospace]"Who is your favourite actress?"[/FONT][/COLOR][COLOR=#007700][FONT=monospace]; [/FONT][/COLOR][COLOR=#0000bb][FONT=monospace]$randomq[/FONT][/COLOR][COLOR=#007700][FONT=monospace][] = [/FONT][/COLOR][COLOR=#dd0000][FONT=monospace]"What is your favourite colour?"[/FONT][/COLOR][COLOR=#007700][FONT=monospace]; [/FONT][/COLOR][COLOR=#0000bb][FONT=monospace]$randomq[/FONT][/COLOR][COLOR=#007700][FONT=monospace][] = [/FONT][/COLOR][COLOR=#dd0000][FONT=monospace]"What is your favourite band?"[/FONT][/COLOR][COLOR=#007700][FONT=monospace]; [/FONT][/COLOR][COLOR=#0000bb][FONT=monospace]$randomq[/FONT][/COLOR][COLOR=#007700][FONT=monospace][] = [/FONT][/COLOR][COLOR=#dd0000][FONT=monospace]"What is your favourite TV show?"[/FONT][/COLOR][COLOR=#007700][FONT=monospace]; [/FONT][/COLOR][COLOR=#0000bb][FONT=monospace]$randomq[/FONT][/COLOR][COLOR=#007700][FONT=monospace][] = [/FONT][/COLOR][COLOR=#dd0000][FONT=monospace]"Which football team do you support?"[/FONT][/COLOR][COLOR=#007700][FONT=monospace]; [/FONT][/COLOR][COLOR=#0000bb][FONT=monospace]$randomq[/FONT][/COLOR][COLOR=#007700][FONT=monospace][] = [/FONT][/COLOR][COLOR=#dd0000][FONT=monospace]"What is your favourite football team?"[/FONT][/COLOR][COLOR=#007700][FONT=monospace]; [/FONT][/COLOR][COLOR=#0000bb][FONT=monospace]$randomq[/FONT][/COLOR][COLOR=#007700][FONT=monospace][] = [/FONT][/COLOR][COLOR=#dd0000][FONT=monospace]"Your favourite cartoon?"[/FONT][/COLOR][COLOR=#007700][FONT=monospace]; [/FONT][/COLOR][COLOR=#0000bb][FONT=monospace]$randomq[/FONT][/COLOR][COLOR=#007700][FONT=monospace][] = [/FONT][/COLOR][COLOR=#dd0000][FONT=monospace]"What is your favourite video game?"[/FONT][/COLOR][COLOR=#007700][FONT=monospace]; [/FONT][/COLOR][COLOR=#0000bb][FONT=monospace]$randomq[/FONT][/COLOR][COLOR=#007700][FONT=monospace][] = [/FONT][/COLOR][COLOR=#dd0000][FONT=monospace]"What's your favourite pastime?"[/FONT][/COLOR][COLOR=#007700][FONT=monospace]; [/FONT][/COLOR][COLOR=#0000bb][FONT=monospace]$randomq[/FONT][/COLOR][COLOR=#007700][FONT=monospace][] = [/FONT][/COLOR][COLOR=#dd0000][FONT=monospace]"What kind of mood are you in right now?"[/FONT][/COLOR][COLOR=#007700][FONT=monospace]; [/FONT][/COLOR][COLOR=#0000bb][FONT=monospace]$randomq[/FONT][/COLOR][COLOR=#007700][FONT=monospace][] = [/FONT][/COLOR][COLOR=#dd0000][FONT=monospace]"What is your favourite movie?"[/FONT][/COLOR][COLOR=#007700][FONT=monospace]; [/FONT][/COLOR][COLOR=#0000bb][FONT=monospace]$randomq[/FONT][/COLOR][COLOR=#007700][FONT=monospace][] = [/FONT][/COLOR][COLOR=#dd0000][FONT=monospace]"What is your favourite time of year?"[/FONT][/COLOR][COLOR=#007700][FONT=monospace]; [/FONT][/COLOR][COLOR=#0000bb][FONT=monospace]srand [/FONT][/COLOR][COLOR=#007700][FONT=monospace]((double) [/FONT][/COLOR][COLOR=#0000bb][FONT=monospace]microtime[/FONT][/COLOR][COLOR=#007700][FONT=monospace]() * [/FONT][/COLOR][COLOR=#0000bb][FONT=monospace]1000000[/FONT][/COLOR][COLOR=#007700][FONT=monospace]);[/FONT][/COLOR][COLOR=#0000bb][FONT=monospace]$chosen [/FONT][/COLOR][COLOR=#007700][FONT=monospace]= [/FONT][/COLOR][COLOR=#0000bb][FONT=monospace]rand[/FONT][/COLOR][COLOR=#007700][FONT=monospace]([/FONT][/COLOR][COLOR=#0000bb][FONT=monospace]0[/FONT][/COLOR][COLOR=#007700][FONT=monospace],[/FONT][/COLOR][COLOR=#0000bb][FONT=monospace]count[/FONT][/COLOR][COLOR=#007700][FONT=monospace]([/FONT][/COLOR][COLOR=#0000bb][FONT=monospace]$randomq[/FONT][/COLOR][COLOR=#007700][FONT=monospace])-[/FONT][/COLOR][COLOR=#0000bb][FONT=monospace]1[/FONT][/COLOR][COLOR=#007700][FONT=monospace]); [/FONT][/COLOR][COLOR=#0000bb][FONT=monospace]$tag_question [/FONT][/COLOR][COLOR=#007700][FONT=monospace]= [/FONT][/COLOR][COLOR=#0000bb][FONT=monospace]$randomq[/FONT][/COLOR][COLOR=#007700][FONT=monospace][[/FONT][/COLOR][COLOR=#0000bb][FONT=monospace]$chosen[/FONT][/COLOR][COLOR=#007700][FONT=monospace]]; [/FONT][/COLOR][COLOR=#0000bb][FONT=monospace]$do [/FONT][/COLOR][COLOR=#007700][FONT=monospace]= [/FONT][/COLOR][COLOR=#0000bb][FONT=monospace]$_GET[/FONT][/COLOR][COLOR=#007700][FONT=monospace][[/FONT][/COLOR][COLOR=#dd0000][FONT=monospace]'do'[/FONT][/COLOR][COLOR=#007700][FONT=monospace]]; if([/FONT][/COLOR][COLOR=#0000bb][FONT=monospace]$do [/FONT][/COLOR][COLOR=#007700][FONT=monospace]!= [/FONT][/COLOR][COLOR=#dd0000][FONT=monospace]""[/FONT][/COLOR][COLOR=#007700][FONT=monospace]) { [/FONT][/COLOR][COLOR=#0000bb][FONT=monospace]mysql_query[/FONT][/COLOR][COLOR=#007700][FONT=monospace]([/FONT][/COLOR][COLOR=#dd0000][FONT=monospace]"DELETE FROM user_tags WHERE id = '"[/FONT][/COLOR][COLOR=#007700][FONT=monospace].[/FONT][/COLOR][COLOR=#0000bb][FONT=monospace]$do[/FONT][/COLOR][COLOR=#007700][FONT=monospace].[/FONT][/COLOR][COLOR=#dd0000][FONT=monospace]"'"[/FONT][/COLOR][COLOR=#007700][FONT=monospace]); [/FONT][/COLOR][COLOR=#0000bb][FONT=monospace]Redirect[/FONT][/COLOR][COLOR=#007700][FONT=monospace]([/FONT][/COLOR][COLOR=#dd0000][FONT=monospace]"me"[/FONT][/COLOR][COLOR=#007700][FONT=monospace]); } if (isset([/FONT][/COLOR][COLOR=#0000bb][FONT=monospace]$_POST[/FONT][/COLOR][COLOR=#007700][FONT=monospace][[/FONT][/COLOR][COLOR=#dd0000][FONT=monospace]'newtag'[/FONT][/COLOR][COLOR=#007700][FONT=monospace]])) { [/FONT][/COLOR][COLOR=#0000bb][FONT=monospace]$user_id [/FONT][/COLOR][COLOR=#007700][FONT=monospace]= [/FONT][/COLOR][COLOR=#0000bb][FONT=monospace]$_SESSION[/FONT][/COLOR][COLOR=#007700][FONT=monospace][[/FONT][/COLOR][COLOR=#dd0000][FONT=monospace]'user'[/FONT][/COLOR][COLOR=#007700][FONT=monospace]][[/FONT][/COLOR][COLOR=#dd0000][FONT=monospace]'id'[/FONT][/COLOR][COLOR=#007700][FONT=monospace]]; [/FONT][/COLOR][COLOR=#0000bb][FONT=monospace]$tag [/FONT][/COLOR][COLOR=#007700][FONT=monospace]= [/FONT][/COLOR][COLOR=#0000bb][FONT=monospace]htmlspecialchars[/FONT][/COLOR][COLOR=#007700][FONT=monospace]([/FONT][/COLOR][COLOR=#0000bb][FONT=monospace]addslashes[/FONT][/COLOR][COLOR=#007700][FONT=monospace]([/FONT][/COLOR][COLOR=#0000bb][FONT=monospace]$_POST[/FONT][/COLOR][COLOR=#007700][FONT=monospace][[/FONT][/COLOR][COLOR=#0000bb][FONT=monospace]newtag[/FONT][/COLOR][COLOR=#007700][FONT=monospace]])); if ([/FONT][/COLOR][COLOR=#0000bb][FONT=monospace]strlen[/FONT][/COLOR][COLOR=#007700][FONT=monospace]([/FONT][/COLOR][COLOR=#0000bb][FONT=monospace]$user_id[/FONT][/COLOR][COLOR=#007700][FONT=monospace]) < [/FONT][/COLOR][COLOR=#0000bb][FONT=monospace]1 [/FONT][/COLOR][COLOR=#007700][FONT=monospace]|| [/FONT][/COLOR][COLOR=#0000bb][FONT=monospace]strlen[/FONT][/COLOR][COLOR=#007700][FONT=monospace]([/FONT][/COLOR][COLOR=#0000bb][FONT=monospace]$tag[/FONT][/COLOR][COLOR=#007700][FONT=monospace]) < [/FONT][/COLOR][COLOR=#0000bb][FONT=monospace]1[/FONT][/COLOR][COLOR=#007700][FONT=monospace]) { [/FONT][/COLOR][COLOR=#0000bb][FONT=monospace]Redirect[/FONT][/COLOR][COLOR=#007700][FONT=monospace]([/FONT][/COLOR][COLOR=#dd0000][FONT=monospace]"me"[/FONT][/COLOR][COLOR=#007700][FONT=monospace]); } else { [/FONT][/COLOR][COLOR=#0000bb][FONT=monospace]mysql_query[/FONT][/COLOR][COLOR=#007700][FONT=monospace]([/FONT][/COLOR][COLOR=#dd0000][FONT=monospace]"INSERT INTO user_tags (user_id ,tag) VALUES ('" [/FONT][/COLOR][COLOR=#007700][FONT=monospace]. [/FONT][/COLOR][COLOR=#0000bb][FONT=monospace]$user_id [/FONT][/COLOR][COLOR=#007700][FONT=monospace]. [/FONT][/COLOR][COLOR=#dd0000][FONT=monospace]"','" [/FONT][/COLOR][COLOR=#007700][FONT=monospace]. [/FONT][/COLOR][COLOR=#0000bb][FONT=monospace]$tag [/FONT][/COLOR][COLOR=#007700][FONT=monospace]. [/FONT][/COLOR][COLOR=#dd0000][FONT=monospace]"')"[/FONT][/COLOR][COLOR=#007700][FONT=monospace]); [/FONT][/COLOR][COLOR=#0000bb][FONT=monospace]Redirect[/FONT][/COLOR][COLOR=#007700][FONT=monospace]([/FONT][/COLOR][COLOR=#dd0000][FONT=monospace]"me"[/FONT][/COLOR][COLOR=#007700][FONT=monospace]); } }[/FONT][/COLOR] [URL]http://devbest.com/threads/addon-tags-revcms.14785/[/URL] <- :) [COLOR=#007700][FONT=monospace][/FONT][/COLOR] [FONT=monospace][COLOR=#000000][/COLOR][/FONT] [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
Server Development
Habbo Retros
Habbo Q&A
Add-On Tags for RevCMS Habbo Theme?
Top