- Timestamp:
- Mar 18, 2009 6:19:02 PM (15 years ago)
- Location:
- trunk/lib
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/App.inc.php
r344 r348 106 106 'log_filename' => 'app_log', 107 107 108 // Don't email or sms duplicate messages that happen more often than this value in sceonds.108 // Don't email or sms duplicate messages that happen more often than this value (in seconds). 109 109 'log_multiple_timeout' => 60, 110 110 … … 129 129 'log_to_sms_address' => null, 130 130 131 // Temp directory to store files that will indicate if a message has bee sent recently. Used by logMsg() for message throtteling.132 ' log_msg_temp_dir' => '/tmp',131 // Temporary files directory. 132 'tmp_dir' => '/tmp', 133 133 134 134 // A key for calculating simple cryptographic signatures. Set using as an environment variables in the httpd.conf with 'SetEnv SIGNING_KEY <key>'. … … 557 557 // Create tmp files so that we don't email and sms redundantly. 558 558 $site_hash = md5(SITE_BASE); 559 $temp_dir = $this->getParam(' log_msg_temp_dir') . "/codebase_msgs_$site_hash/";559 $temp_dir = $this->getParam('tmp_dir') . "/codebase_msgs_$site_hash/"; 560 560 $temp_file = $temp_dir . $msg_id; 561 561 if (!is_dir($temp_dir)) { -
trunk/lib/TemplateGlue.inc.php
r337 r348 109 109 foreach ($blank as $key=>$val) { 110 110 $selected = ($preselected == $val) ? ' selected="selected"' : ''; 111 ?><option value="<?php echo $key; ?>"<?php echo $selected; ?>><?php echo oTxt($val); ?></option>111 ?><option value="<?php echo oTxt($key); ?>"<?php echo $selected; ?>><?php echo oTxt($val); ?></option> 112 112 <?php 113 113 } … … 115 115 foreach ($values as $v) { 116 116 $selected = ($v == $preselected) ? ' selected' : ''; 117 ?><option value="<?php echo $v; ?>"<?php echo $selected; ?>><?php echo oTxt($v); ?></option>117 ?><option value="<?php echo oTxt($v); ?>"<?php echo $selected; ?>><?php echo oTxt($v); ?></option> 118 118 <?php 119 119 } … … 136 136 foreach ($values as $v) { 137 137 $selected = ($v == $preselected) ? ' checked="checked"' : ''; 138 ?><input type="radio" name="<?php echo $name ?>" id="<?php echo $v; ?>" value="<?php echo $v; ?>"<?php echo $selected; ?> /><label for="<?php echo $v; ?>"><?php echo oTxt($v); ?></label>138 ?><input type="radio" name="<?php echo oTxt($name) ?>" id="<?php echo oTxt($v); ?>" value="<?php echo oTxt($v); ?>"<?php echo $selected; ?> /> <label class="sc-label-secondary"><?php echo oTxt($v); ?></label> 139 139 <?php 140 140 } … … 208 208 $html_name = $db_col . '[' . $v . ']'; 209 209 } 210 ?><td><input type="checkbox" name="<?php echo $html_name ?>" id="<?php echo $html_name ?>"<?php echo $checked; ?> /><label for="<?php echo $html_name ?>"><?php echo oTxt($v); ?></label></td>210 ?><td><input type="checkbox" name="<?php echo oTxt($html_name); ?>" id="<?php echo oTxt($html_name); ?>"<?php echo $checked; ?> /><label for="<?php echo oTxt($html_name); ?>" class="sc-label-secondary"><?php echo oTxt($v); ?></label></td> 211 211 <?php 212 212 } … … 280 280 } 281 281 // Print a cell with basic named checkboxes. 282 ?><td><input type="radio" name="<?php echo $db_col; ?>" id="<?php echo $db_col . '-' . $v; ?>" value="<?php echo $v ?>"<?php echo $checked; ?> /><label class="sc-label-secondary" for="<?php echo $db_col . '-' . $v?>"><?php echo oTxt($v); ?></label></td>282 ?><td><input type="radio" name="<?php echo oTxt($db_col); ?>" id="<?php echo oTxt($db_col . '-' . $v); ?>" value="<?php echo oTxt($v); ?>"<?php echo $checked; ?> /><label class="sc-label-secondary" for="<?php echo oTxt($db_col . '-' . $v); ?>"><?php echo oTxt($v); ?></label></td> 283 283 <?php 284 284 } -
trunk/lib/Utilities.inc.php
r340 r348 851 851 exec(sprintf("/bin/echo '%s' | /usr/bin/sudo %s -r - --welcome-msg=%s --admin-notify=n '%s'", escapeshellarg($email), escapeshellarg($add_members), $welcome_msg, escapeshellarg($list)), $stdout, $return_code); 852 852 if (0 == $return_code) { 853 $app->logMsg(sprintf('Mailman add member success for list: %s, user: %s', $list, $email , $stdout), LOG_INFO, __FILE__, __LINE__);853 $app->logMsg(sprintf('Mailman add member success for list: %s, user: %s', $list, $email), LOG_INFO, __FILE__, __LINE__); 854 854 return true; 855 855 } else { … … 883 883 exec(sprintf("/usr/bin/sudo %s %s --noadminack '%s' '%s'", escapeshellarg($remove_members), $userack, escapeshellarg($list), escapeshellarg($email)), $stdout, $return_code); 884 884 if (0 == $return_code) { 885 $app->logMsg(sprintf('Mailman remove member success for list: %s, user: %s', $list, $email , $stdout), LOG_INFO, __FILE__, __LINE__);885 $app->logMsg(sprintf('Mailman remove member success for list: %s, user: %s', $list, $email), LOG_INFO, __FILE__, __LINE__); 886 886 return true; 887 887 } else {
Note: See TracChangeset
for help on using the changeset viewer.