Results 1 to 10 of 14
Threaded View
-
18th Jun 2011, 02:25 AM #2MemberPHP Code:
<?php
/*BEGIN_INFO
News mod by Chris2009.
END_INFO*/
if(!defined("WCDDL_GUTS"))
exit;
$modEnabled = true; //Change to false if don't use
if($modEnabled) { //start of $modenabled
$add = array("news" => "News");
$core->admin_links = array_merge($core->admin_links, $add);
function news() {
global $core;
if (!isset($_POST['add_news']))
{
//Switch the data to variables.
$html = '<table width="100%" border="0">
<form name="post-news" action="" method="POST">
<tr><td align="center" valign="top">Title: </td>
<td align="left"><input name="title" type="text" size="50" /></td></tr>
<tr><td align="center" valign="top">Post: </td>
<td align="left"><textarea name="post" cols="95" rows="25"></textarea></td></tr>
<tr><td align="center" valign="top" colspan="2"><input type="submit" value="Add News" name="add_news"/></td></tr>
</form>
</table>';
}
else
{
$title = $_POST['title'];
$post = $_POST['post'];
//BLA BLA insert Bla Bla
$html = "NEWS added";
}
echo $html;
}
if($_GET['go']=='news') $core->attachHook("adminFunctions","news");
} //end
?>
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Similar Threads
-
Wcddlv3 wcp module
By darkfelon in forum Webmaster ResourcesReplies: 8Last Post: 31st Oct 2012, 01:57 AM -
[Selling] DLE imdbXpro v1.1 MODULE
By scriptzm in forum Completed TransactionsReplies: 0Last Post: 23rd Mar 2012, 06:21 PM -
[Joomla] looking for a module
By Scientyst in forum Web Application/Script SupportReplies: 0Last Post: 7th Dec 2011, 08:48 PM -
[WCDDL] making a module
By Chris2k in forum Web Application/Script SupportReplies: 1Last Post: 3rd Jun 2011, 05:54 PM -
Need help to download this module :(
By Rapid4All in forum Web Application/Script SupportReplies: 0Last Post: 14th Nov 2010, 03:37 PM
themaCreator - create posts from...
Version 3.48 released. Open older version (or...