Note: this list is kept only as a demonstration for CVSNotice. For the latest CVS notices, see the Xaraya and Postnuke sites
View Statistics - Next Notice - Previous NoticeDirectory filter : [ all ] / postnuke_modules / modinfo [ view in CVS ]
Date | Directory [filter] | File(s) [view] | Author [filter] |
26 Jul 2002 23:04:06 | postnuke_modules/modinfo | pnadmin.php,NONE,1.1 pninit.php,NONE,1.1 pnvisualapi.php,NONE,1.1 pnversion.php,1.1,1.2 | Gary Mitchell |
Commit latest updates |
Update of /home/cvsroot/postnuke_modules/modinfo In directory ns7.hostnuke.net:/tmp/cvs-serv17714 Modified Files: pnversion.php Added Files: pnadmin.php pninit.php pnvisualapi.php Log Message: Commit latest updates --- NEW FILE: pnadmin.php --- <?php // $Id $ function modinfo_admin_main() { // create an output object $output = new pnHTML(); // TODO: Perform Security Check // Load Visual API Functions if (!pnModAPILoad('modinfo', 'visual')) { $output->Text(_LOADFAILED); return $output->GetOutput(); } // Add menu to output $output->SetInputMode(_PNH_VERBATIMINPUT); $output->Text( pnModAPIFunc('modinfo', 'visual', 'adminmenu', array() ) ); $output->SetInputMode(_PNH_PARSEINPUT); // Return output return $output->GetOutput(); } >? --- NEW FILE: pninit.php --- <?php function modinfo_init() { // This module requires the categories API be installed if(!pnModAPILoad('categories', 'admin')) { return FALSE; } // +--------------------------------------------------------------------+ // | Create the Module Classes per RFC 13 | // +--------------------------------------------------------------------+ /** * create the base Module Classes */ $modinfo_category_id = pnModAPIFunc('categories', 'admin', 'create', Array('name' => 'Classes', 'description' => 'Module Classes', 'parent_id' => 0)); /** * save the category id in a module variable for later use */ pnModSetVar('modinfo', 'class_cid', $modinfo_category_id); /** * create the Module Classes values (sub-categories) */ $modinfo_categories = array(); $modinfo_categories[] = array('name' => "Core Admin", 'description' => "Core admin system functions"); $modinfo_categories[] = array('name' => "Core User", 'description' => "Core user system functions"); $modinfo_categories[] = array('name' => "Core Complete", 'description' => "Core user and admin system functions"); $modinfo_categories[] = array('name' => "Core Utility", 'description' => "Core cross-module functions"); $modinfo_categories[] = array('name' => "Core Other", 'description' => "Core functions other than above"); $modinfo_categories[] = array('name' => "Admin", 'description' => "Admin system functions"); $modinfo_categories[] = array('name' => "User", 'description' => "User system functions"); $modinfo_categories[] = array('name' => "Complete", 'description' => "User and admin functions"); $modinfo_categories[] = array('name' => "Utility", 'description' => "Cross-module functions"); $modinfo_categories[] = array('name' => "Other", 'description' => "Functions other than above"); foreach($modinfo_categories as $modinfo_subcat) { $modinfo_subcid = pnModAPIFunc('categories', 'admin', 'create', Array('name' => $modinfo_subcat['name'], 'description' => $modinfo_subcat['description'], 'parent_id' => $modinfo_category_id)); } // +--------------------------------------------------------------------+ // | Create the Module Categories per RFC 13 | // +--------------------------------------------------------------------+ /** * create the base Module Category */ $modinfo_category_id = pnModAPIFunc('categories', 'admin', 'create', Array('name' => 'Categories', 'description' => 'Module Categories', 'parent_id' => 0)); /** * save the category id in a module variable for later use */ pnModSetVar('modinfo', 'category_cid', $modinfo_category_id); /** * create the Module Classes values (sub-categories) */ $modinfo_categories = array(); $modinfo_categories[] = array('name' => "Settings", 'description' => "Settings"); $modinfo_categories[] = array('name' => "Banners", 'description' => "Banners"); $modinfo_categories[] = array('name' => "Languages",'description' => "Languages"); $modinfo_categories[] = array('name' => "Modules", 'description' => "Modules"); $modinfo_categories[] = array('name' => "Blocks", 'description' => "Blocks"); $modinfo_categories[] = array('name' => "Stories", 'description' => "Stories"); $modinfo_categories[] = array('name' => "Messages", 'description' => "Messages"); $modinfo_categories[] = array('name' => "FAQ", 'description' => "Frequenty Asked Questions"); $modinfo_categories[] = array('name' => "Polls", 'description' => "Polls"); $modinfo_categories[] = array('name' => "Reviews", 'description' => "Reviews"); $modinfo_categories[] = array('name' => "Sections", 'description' => "Sections"); $modinfo_categories[] = array('name' => "Topics", 'description' => "Topics"); $modinfo_categories[] = array('name' => "Settings", 'description' => "Settings"); $modinfo_categories[] = array('name' => "Settings", 'description' => "Settings"); foreach($modinfo_categories as $modinfo_subcat) { $modinfo_subcid = pnModAPIFunc('categories', 'admin', 'create', Array('name' => $modinfo_subcat['name'], 'description' => $modinfo_subcat['description'], 'parent_id' => $modinfo_category_id)); } return TRUE; } function modinfo_update() { return TRUE; } function modinfo_delete() { // This module requires the categories API be installed if(!pnModAPILoad('categories', 'admin')) { return FALSE; } $cid = pnModGetVar('modinfo','class_cid'); $modinfo_subcid = pnModAPIFunc('categories', 'admin', 'deletecat', Array('cid' => $cid)); pnModDelVar('modinfo', 'class_cid'); $cid = pnModGetVar('modinfo','category_cid'); $modinfo_subcid = pnModAPIFunc('categories', 'admin', 'deletecat', Array('cid' => $cid)); pnModDelVar('modinfo', 'category_cid'); return TRUE; } ?> --- NEW FILE: pnvisualapi.php --- <?php function modinfo_visualapi_adminmenu() { // Create output object $output = new pnHTML(); // Display status message if any $output->Text(pnGetStatusMsg()); $output->Linebreak(2); // Start options menu $output->TableStart(_MODINFOSYS); // Menu options $columns = array(); $output->SetOutputMode(_PNH_RETURNOUTPUT); $columns[] = $output->URL(pnModURL('modinfo', 'admin', 'newcat'), _CATEGORIESNEW); $columns[] = $output->URL(pnModURL('modinfo', 'admin', 'viewcats'), _CATEGORIESVIEW); $output->SetOutputMode(_PNH_KEEPOUTPUT); $output->SetInputMode(_PNH_VERBATIMINPUT); $output->TableAddRow($columns); $output->SetInputMode(_PNH_PARSEINPUT); $output->TableEnd(); // Return output return $output->GetOutput(); } ?> Index: pnversion.php =================================================================== RCS file: /home/cvsroot/postnuke_modules/modinfo/pnversion.php,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** pnversion.php 3 Jul 2002 22:11:30 -0000 1.1 --- pnversion.php 26 Jul 2002 23:04:04 -0000 1.2 *************** *** 9,13 **** $modversion['changelog'] = 'docs/changelog.txt'; $modversion['license'] = 'docs/license.txt'; ! $modversion['official'] = 0; $modversion['author'] = 'Gary Mitchell'; $modversion['contact'] = 'http://www.postnuke.com/'; --- 9,13 ---- $modversion['changelog'] = 'docs/changelog.txt'; $modversion['license'] = 'docs/license.txt'; ! $modversion['verified'] = 0; $modversion['author'] = 'Gary Mitchell'; $modversion['contact'] = 'http://www.postnuke.com/';
View Statistics - Next Notice - Previous Notice
Visit Developer Site - Browse CVS Repository |
Syndicate via backend.rss (max. once per hour please) | Powered by CVSNotice 0.1.3 |