comoblog-commit Mailing List for CoMoblog Mobile Blog Application (Page 26)
Status: Inactive
Brought to you by:
markwallis
You can subscribe to this list here.
| 2005 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
(49) |
Oct
(127) |
Nov
(211) |
Dec
(56) |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2006 |
Jan
(51) |
Feb
(128) |
Mar
(1) |
Apr
(2) |
May
|
Jun
|
Jul
(2) |
Aug
(24) |
Sep
|
Oct
(151) |
Nov
(9) |
Dec
|
| 2007 |
Jan
|
Feb
|
Mar
(3) |
Apr
|
May
(1) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
| 2008 |
Jan
|
Feb
(17) |
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
|
From: Mark W. \(a. serialmonkey\) <mar...@us...> - 2005-11-18 08:24:59
|
Update of /cvsroot/comoblog/comoblog/admin/include In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv991/admin/include Modified Files: modules.inc.php Log Message: 1327274 - Updating with existing modules fails Index: modules.inc.php =================================================================== RCS file: /cvsroot/comoblog/comoblog/admin/include/modules.inc.php,v retrieving revision 1.3 retrieving revision 1.4 diff -u -d -r1.3 -r1.4 --- modules.inc.php 13 Nov 2005 12:35:27 -0000 1.3 +++ modules.inc.php 18 Nov 2005 08:24:51 -0000 1.4 @@ -1,5 +1,9 @@ <?php -function is_module_certified ($mod_certified) { +function is_module_certified ($mod_name) { + $query = "select mod_certified from ".CFG_MYSQL_TABPREFIX."modules where mod_name = '".$mod_name."'"; + $res = mysql_query($query); + $mod_certified = mysql_result($res, 0, 'mod_certified'); + $certified = explode("|", $mod_certified); for ($c = 0; $c < count($certified); $c++) { @@ -10,6 +14,36 @@ return false; } +function compare_module_version ($mod_name) { + $install_file = CFG_BASE_PATH.'/modules/'.$mod_name.'/install/'.$mod_name.'.xml'; + + $new_mod_version = intval(get_module_version_from_xml($install_file)); + + $query = "select mod_version from ".CFG_MYSQL_TABPREFIX."modules where mod_name = '".$mod_name."'"; + $res = mysql_query($query); + + if (mysql_numrows($res) == 0) + return 0; + + $old_mod_version = intval(mysql_result($res, 0, 'mod_version')); + + if ($new_mod_version > $old_mod_version) + return 1; + else if ($new_mod_version < $old_mod_version) + return -1; + else + return 0; +} + +function get_module_version_from_xml ($xml) +{ + $xmlparse = &new ParseXML; + $xml = $xmlparse->GetXMLTree($xml); + + return trim($xml['MODULE'][0]['VERSION'][0]['VALUE']); +} + + function module_install ($mod_name) { $install_file = CFG_BASE_PATH.'/modules/'.$mod_name.'/install/'.$mod_name.'.xml'; @@ -109,11 +143,26 @@ '".$mod_info."')"; $res = mysql_query($query); - if ($res) { - return (false); - } + if ($res) + return false; else { - return (mysql_error()); + $query = "update ".CFG_MYSQL_TABPREFIX."modules set + mod_version='".$mod_version."', + mod_minimum_supported='".$mod_minimum_supported."', + mod_certified='".$mod_certified."', + mod_description='".$mod_description."', + mod_allowed_pos='".$mod_allowed_pos."', + mod_filter_posts='".$mod_filter_posts."', + mod_filter_comments='".$mod_filter_comments."', + mod_info='".$mod_info."' + where (mod_name='".$mod_name."')"; + + $res = mysql_query($query); + + if ($res) + return false; + else + return (mysql_error()); } } @@ -212,7 +261,11 @@ - +function module_deactivate_by_name ($mod_name) { + $query = "select mod_id from ".CFG_MYSQL_TABPREFIX."modules m where m.mod_name = '".$mod_name."'"; + $res = mysql_query($query); + module_deactivate(mysql_result($res,0,0)); +} function module_deactivate ($mod_id) { return (module_set_pos ($mod_id, '')); |
|
From: Mark W. \(a. serialmonkey\) <mar...@us...> - 2005-11-18 08:24:59
|
Update of /cvsroot/comoblog/comoblog/admin In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv991/admin Modified Files: manage_modules.php Log Message: 1327274 - Updating with existing modules fails Index: manage_modules.php =================================================================== RCS file: /cvsroot/comoblog/comoblog/admin/manage_modules.php,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- manage_modules.php 13 Nov 2005 12:35:27 -0000 1.2 +++ manage_modules.php 18 Nov 2005 08:24:51 -0000 1.3 @@ -10,13 +10,15 @@ require('include/xml2array.inc.php'); $new = 0; + $upgrade = 0; $failed = 0; if ($dir = @opendir('../modules')) { while (($file = readdir($dir)) !== false) { if (substr($file,0,4) == 'mod_' && is_dir('../modules/'.$file)) { - $query = "select mod_name from ".CFG_MYSQL_TABPREFIX."modules where mod_name = '".$file."'"; + $query = "select mod_name,mod_version from ".CFG_MYSQL_TABPREFIX."modules where mod_name = '".$file."'"; $res = mysql_query($query); $install_file = '../modules/'.$file.'/install/'.$file.'.xml'; + $new_version = get_module_version_from_xml($install_file); if (mysql_num_rows($res) == 0 && file_exists($install_file)) { // found new module!!! $module_install = module_install($file); // install it if ($module_install) { @@ -31,6 +33,23 @@ $new += 1; } } + else { + $old_version = mysql_result($res, 0, 'mod_version'); + if ($old_version < $new_version) { + $module_install = module_install($file); // upgrade it + if ($module_install) { + $tpl->assign('MOD_NAME', $file); + $tpl->assign('ERROR', $module_install); + $tpl->parse('main.failed.module'); + $failed += 1; + } + else { // installed! + $tpl->assign('MOD_NAME', $file); + $tpl->parse('main.upgraded.module'); + $upgrade += 1; + } + } + } } } closedir($dir); @@ -39,8 +58,13 @@ if ($new > 0) // if new modules were installed $tpl->parse('main.installed'); + if ($upgrade > 0) + $tpl->parse('main.upgraded'); + if ($failed > 0) // if new modules failed to install $tpl->parse('main.failed'); + + /* */ @@ -84,7 +108,7 @@ $tpl->parse('main.modules.module.up'); } - if (!is_module_certified($modules[$m]['mod_certified'])) { + if (!is_module_certified($modules[$m]['mod_name'])) { $uncertified_found = true; $tpl->parse('main.modules.module.uncertified'); } @@ -132,7 +156,7 @@ $tpl->parse('main.modules.module.up'); } - if (!is_module_certified($modules[$m]['mod_certified'])) { + if (!is_module_certified($modules[$m]['mod_name'])) { $uncertified_found = true; $tpl->parse('main.modules.module.uncertified'); } @@ -178,7 +202,7 @@ $tpl->parse('main.modules.module.up'); } - if (!is_module_certified($modules[$m]['mod_certified'])) { + if (!is_module_certified($modules[$m]['mod_name'])) { $uncertified_found = true; $tpl->parse('main.modules.module.uncertified'); } @@ -211,7 +235,7 @@ $tpl->parse('main.modules.module.pos'); } - if (!is_module_certified($modules[$m]['mod_certified'])) { + if (!is_module_certified($modules[$m]['mod_name'])) { $uncertified_found = true; $tpl->parse('main.modules.module.uncertified'); } |
|
From: Mark W. \(a. serialmonkey\) <mar...@us...> - 2005-11-18 08:24:59
|
Update of /cvsroot/comoblog/comoblog/_install/upgrades In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv991/_install/upgrades Modified Files: 0.5.1_to_1.0.xml Log Message: 1327274 - Updating with existing modules fails Index: 0.5.1_to_1.0.xml =================================================================== RCS file: /cvsroot/comoblog/comoblog/_install/upgrades/0.5.1_to_1.0.xml,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- 0.5.1_to_1.0.xml 13 Nov 2005 12:35:27 -0000 1.2 +++ 0.5.1_to_1.0.xml 18 Nov 2005 08:24:50 -0000 1.3 @@ -36,12 +36,6 @@ update comoblog_preferences SET pref_display_order=3 where pref_name='CFG_BG_IMG'; </dbquery> <dbquery> - insert into comoblog_preferences (pref_name, pref_value, pref_description, pref_topic_id, pref_encrypt, pref_type, pref_restrict_values, pref_accept_null, pref_editable, pref_display_order, mod_name) VALUES ('CFG_CALENDAR_BUTTON_CONFIG','Skip One Day', 'When pressing the next/prev buttons the function should be', 0, 'N', 'select', 'Skip One Day|Skip One Month|Skip to Next Posted Day', 'N', 'Y', 0, 'mod_calendar'); - </dbquery> - <dbquery> - insert into comoblog_preferences (pref_name, pref_value, pref_description, pref_topic_id, pref_encrypt, pref_type, pref_restrict_values, pref_accept_null, pref_editable, pref_display_order, mod_name) VALUES ('CFG_CALENDAR_DAY_OFFSET','Sunday', 'Option to choose the first day of the week in the calendar', 0, 'N', 'select', 'Saturday|Sunday|Monday|Tuesday|Wednesday|Thursday|Friday', 'N', 'Y', 0, 'mod_calendar'); - </dbquery> - <dbquery> insert into comoblog_preferences (pref_name, pref_value, pref_description, pref_topic_id, pref_encrypt, pref_type, pref_restrict_values, pref_accept_null, pref_editable, pref_display_order, mod_name) VALUES ('CFG_ALLOW_HTML','yes', 'Allow HTML from posts to be displayed', 1, 'N', 'select', 'yes|no', 'N', 'Y', 0, ''); </dbquery> <dbquery> |
|
From: Mark W. \(a. serialmonkey\) <mar...@us...> - 2005-11-18 08:24:59
|
Update of /cvsroot/comoblog/comoblog/admin/templates In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv991/admin/templates Modified Files: manage_modules.tpl.htm Log Message: 1327274 - Updating with existing modules fails Index: manage_modules.tpl.htm =================================================================== RCS file: /cvsroot/comoblog/comoblog/admin/templates/manage_modules.tpl.htm,v retrieving revision 1.3 retrieving revision 1.4 diff -u -d -r1.3 -r1.4 --- manage_modules.tpl.htm 13 Nov 2005 12:35:27 -0000 1.3 +++ manage_modules.tpl.htm 18 Nov 2005 08:24:51 -0000 1.4 @@ -22,6 +22,26 @@ <br /> <!-- END: installed --> +<!-- BEGIN: upgraded --> +<br /> +<table width="760" align="center" border="0" cellspacing="0" cellpadding="10" style="border: 3px solid #cccccc; background-color: #efefef"> + <tr> + <td valign="top" width="50"><img src="img/info.gif" width="48" height="48" border="0" align="absmiddle"></td> + <td valign="top" width="710"> + <b>EXISTING MODULES UPGRADED:</b><br /> + <ul> + <!-- BEGIN: module --> + <li>{MOD_NAME}</li> + <!-- END: module --> + </ul> + + <br />Your preferences would have been preserved for these modules. + </td> + </tr> +</table> +<br /> +<!-- END: installed --> + <!-- BEGIN: failed --> <br /> <table width="760" align="center" border="0" cellspacing="0" cellpadding="10" style="border: 3px solid #cccccc; background-color: #efefef"> @@ -91,19 +111,18 @@ <!-- END: module --> </table><br> <br> <!-- END: modules --> +<!-- BEGIN: uncertified_warning --> <table width="760" border="0" align="center" border="0" cellspacing="0" cellpadding="0"> <tr> - <td align="right"><br /><input type="image" src="img/save_big.gif" border="0" onClick="this.src='img/save_wait.gif';"> </td> + <td align="center"><br /><img src='img/warning.gif'> - WARNING: This module is not certified against this version of CoMoblog. It may not function correctly.</td> </tr> </table> -<!-- BEGIN: uncertified_warning --> -<br><br> +<!-- END: uncertified_warning --> <table width="760" border="0" align="center" border="0" cellspacing="0" cellpadding="0"> <tr> - <td align="center"><br /><img src='img/warning.gif'> - WARNING: This module is not certified against this version of CoMoblog. It may not function correctly.</td> + <td align="right"><br /><input type="image" src="img/save_big.gif" border="0" onClick="this.src='img/save_wait.gif';"> </td> </tr> -</table> -<!-- END: uncertified_warning --> +</table> </form> {FILE "templates/footer.tpl.htm"} <!-- END: main --> |
|
From: Mark W. \(a. serialmonkey\) <mar...@us...> - 2005-11-18 08:24:58
|
Update of /cvsroot/comoblog/comoblog/_install/templates In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv991/_install/templates Modified Files: upgrade_2.tpl.htm Log Message: 1327274 - Updating with existing modules fails Index: upgrade_2.tpl.htm =================================================================== RCS file: /cvsroot/comoblog/comoblog/_install/templates/upgrade_2.tpl.htm,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- upgrade_2.tpl.htm 12 Nov 2005 14:21:49 -0000 1.2 +++ upgrade_2.tpl.htm 18 Nov 2005 08:24:50 -0000 1.3 @@ -17,7 +17,7 @@ <br /> <br /> <!-- END: errors --> -<h1>Step 3 (of 4) - Content Migration</h1> +<h1>Step 3 (of 5) - Content Migration</h1> <p> </p> <p> |
|
From: Mark W. \(a. serialmonkey\) <mar...@us...> - 2005-11-18 08:24:58
|
Update of /cvsroot/comoblog/comoblog/_install In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv991/_install Modified Files: upgrade_2.php Log Message: 1327274 - Updating with existing modules fails Index: upgrade_2.php =================================================================== RCS file: /cvsroot/comoblog/comoblog/_install/upgrade_2.php,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- upgrade_2.php 11 Oct 2005 23:18:14 -0000 1.2 +++ upgrade_2.php 18 Nov 2005 08:24:50 -0000 1.3 @@ -23,6 +23,9 @@ if ($_POST['site_url'] == '') $errors[] = 'site url required'; + session_start(); + $_SESSION['old_path'] = $_POST['old_path']; + $_SESSION['new_path'] = $_POST['base_path']; if (count($errors) == 0) { |
|
From: Mark W. \(a. serialmonkey\) <mar...@us...> - 2005-11-16 11:21:54
|
Update of /cvsroot/comoblog/comoblog/_install In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv14359 Modified Files: upgrade_4.php Log Message: 1327274 - Insertion of new Upgrade page for module upgrades Index: upgrade_4.php =================================================================== RCS file: /cvsroot/comoblog/comoblog/_install/upgrade_4.php,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- upgrade_4.php 16 Nov 2005 11:19:57 -0000 1.1 +++ upgrade_4.php 16 Nov 2005 11:21:45 -0000 1.2 @@ -2,7 +2,7 @@ require ('../include/xtemplate.inc.php'); require_once (dirname(__FILE__).'/../include/config.inc.php'); -$tpl = @new XTemplate ('templates/upgrade_3.tpl.htm', 'main'); +$tpl = @new XTemplate ('templates/upgrade_4.tpl.htm', 'main'); $tpl->assign('SITE_URL', CFG_SITE_URL); $tpl->assign('BASE_PATH', CFG_BASE_PATH); |
|
From: Mark W. \(a. serialmonkey\) <mar...@us...> - 2005-11-16 11:21:26
|
Update of /cvsroot/comoblog/comoblog/_install/templates In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv14297 Added Files: upgrade_4.tpl.htm Removed Files: upgrade_3.tpl.htm Log Message: 1327274 - Insertion of new Upgrade page for module upgrades --- upgrade_3.tpl.htm DELETED --- --- NEW FILE: upgrade_4.tpl.htm --- <!-- BEGIN: main --> {FILE "templates/header.tpl.htm"} <table width="740" align="center" border="0" cellspacing="0" cellpadding="15" style="border-width:1px; border-color: #000000; border-style: solid;"> <tr> <td> </td> </tr> <tr> <td> <h1>Congratulations! Upgrade is now complete</h1> <p> </p> <table width="600" border="0" align="center"> <tr> <td align="center"><img src="img/install3.jpg" width="500" height="200" alt="" border="0"></td> </tr> <tr> <td> <p> </p> <h2>Print this page!</h2> <p> This page contains important information you'll need to use your CoMoblog site. </p> <p> </p> <p> You can reach your CoMoblog site here:<br /> <a href="{SITE_URL}" class="bigger"><b>{SITE_URL}</b></a> </p> <p> You can configure and personalize your CoMoblog site through Admin Area:<br /> <a href="{SITE_URL}admin/" class="bigger"><b>{SITE_URL}admin/</b></a></p> <p> To access this area you have to authenticate using the following username/password:<br /> - username: <b><span class="bigger">{ADMIN_USERNAME}</span></b><br /> - password: <b><span class="bigger">{ADMIN_PW}</span></b><br /> </p> <p> The following people are allowed to post to your CoMoblog site:<br /> <!-- BEGIN: allowed_from --> - <b><span class="bigger">{ALLOWED_FROM}</span></b><br /> <!-- END: allowed_from --> </p> <p> </p> <h2>Important!</h2> <p>If you have upgraded from Easymoblog and were previously using a Cron task to check your POP3 account then you need to change the name of the script you are executing from easymoblog_batch.php to comoblog_batch.php <br /> </p> <p> </p> <h2>Enjoy blogging!</h2> <p>Now you can start blogging!<br /> To publish a new post on your site, just write it in an email message, and send it to the mailbox account you specified during installation.<br /> You can add images to your posts sending them as attachments (use .jpg, .gif or .png files).</p> <p>For more info about CoMoblog: <a href="http://comoblog.serialmonkey.com/" target="_blank">http://comoblog.serialmonkey.com/</a></p> <p> </p> <p> </p> <p> </p> <p align="right"><a href="http://comoblog.serialmonkey.com/" target="_blank">the CoMoblog staff</a></p> </td> </tr> </table> </td> </tr> </table> {FILE "templates/footer.tpl.htm"} <!-- END: main --> |
|
From: Mark W. \(a. serialmonkey\) <mar...@us...> - 2005-11-16 11:20:12
|
Update of /cvsroot/comoblog/comoblog/_install In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv13905 Added Files: upgrade_4.php Removed Files: upgrade_3.php Log Message: 1327274 - Insertion of new Upgrade page for module upgrades --- upgrade_3.php DELETED --- --- NEW FILE: upgrade_4.php --- <?php require ('../include/xtemplate.inc.php'); require_once (dirname(__FILE__).'/../include/config.inc.php'); $tpl = @new XTemplate ('templates/upgrade_3.tpl.htm', 'main'); $tpl->assign('SITE_URL', CFG_SITE_URL); $tpl->assign('BASE_PATH', CFG_BASE_PATH); $tpl->assign('WIN_BASE_PATH', str_replace('/','\\',CFG_BASE_PATH)); $tpl->assign('ADMIN_USERNAME', CFG_ADMIN_USERNAME); session_start(); $tpl->assign('ADMIN_PW', $_SESSION['admin_pw']); $allowed_from = explode (',', CFG_ALLOWED_FROM); if (CFG_ALLOWED_FROM == '') { $tpl->assign('ALLOWED_FROM', 'everybody'); $tpl->parse('main.allowed_from'); } else { for ($c = 0; $c < count($allowed_from); $c++) { $tpl->assign('ALLOWED_FROM', $allowed_from[$c]); $tpl->parse('main.allowed_from'); } } $tpl->parse('main'); $tpl->out('main'); ?> |
|
From: Mark W. \(a. serialmonkey\) <mar...@us...> - 2005-11-13 12:37:59
|
Update of /cvsroot/comoblog/comoblog/docs In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv32318 Modified Files: CHANGELOG Log Message: CORE: Introduce a new module versioning framework to allow us to track module compatability during install and upgrade Index: CHANGELOG =================================================================== RCS file: /cvsroot/comoblog/comoblog/docs/CHANGELOG,v retrieving revision 1.20 retrieving revision 1.21 diff -u -d -r1.20 -r1.21 --- CHANGELOG 12 Nov 2005 01:37:23 -0000 1.20 +++ CHANGELOG 13 Nov 2005 12:37:50 -0000 1.21 @@ -18,6 +18,7 @@ * FEATURE: Markup language with image downloading (1280308) * CORE: Added pre/post db save post filter framework * CORE: Updated core supported module set +* CORE: Added module versioning framework * BUG: Disable POP3 APOP authentication by default (1280278) * BUG: Background images now displaying (1280325) * BUG: Trackback pings now work (1280323) |
|
From: Mark W. \(a. serialmonkey\) <mar...@us...> - 2005-11-13 12:37:16
|
Update of /cvsroot/comoblog/comoblog/docs/upgrades In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv32156/upgrades Removed Files: easymoblog-0.5.1_to_comoblog-1.0.sql Log Message: Removal of old upgrade scripts --- easymoblog-0.5.1_to_comoblog-1.0.sql DELETED --- |
|
From: Mark W. \(a. serialmonkey\) <mar...@us...> - 2005-11-13 12:35:40
|
Update of /cvsroot/comoblog/comoblog/modules/mod_batch/install In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv31904/modules/mod_batch/install Modified Files: mod_batch.xml Log Message: CORE: Introduce a new module versioning framework to allow us to track module compatability during install and upgrade Index: mod_batch.xml =================================================================== RCS file: /cvsroot/comoblog/comoblog/modules/mod_batch/install/mod_batch.xml,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- mod_batch.xml 2 Sep 2005 01:06:16 -0000 1.2 +++ mod_batch.xml 13 Nov 2005 12:35:27 -0000 1.3 @@ -2,6 +2,11 @@ <!DOCTYPE module SYSTEM "http://comoblog.sourceforge.net/DTD/comoblog_mod_install.dtd"> <module> <name>mod_batch</name> + <version>1.0</version> + <minimum_supported>1.0</minimum_supported> + <certified> + 1.0 + </certified> <description>activate this module if you cannot schedule batch script on your server</description> <allowed_pos>sidebar</allowed_pos> @@ -26,4 +31,4 @@ type="text" /> -</module> \ No newline at end of file +</module> |
|
From: Mark W. \(a. serialmonkey\) <mar...@us...> - 2005-11-13 12:35:40
|
Update of /cvsroot/comoblog/comoblog/_install In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv31904/_install Modified Files: comoblog_db.xml comoblog_preferences.xml Log Message: CORE: Introduce a new module versioning framework to allow us to track module compatability during install and upgrade Index: comoblog_preferences.xml =================================================================== RCS file: /cvsroot/comoblog/comoblog/_install/comoblog_preferences.xml,v retrieving revision 1.11 retrieving revision 1.12 diff -u -d -r1.11 -r1.12 --- comoblog_preferences.xml 7 Oct 2005 00:41:14 -0000 1.11 +++ comoblog_preferences.xml 13 Nov 2005 12:35:27 -0000 1.12 @@ -4,7 +4,7 @@ <param name="CFG_VERSION" - value="0.1" + value="1.0" description="CoMoblog version number" topic_id="0" encrypt="N" Index: comoblog_db.xml =================================================================== RCS file: /cvsroot/comoblog/comoblog/_install/comoblog_db.xml,v retrieving revision 1.4 retrieving revision 1.5 diff -u -d -r1.4 -r1.5 --- comoblog_db.xml 5 Oct 2005 00:45:34 -0000 1.4 +++ comoblog_db.xml 13 Nov 2005 12:35:27 -0000 1.5 @@ -53,6 +53,9 @@ <table name="comoblog_modules"> <field name="mod_id" specs="int(3) unsigned NOT NULL auto_increment" /> <field name="mod_name" specs="varchar(64) NOT NULL default ''" /> + <field name="mod_version" specs="varchar(6) default NULL" /> + <field name="mod_minimum_supported" specs="varchar(6) default NULL" /> + <field name="mod_certified" specs="varchar(255) default NULL" /> <field name="mod_description" specs="varchar(255) default NULL" /> <field name="mod_pos" specs="enum('sidebar','top','not_visible') NOT NULL default 'sidebar'" /> <field name="mod_display_order" specs="int(10) unsigned default NULL" /> |
|
From: Mark W. \(a. serialmonkey\) <mar...@us...> - 2005-11-13 12:35:40
|
Update of /cvsroot/comoblog/comoblog/modules/mod_calendar/install In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv31904/modules/mod_calendar/install Modified Files: mod_calendar.xml Log Message: CORE: Introduce a new module versioning framework to allow us to track module compatability during install and upgrade Index: mod_calendar.xml =================================================================== RCS file: /cvsroot/comoblog/comoblog/modules/mod_calendar/install/mod_calendar.xml,v retrieving revision 1.7 retrieving revision 1.8 diff -u -d -r1.7 -r1.8 --- mod_calendar.xml 7 Oct 2005 15:49:15 -0000 1.7 +++ mod_calendar.xml 13 Nov 2005 12:35:27 -0000 1.8 @@ -4,6 +4,14 @@ <name>mod_calendar</name> + <version>1.0</version> + + <minimum_supported>1.0</minimum_supported> + + <certified> + 1.0 + </certified> + <description>Navigate your blog through a calendar</description> <allowed_pos>sidebar</allowed_pos> |
|
From: Mark W. \(a. serialmonkey\) <mar...@us...> - 2005-11-13 12:35:40
|
Update of /cvsroot/comoblog/comoblog/modules/mod_rss/install In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv31904/modules/mod_rss/install Modified Files: mod_rss.xml Log Message: CORE: Introduce a new module versioning framework to allow us to track module compatability during install and upgrade Index: mod_rss.xml =================================================================== RCS file: /cvsroot/comoblog/comoblog/modules/mod_rss/install/mod_rss.xml,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- mod_rss.xml 2 Sep 2005 01:06:16 -0000 1.2 +++ mod_rss.xml 13 Nov 2005 12:35:28 -0000 1.3 @@ -2,6 +2,11 @@ <!DOCTYPE module SYSTEM "http://comoblog.sourceforge.net/DTD/comoblog_mod_install.dtd"> <module> <name>mod_rss</name> + <version>1.0</version> + <minimum_supported>1.0</minimum_supported> + <certified> + 1.0 + </certified> <description>Syndicate your blog with RSS feeds</description> <allowed_pos>sidebar</allowed_pos> <allowed_pos>top</allowed_pos> |
|
From: Mark W. \(a. serialmonkey\) <mar...@us...> - 2005-11-13 12:35:40
|
Update of /cvsroot/comoblog/comoblog/admin/include In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv31904/admin/include Modified Files: modules.inc.php Log Message: CORE: Introduce a new module versioning framework to allow us to track module compatability during install and upgrade Index: modules.inc.php =================================================================== RCS file: /cvsroot/comoblog/comoblog/admin/include/modules.inc.php,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- modules.inc.php 2 Sep 2005 01:06:15 -0000 1.2 +++ modules.inc.php 13 Nov 2005 12:35:27 -0000 1.3 @@ -1,4 +1,15 @@ <?php +function is_module_certified ($mod_certified) { + $certified = explode("|", $mod_certified); + for ($c = 0; $c < count($certified); $c++) + { + if (intval(CFG_VERSION) == intval($certified[$c])) + return true; + } + + return false; +} + function module_install ($mod_name) { $install_file = CFG_BASE_PATH.'/modules/'.$mod_name.'/install/'.$mod_name.'.xml'; @@ -7,11 +18,20 @@ $xml = $xmlparse->GetXMLTree($install_file); $mod_name = trim($xml['MODULE'][0]['NAME'][0]['VALUE']); + $mod_version = trim($xml['MODULE'][0]['VERSION'][0]['VALUE']); + $mod_minimum_supported = trim($xml['MODULE'][0]['MINIMUM_SUPPORTED'][0]['VALUE']); $mod_description = trim($xml['MODULE'][0]['DESCRIPTION'][0]['VALUE']); $mod_info = trim($xml['MODULE'][0]['INFO'][0]['VALUE']); $mod_filter_posts = trim($xml['MODULE'][0]['FILTER_POSTS'][0]['VALUE']); $mod_filter_comments = trim($xml['MODULE'][0]['FILTER_COMMENTS'][0]['VALUE']); + if ($mod_minimum_supported != NULL && intval($mod_minimum_supported) > intval(CFG_VERSION)) + return "Module not supported on this version. Minimum supported version is ".$mod_minimum_supported; + + $certified = array(); + for ($c = 0; $c < count($xml['MODULE'][0]['CERTIFIED']); $c++) + $certified[$c] = trim($xml['MODULE'][0]['CERTIFIED'][$c]['VALUE']); + $allowed_pos = array(); for ($c = 0; $c < count($xml['MODULE'][0]['ALLOWED_POS']); $c++) $allowed_pos[$c] = trim($xml['MODULE'][0]['ALLOWED_POS'][$c]['VALUE']); @@ -63,15 +83,38 @@ // add module to ".CFG_MYSQL_TABPREFIX."modules table (inactive by default) $mod_allowed_pos = implode ('|', $allowed_pos); - $query = "insert into ".CFG_MYSQL_TABPREFIX."modules (mod_name,mod_description,mod_allowed_pos,mod_filter_posts,mod_filter_comments,mod_pos,mod_info) values ('".$mod_name."','".$mod_description."','".$mod_allowed_pos."','".$mod_filter_posts."','".$mod_filter_comments."','','".$mod_info."')"; + $mod_certified = implode ('|', $certified); + $query = "insert into ".CFG_MYSQL_TABPREFIX."modules ( + mod_name, + mod_version, + mod_minimum_supported, + mod_certified, + mod_description, + mod_allowed_pos, + mod_filter_posts, + mod_filter_comments, + mod_pos, + mod_info + ) + values ( + '".$mod_name."', + '".$mod_version."', + '".$mod_minimum_supported."', + '".$mod_certified."', + '".$mod_description."', + '".$mod_allowed_pos."', + '".$mod_filter_posts."', + '".$mod_filter_comments."', + '', + '".$mod_info."')"; $res = mysql_query($query); if ($res) { - $mod_id = mysql_insert_id(); - return ($mod_id); - } - else return (false); + } + else { + return (mysql_error()); + } } |
|
From: Mark W. \(a. serialmonkey\) <mar...@us...> - 2005-11-13 12:35:40
|
Update of /cvsroot/comoblog/comoblog/modules/mod_search/install In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv31904/modules/mod_search/install Modified Files: mod_search.xml Log Message: CORE: Introduce a new module versioning framework to allow us to track module compatability during install and upgrade Index: mod_search.xml =================================================================== RCS file: /cvsroot/comoblog/comoblog/modules/mod_search/install/mod_search.xml,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- mod_search.xml 5 Oct 2005 00:48:15 -0000 1.1 +++ mod_search.xml 13 Nov 2005 12:35:28 -0000 1.2 @@ -5,6 +5,14 @@ <name> mod_search </name> + + <version>1.0</version> + + <minimum_supported>1.0</minimum_supported> + + <certified> + 1.0 + </certified> <description> Module to allow blog post searching |
|
From: Mark W. \(a. serialmonkey\) <mar...@us...> - 2005-11-13 12:35:40
|
Update of /cvsroot/comoblog/comoblog/modules/mod_unky/install In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv31904/modules/mod_unky/install Modified Files: mod_unky.xml Log Message: CORE: Introduce a new module versioning framework to allow us to track module compatability during install and upgrade Index: mod_unky.xml =================================================================== RCS file: /cvsroot/comoblog/comoblog/modules/mod_unky/install/mod_unky.xml,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- mod_unky.xml 2 Sep 2005 01:06:16 -0000 1.2 +++ mod_unky.xml 13 Nov 2005 12:35:28 -0000 1.3 @@ -5,6 +5,14 @@ <name> mod_unky </name> + + <version>1.0</version> + + <minimum_supported>1.0</minimum_supported> + + <certified> + 1.0 + </certified> <description> Unkymoods.com-Moods for the Sidebar @@ -31,4 +39,4 @@ <date>2004-05-07</date> -</module> \ No newline at end of file +</module> |
|
From: Mark W. \(a. serialmonkey\) <mar...@us...> - 2005-11-13 12:35:36
|
Update of /cvsroot/comoblog/comoblog/admin/templates In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv31904/admin/templates Modified Files: manage_modules.tpl.htm Log Message: CORE: Introduce a new module versioning framework to allow us to track module compatability during install and upgrade Index: manage_modules.tpl.htm =================================================================== RCS file: /cvsroot/comoblog/comoblog/admin/templates/manage_modules.tpl.htm,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- manage_modules.tpl.htm 2 Sep 2005 01:06:15 -0000 1.2 +++ manage_modules.tpl.htm 13 Nov 2005 12:35:27 -0000 1.3 @@ -1,8 +1,6 @@ <!-- BEGIN: main --> {FILE "templates/header.tpl.htm"} - - <!-- BEGIN: installed --> <br /> <table width="760" align="center" border="0" cellspacing="0" cellpadding="10" style="border: 3px solid #cccccc; background-color: #efefef"> @@ -24,6 +22,24 @@ <br /> <!-- END: installed --> +<!-- BEGIN: failed --> +<br /> +<table width="760" align="center" border="0" cellspacing="0" cellpadding="10" style="border: 3px solid #cccccc; background-color: #efefef"> + <tr> + <td valign="top" width="50"><img src="img/1.gif" width="48" height="48" border="0" align="absmiddle"></td> + <td valign="top" width="710"> + <b>SOME MODULES FAILED TO INSTALL:</b><br /> + <ul> + <!-- BEGIN: module --> + <li>{MOD_NAME} - {ERROR}</li> + <!-- END: module --> + </ul> + </td> + </tr> +</table> +<br /> +<!-- END: failed--> + <table width="760" align="center" border="0" cellspacing="0" cellpadding="0"> <tr> <td valign="middle"><p><img src="img/modules.gif" border="0" align="absmiddle"> <b>MANAGE INSTALLED MODULES</b></p></td> @@ -32,24 +48,29 @@ <form action="{ACTION}" method="POST" enctype="multipart/form-data"> <!-- BEGIN: modules --> <br /> -<table width="760" align="center" border="0" cellspacing="0" cellpadding="5" style="border-width:1px; border-color: #000000; border-style: solid;"> +<table width="740" align="center" border="0" cellspacing="0" cellpadding="5" style="border-width:1px; border-color: #000000; border-style: solid;"> <tr height="1"> - <td><img src="../../img/1x1.gif" width="200" height="1"></td> + <td><img src="../../img/1x1.gif" width="140" height="1"></td> + <td><img src="../../img/1x1.gif" width=30 height="1"></td> <td><img src="../../img/1x1.gif" width="310" height="1"></td> <td><img src="../../img/1x1.gif" width="150" height="1"></td> <td><img src="../../img/1x1.gif" width="50" height="1"></td> <td><img src="../../img/1x1.gif" width="50" height="1"></td> + <td><img src="../../img/1x1.gif" width="10" height="1"</td> </tr> <tr> - <td width="200" valign="top" style="border-bottom:1px solid black;"><b>MODULE</b></td> + <td width="140" valign="top" style="border-bottom:1px solid black;"><b>MODULE</b></td> + <td width="30" valign="top" style="border-bottom:1px solid black;"><b>VERSION</b></td> <td width="310" valign="top" style="border-bottom:1px solid black;"><b>DESCRIPTION</b></td> <td width="150" valign="top" style="border-bottom:1px solid black;" align="center"><b>CHANGE POSITION / ACTIVATION STATUS</b></td> <td colspan="2" width="100" valign="top" style="border-bottom:1px solid black;" align="center"><b>CHANGE DISPLAY ORDER</b></td> + <td valign="top" width="10" style="border-bottom:1px solid black;" align="center"></td> </tr> <!-- BEGIN: module --> <input type="hidden" name="mod_id_{COUNTER}" value="{MODULE.mod_id}"> <tr bgcolor="{BGCOLOR}"<!-- BEGIN: updated --> style="background-color: #ffff99"<!-- END: updated -->> <td valign="top"><b>{MODULE.mod_name}</b></td> + <td valign="top"><b>{MODULE.mod_version}</b></td> <td valign="top">{MODULE.mod_description}</td> <td valign="top" align="center"> <select name="mod_pos_{COUNTER}" style="width:150px"> @@ -62,6 +83,8 @@ <a href="module_order.php?i={MODULE.mod_id}&d=down" title="move down"><img src="img/move_down.gif" border="0" alt="move down"></a> <!-- END: down --></td> <td width="50" align="center"><!-- BEGIN: up --> <a href="module_order.php?i={MODULE.mod_id}&d=up" title="move up"><img src="img/move_up.gif" border="0" alt="move up"></a><!-- END: up --> + <td><!-- BEGIN: uncertified --> + <img src='img/warning.gif'><!-- END: uncertified --> </td> </tr> @@ -73,7 +96,14 @@ <td align="right"><br /><input type="image" src="img/save_big.gif" border="0" onClick="this.src='img/save_wait.gif';"> </td> </tr> </table> - +<!-- BEGIN: uncertified_warning --> +<br><br> +<table width="760" border="0" align="center" border="0" cellspacing="0" cellpadding="0"> + <tr> + <td align="center"><br /><img src='img/warning.gif'> - WARNING: This module is not certified against this version of CoMoblog. It may not function correctly.</td> + </tr> +</table> +<!-- END: uncertified_warning --> </form> {FILE "templates/footer.tpl.htm"} -<!-- END: main --> \ No newline at end of file +<!-- END: main --> |
|
From: Mark W. \(a. serialmonkey\) <mar...@us...> - 2005-11-13 12:35:36
|
Update of /cvsroot/comoblog/comoblog/modules/mod_example/install In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv31904/modules/mod_example/install Modified Files: mod_example.xml mod_example_commented.xml Log Message: CORE: Introduce a new module versioning framework to allow us to track module compatability during install and upgrade Index: mod_example.xml =================================================================== RCS file: /cvsroot/comoblog/comoblog/modules/mod_example/install/mod_example.xml,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- mod_example.xml 5 Oct 2005 00:49:33 -0000 1.1 +++ mod_example.xml 13 Nov 2005 12:35:27 -0000 1.2 @@ -5,7 +5,14 @@ <name> mod_example </name> - + + <version>1.0</version> + + <minimum_supported>1.0</minimum_supported> + + <certified> + 1.0 + </certified> <description> just an example to help developers making new modules Index: mod_example_commented.xml =================================================================== RCS file: /cvsroot/comoblog/comoblog/modules/mod_example/install/mod_example_commented.xml,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- mod_example_commented.xml 5 Oct 2005 00:49:33 -0000 1.1 +++ mod_example_commented.xml 13 Nov 2005 12:35:27 -0000 1.2 @@ -15,6 +15,19 @@ <name> mod_example </name> + + <!-- the version number for this module --> + <version>1.0</version> + + <!-- the minimum version of CoMoblog supported by this module --> + <minimum_supported>1.0</minimum_supported> + + <!-- the versions of CoMoblog that this module has been certified against. If a user tries to install + a module against an uncertified version they will be warned. If they upgrade CoMoblog to an + uncertified version then the module will be disabled by default --> + <certified> + 1.0 + </certified> <!-- description of your module (max 255 chars) --> <description> @@ -85,4 +98,4 @@ value="value1" /> -</module> \ No newline at end of file +</module> |
|
From: Mark W. \(a. serialmonkey\) <mar...@us...> - 2005-11-13 12:35:36
|
Update of /cvsroot/comoblog/comoblog/modules/mod_markup/install In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv31904/modules/mod_markup/install Modified Files: mod_markup.xml Log Message: CORE: Introduce a new module versioning framework to allow us to track module compatability during install and upgrade Index: mod_markup.xml =================================================================== RCS file: /cvsroot/comoblog/comoblog/modules/mod_markup/install/mod_markup.xml,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- mod_markup.xml 9 Oct 2005 06:54:28 -0000 1.2 +++ mod_markup.xml 13 Nov 2005 12:35:27 -0000 1.3 @@ -5,6 +5,14 @@ <name> mod_markup </name> + + <version>1.0</version> + + <minimum_supported>1.0</minimum_supported> + + <certified> + 1.0 + </certified> <description> Post filter module that implements WikiPedia style markup on incoming posts |
|
From: Mark W. \(a. serialmonkey\) <mar...@us...> - 2005-11-13 12:35:36
|
Update of /cvsroot/comoblog/comoblog/docs In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv31904/docs Modified Files: comoblog_mod_install.dtd Log Message: CORE: Introduce a new module versioning framework to allow us to track module compatability during install and upgrade Index: comoblog_mod_install.dtd =================================================================== RCS file: /cvsroot/comoblog/comoblog/docs/comoblog_mod_install.dtd,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- comoblog_mod_install.dtd 2 Sep 2005 01:38:38 -0000 1.1 +++ comoblog_mod_install.dtd 13 Nov 2005 12:35:27 -0000 1.2 @@ -1,7 +1,13 @@ -<!ELEMENT module (name,description,allowed_pos+,filter_posts?,filter_comments?,dbquery*,param*,author?,version?,date?)> +<!ELEMENT module (name,description,version?,minimum_supported?,certified*,allowed_pos+,filter_posts?,filter_comments?,dbquery*,param*,author?,version?,date?)> <!ELEMENT name (#PCDATA)> +<!ELEMENT version (#PCDATA)> + +<!ELEMENT minimum_supported (#PCDATA)> + +<!ELEMENT certified (#PCDATA)> + <!ELEMENT description (#PCDATA)> <!ELEMENT allowed_pos (sidebar|top|not_visible)> @@ -27,4 +33,4 @@ <!ELEMENT version (#PCDATA)> -<!ELEMENT date (#PCDATA)> \ No newline at end of file +<!ELEMENT date (#PCDATA)> |
|
From: Mark W. \(a. serialmonkey\) <mar...@us...> - 2005-11-13 12:35:35
|
Update of /cvsroot/comoblog/comoblog/_install/upgrades In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv31904/_install/upgrades Modified Files: 0.5.1_to_1.0.xml Log Message: CORE: Introduce a new module versioning framework to allow us to track module compatability during install and upgrade Index: 0.5.1_to_1.0.xml =================================================================== RCS file: /cvsroot/comoblog/comoblog/_install/upgrades/0.5.1_to_1.0.xml,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- 0.5.1_to_1.0.xml 9 Oct 2005 14:11:35 -0000 1.1 +++ 0.5.1_to_1.0.xml 13 Nov 2005 12:35:27 -0000 1.2 @@ -2,6 +2,18 @@ <comoblog_upgrade> + <dbquery> + alter table comoblog_modules add column mod_version varchar(6) default NULL; + </dbquery> + + <dbquery> + alter table comoblog_modules add column mod_minimum_supported varchar(6) default NULL; + </dbquery> + + <dbquery> + alter table comoblog_modules add column mod_certified varchar(255) default NULL; + </dbquery> + <dbquery> alter table comoblog_modules modify column mod_filter_posts enum('N','Y','O') NOT NULL default 'N'; </dbquery> |
|
From: Mark W. \(a. serialmonkey\) <mar...@us...> - 2005-11-13 12:35:35
|
Update of /cvsroot/comoblog/comoblog/admin In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv31904/admin Modified Files: manage_modules.php Log Message: CORE: Introduce a new module versioning framework to allow us to track module compatability during install and upgrade Index: manage_modules.php =================================================================== RCS file: /cvsroot/comoblog/comoblog/admin/manage_modules.php,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -u -d -r1.1.1.1 -r1.2 --- manage_modules.php 16 Aug 2005 05:49:44 -0000 1.1.1.1 +++ manage_modules.php 13 Nov 2005 12:35:27 -0000 1.2 @@ -10,6 +10,7 @@ require('include/xml2array.inc.php'); $new = 0; + $failed = 0; if ($dir = @opendir('../modules')) { while (($file = readdir($dir)) !== false) { if (substr($file,0,4) == 'mod_' && is_dir('../modules/'.$file)) { @@ -18,11 +19,17 @@ $install_file = '../modules/'.$file.'/install/'.$file.'.xml'; if (mysql_num_rows($res) == 0 && file_exists($install_file)) { // found new module!!! $module_install = module_install($file); // install it - if ($module_install) { // installed! + if ($module_install) { + $tpl->assign('MOD_NAME', $file); + $tpl->assign('ERROR', $module_install); + $tpl->parse('main.failed.module'); + $failed += 1; + } + else { // installed! $tpl->assign('MOD_NAME', $file); $tpl->parse('main.installed.module'); + $new += 1; } - $new += 1; } } } @@ -31,6 +38,9 @@ if ($new > 0) // if new modules were installed $tpl->parse('main.installed'); + + if ($failed > 0) // if new modules failed to install + $tpl->parse('main.failed'); /* */ @@ -41,7 +51,8 @@ */ $counter = 0; - +$uncertified_found = false; + $modules = module_list ('top'); if ($modules) { for ($m = 0; $m < count($modules); $m++) { @@ -72,7 +83,12 @@ $tpl->parse('main.modules.module.down'); $tpl->parse('main.modules.module.up'); } - + + if (!is_module_certified($modules[$m]['mod_certified'])) { + $uncertified_found = true; + $tpl->parse('main.modules.module.uncertified'); + } + $tpl->parse('main.modules.module'); $counter++; @@ -115,7 +131,12 @@ $tpl->parse('main.modules.module.down'); $tpl->parse('main.modules.module.up'); } - + + if (!is_module_certified($modules[$m]['mod_certified'])) { + $uncertified_found = true; + $tpl->parse('main.modules.module.uncertified'); + } + $tpl->parse('main.modules.module'); $counter++; @@ -156,7 +177,12 @@ $tpl->parse('main.modules.module.down'); $tpl->parse('main.modules.module.up'); } - + + if (!is_module_certified($modules[$m]['mod_certified'])) { + $uncertified_found = true; + $tpl->parse('main.modules.module.uncertified'); + } + $tpl->parse('main.modules.module'); $counter++; @@ -184,7 +210,12 @@ $tpl->assign('POS', $allowed_pos[$p]); $tpl->parse('main.modules.module.pos'); } - + + if (!is_module_certified($modules[$m]['mod_certified'])) { + $uncertified_found = true; + $tpl->parse('main.modules.module.uncertified'); + } + $tpl->assign('COUNTER', $counter); $tpl->assign('MODULE', $modules[$m]); $tpl->parse('main.modules.module'); @@ -195,6 +226,9 @@ } /* */ + +if ($uncertified_found == true) + $tpl->parse('main.uncertified_warning'); $tpl->assign('ACTION', 'module_pos.php'); @@ -203,4 +237,4 @@ $tpl->out('main'); mysql_close(); -?> \ No newline at end of file +?> |
|
From: Mark W. \(a. serialmonkey\) <mar...@us...> - 2005-11-13 12:35:35
|
Update of /cvsroot/comoblog/comoblog/admin/img In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv31904/admin/img Modified Files: warning.gif Log Message: CORE: Introduce a new module versioning framework to allow us to track module compatability during install and upgrade Index: warning.gif =================================================================== RCS file: /cvsroot/comoblog/comoblog/admin/img/warning.gif,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -u -d -r1.1.1.1 -r1.2 Binary files /tmp/cvs8dlbHR and /tmp/cvsKgFe4Q differ |