Changeset 2093 in ExiteCMS
- Timestamp:
- 12/05/08 21:43:27 (3 years ago)
- Location:
- modules/ExiteCMS/tracsvn/php-files/modules/tracsvn
- Files:
-
- 4 edited
-
admin.php (modified) (5 diffs)
-
module_installer.php (modified) (6 diffs)
-
templates/modules.tracsvn.admin.tpl (modified) (1 diff)
-
templates/modules.tracsvn.side_panel.tpl (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
modules/ExiteCMS/tracsvn/php-files/modules/tracsvn/admin.php
r2043 r2093 36 36 $database = stripinput($_POST['database']); 37 37 $url = stripinput($_POST['url']); 38 $trac_url = stripinput($_POST['trac_url']); 38 39 $cmd = stripinput($_POST['cmd']); 39 40 $auth = stripinput($_POST['auth']); … … 67 68 $url .= "/"; 68 69 } 70 if (!empty($trac_url) && substr($trac_url, -1) != "/") { 71 $trac_url .= "/"; 72 } 69 73 if ($variables['message'] == "") { 70 74 // executable is valid. check if the repository is readable … … 82 86 $result = dbquery("UPDATE ".$db_prefix."configuration SET cfg_value = '".$database."' WHERE cfg_name = 'tracsvn_database'"); 83 87 $result = dbquery("UPDATE ".$db_prefix."configuration SET cfg_value = '".$url."' WHERE cfg_name = 'tracsvn_url'"); 88 $result = dbquery("UPDATE ".$db_prefix."configuration SET cfg_value = '".$trac_url."' WHERE cfg_name = 'tracsvn_trac_url'"); 84 89 $result = dbquery("UPDATE ".$db_prefix."configuration SET cfg_value = '".$cmd."' WHERE cfg_name = 'tracsvn_svncmd'"); 85 90 $result = dbquery("UPDATE ".$db_prefix."configuration SET cfg_value = '".$auth."' WHERE cfg_name = 'tracsvn_svnauth'"); … … 116 121 $database = $settings['tracsvn_database']; 117 122 $url = $settings['tracsvn_url']; 123 $trac_url = $settings['tracsvn_trac_url']; 118 124 $cmd = $settings['tracsvn_svncmd']; 119 125 $auth = $settings['tracsvn_svnauth']; … … 184 190 $variables['database'] = $database; 185 191 $variables['url'] = $url; 192 $variables['trac_url'] = $trac_url; 186 193 $variables['cmd'] = $cmd; 187 194 $variables['auth'] = $auth; -
modules/ExiteCMS/tracsvn/php-files/modules/tracsvn/module_installer.php
r2043 r2093 24 24 $mod_title = "Trac-SVN reports"; 25 25 $mod_description = "This ExiteCMS module provides a reporting of Trac Project management, and connects to SVN to retrieve details status information"; 26 $mod_version = "0.1. 4";26 $mod_version = "0.1.5"; 27 27 $mod_developer = "WanWizard"; 28 28 $mod_email = "wanwizard@exitecms.org"; … … 128 128 $localestrings['en']['455'] = "Operation on a non-public section of the repository"; 129 129 $localestrings['en']['456'] = "Non-public repository paths:"; 130 $localestrings['en']['457'] = "Trac base URL:"; 130 131 131 132 $localestrings['en']['500'] = "Changeset"; … … 209 210 $localestrings['nl']['455'] = "Bewerking op een niet publiek deel van de repository"; 210 211 $localestrings['nl']['456'] = "Niet publieke repository paden:"; 212 $localestrings['nl']['457'] = "Trac basis URL:"; 211 213 212 214 $localestrings['nl']['500'] = "Changeset"; … … 241 243 $mod_install_cmds[] = array('type' => 'db', 'value' => "INSERT INTO ".$db_prefix."configuration( cfg_name, cfg_value ) VALUES ('tracsvn_database', '')"); 242 244 $mod_install_cmds[] = array('type' => 'db', 'value' => "INSERT INTO ".$db_prefix."configuration( cfg_name, cfg_value ) VALUES ('tracsvn_url', '')"); 245 $mod_install_cmds[] = array('type' => 'db', 'value' => "INSERT INTO ".$db_prefix."configuration( cfg_name, cfg_value ) VALUES ('tracsvn_trac_url', '')"); 243 246 $mod_install_cmds[] = array('type' => 'db', 'value' => "INSERT INTO ".$db_prefix."configuration( cfg_name, cfg_value ) VALUES ('tracsvn_svncmd', '/usr/bin/svn')"); 244 247 $mod_install_cmds[] = array('type' => 'db', 'value' => "INSERT INTO ".$db_prefix."configuration( cfg_name, cfg_value ) VALUES ('tracsvn_svnauth', '--username name_here --password pass_here')"); … … 267 270 $mod_uninstall_cmds[] = array('type' => 'db', 'value' => "DELETE FROM ##PREFIX##configuration WHERE cfg_name = 'tracsvn_database'"); 268 271 $mod_uninstall_cmds[] = array('type' => 'db', 'value' => "DELETE FROM ##PREFIX##configuration WHERE cfg_name = 'tracsvn_url'"); 272 $mod_uninstall_cmds[] = array('type' => 'db', 'value' => "DELETE FROM ##PREFIX##configuration WHERE cfg_name = 'tracsvn_trac_url'"); 269 273 $mod_uninstall_cmds[] = array('type' => 'db', 'value' => "DELETE FROM ##PREFIX##configuration WHERE cfg_name = 'tracsvn_svncmd'"); 270 274 $mod_uninstall_cmds[] = array('type' => 'db', 'value' => "DELETE FROM ##PREFIX##configuration WHERE cfg_name = 'tracsvn_svnauth'"); … … 313 317 case "0.1.3": 314 318 // no upgrades this version 319 case "0.1.4": 320 // add the new trac base URL 321 $result = dbquery("INSERT INTO ".$db_prefix."configuration( cfg_name, cfg_value ) VALUES ('tracsvn_trac_url', '')"); 315 322 default: 316 323 // do this with every upgrade -
modules/ExiteCMS/tracsvn/php-files/modules/tracsvn/templates/modules.tracsvn.admin.tpl
r2043 r2093 60 60 </td> 61 61 </tr> 62 <tr> 63 <td width='50%' class='tbl'> 64 {$locale.457} 65 </td> 66 <td width='50%' class='tbl'> 67 <input type='text' name='trac_url' value='{$trac_url}' maxlength='255' class='textbox' style='width:300px;' /> 68 </td> 62 69 <tr> 63 70 <td width='50%' class='tbl'> -
modules/ExiteCMS/tracsvn/php-files/modules/tracsvn/templates/modules.tracsvn.side_panel.tpl
r2043 r2093 20 20 {include file="_openside_x.tpl" name=$_name title=$locale.401 state=$_state style=$_style} 21 21 {if $rev != 0} 22 <div style="text-align:center; ">22 <div style="text-align:center;cursor:pointer;" onclick="window.open('{$settings.tracsvn_trac_url}changeset/{$rev}')" title="{$locale.110} {$locale.402} {$rev}"> 23 23 <span class='small'>{$locale.402}</span> 24 24 <b>{$rev}</b>
Note: See TracChangeset
for help on using the changeset viewer.
