Example #1
0
     break;
     // head (to be run in the head)
 // head (to be run in the head)
 case 'head':
     break;
     // admin of module
 // admin of module
 case 'admin':
     $module_name = 'rss';
     $table_name = 'pixie_module_rss';
     $order_by = 'feed_display_name';
     $asc_desc = 'asc';
     $view_exclude = array('rss_id');
     $edit_exclude = array('rss_id');
     $tags = 'no';
     admin_module($module_name, $table_name, $order_by, $asc_desc, $view_exclude, $edit_exclude, 15, $tags);
     break;
     // show module
 // show module
 default:
     if (isset($s)) {
         extract(safe_row('*', 'pixie_core', "page_name = '{$s}'"));
     }
     echo "<div ";
     if (isset($s)) {
         echo "id=\"{$s}\"";
     }
     echo ">\r\n\t  \t\t\t\t<h3>{$page_display_name}</h3>\r\n\t  \t\t\t\t<h4>Whats all this then?</h4>\r\n\t  \t\t\t\t<p>RSS or Really Simple Syndication, is a way of reading new content from websites. It allows you to keep informed of the latest developments\r\n\t  \t\t\t\twithout the need to constantly revisit a site. Most sites now offer this feature, to find out more have a read of the \r\n\t  \t\t\t\t<a href=\"http://en.wikipedia.org/wiki/RSS_(protocol)\" title=\"RSS @ Wikipedia\">Wikipedia entry</a> on RSS.</p>\r\n\t  \t\t\t\t<h4>RSS Tools</h4>\r\n\t  \t\t\t\t<p>Clicking on a feed should open it in your default feed reader. If you do not have a reader I recommend using <a href=\"http://www.google.com/reader/\" title=\"Google Reader\">\r\n\t  \t\t\t\tGoogle's online</a> reader to get started. Once you get used to the idea try a software based solution. \r\n\t  \t\t\t\tFor Apple users I recommend using <a href=\"http://newsfirerss.com/\" title=\"Newsfire RSS reader\">Newsfire</a>, or the built in RSS reader in <a href=\"http://www.apple.com/macosx/features/safari/\" title=\"Safari RSS reader\">Safari</a>. \r\n\t  \t\t\t\tWindows users try <a href=\"http://www.blogbridge.com\" title=\"BlogBridge RSS reader\">BlogBridge</a>, or <a href=\"http://www.rssowl.org/\" title=\"RSSOwl RSS reader\">RSSOwl</a>.</p>\n";
     $rs = safe_rows('*', 'pixie_dynamic_settings', "rss = 'yes'");
     $num = count($rs);
     if ($rs) {
Example #2
0
     $module_name = 'Links';
     // The name of the table
     $table_name = 'pixie_module_links';
     // The field to order by in table view
     $order_by = 'link_title';
     // Ascending (asc) or decending (desc)
     $asc_desc = 'asc';
     // Fields you want to exclude in your table view
     $view_exclude = array('links_id', 'tags');
     // Fields you do not want people to be able to edit
     $edit_exclude = array('links_id');
     // The number of items per page in the table view
     $items_per_page = 15;
     // Does this module support tags (yes or no)
     $tags = 'yes';
     admin_module($module_name, $table_name, $order_by, $asc_desc, $view_exclude, $edit_exclude, $items_per_page, $tags);
     break;
     // The three sections below are all for the module output, a module is loaded at three different stages of a page build.
     // Pre
     // Any code to be run before HTML output, any redirects or header changes must occur here
 // The three sections below are all for the module output, a module is loaded at three different stages of a page build.
 // Pre
 // Any code to be run before HTML output, any redirects or header changes must occur here
 case 'pre':
     // lets have a look at $m to see what we are trying to get out of the page
     switch ($m) {
         // ok so the visitor has come along to www.mysite.com/links/tag/something lets show them all links tagged "something"
         case 'tag':
             // we need $x to be a valid variable so lets check it
             $x = squash_slug($x);
             $rz = safe_rows('*', 'pixie_module_links', "tags REGEXP '[[:<:]]" . $x . "[[:>:]]'");
Example #3
0
    company_action($core);
}
if ($core->user->work == -2) {
    referal_action($core);
}
if ($core->user->work >= 1) {
    order_action($core);
}
if ($core->user->work == 0 || $core->user->work == 2) {
    webmaster_action($core);
}
//
// Modules
//
if ($core->user->level == 1) {
    admin_module($core);
}
base_module($core);
if ($core->user->comp && $core->user->compad) {
    company_module($core);
}
if ($core->user->work >= 1) {
    order_module($core);
}
if ($core->user->work == 0 || $core->user->work == 2) {
    webmaster_module($core);
}
if ($core->user->work == -1) {
    external_module($core);
}
if ($core->user->work == -2) {