<?php $status = ''; if (empty($_REQUEST['id'])) { $id = ''; } else { $id = $_REQUEST['id']; if (!isset($default_config[$id])) { print $GLOBALS['I18N']->get('invalid request'); return; } } /* printf('<script type="text/javascript"> $(".configValue").each(function() { if (this.id != "edit_%s") { this.innerHTML = "Not editing"; } }); </script>',$id); */ $configItem = $default_config[$id]; printf('<div class="configEditing">' . $GLOBALS['I18N']->get('Editing') . ' <b>%s</b></div>',$configItem['description']); printf('<div class="configValue" id="edit_%s"><input type="hidden" name="id" value="%s" />',$id,$id); $dbval = getConfig($id); # print $dbval.'<br/>'; if (isset($dbval)) $value = $dbval; else $value = $configItem['value']; # print $id.' '.$value . " ".$website . " ".$domain.'<br/>'; if ($id != "website" && $id != "domain") { $value = str_replace($GLOBALS['website'],'[WEBSITE]', $value); $value = str_replace($GLOBALS['domain'],'[DOMAIN]', $value); } # print "VALUE:".$value . '<br/>'; if ($configItem['type'] == "textarea") { printf('<textarea name="values[%s]" rows=25 cols=55>%s</textarea>', $id,htmlspecialchars(stripslashes($value))); } else if ( $configItem['type'] == "text" || $configItem['type'] == "url" || $configItem['type'] == "email" || $configItem['type'] == "emaillist" ) { printf('<input type="text" name="values[%s]" size="70" value="%s" />', $id,htmlspecialchars(stripslashes($value))); } else if ($configItem['type'] == "integer") { printf('<input type="text" name="values[%s]" size="70" value="%d" />', $id,htmlspecialchars(stripslashes($value))); } else if ($configItem['type'] == "boolean") { printf ('<select name="values[%s]">',$id); print '<option value="true" '; if ($value === true || $value == "true" || $value == 1) { print 'selected="selected"'; } print '>'; print $GLOBALS['I18N']->get('Yes') ; print ' </option>'; print '<option value="false" '; if ($value === false || $value == "false" || $value == 0) { print 'selected="selected"'; } print '>'; print $GLOBALS['I18N']->get('No') ; print ' </option>'; print '</select>'; } else { print s('Don\'t know how to handle type '.$configItem['type']); } print '<input type="hidden" name="save" value="item_'.$id.'" /><input class="submit" type="submit" name="savebutton" value="' . $GLOBALS['I18N']->get('save changes') . '" /></div>';
Name | Type | Size | Permission | Actions |
---|---|---|---|---|
.htaccess | File | 31 B | 0644 |
|
addemail.php | File | 874 B | 0644 |
|
addlist.php | File | 69 B | 0644 |
|
bounce.php | File | 166 B | 0644 |
|
bounces.php | File | 1.35 KB | 0644 |
|
campaigns.php | File | 2.57 KB | 0644 |
|
checkurl.php | File | 838 B | 0644 |
|
configure.php | File | 2.37 KB | 0644 |
|
domainbounces.php | File | 1.66 KB | 0644 |
|
domainstats.php | File | 7.2 KB | 0644 |
|
export.php | File | 6.92 KB | 0644 |
|
generatetext.php | File | 1.01 KB | 0644 |
|
generatetextpreview.php | File | 1.42 KB | 0644 |
|
getservertime.php | File | 127 B | 0644 |
|
hidenote.php | File | 245 B | 0644 |
|
import.php | File | 182 B | 0644 |
|
import1.php | File | 9.21 KB | 0644 |
|
import2.php | File | 23.54 KB | 0644 |
|
importsimple.php | File | 182 B | 0644 |
|
initlanguage.php | File | 243 B | 0644 |
|
keepalive.php | File | 180 B | 0644 |
|
listbounces.php | File | 2.4 KB | 0644 |
|
markread.php | File | 341 B | 0644 |
|
mclicks.php | File | 4.81 KB | 0644 |
|
mergeduplicatelists.php | File | 1.41 KB | 0644 |
|
msgbounces.php | File | 2.35 KB | 0644 |
|
msgsent.php | File | 881 B | 0644 |
|
msgstatus.php | File | 5.35 KB | 0644 |
|
mviews.php | File | 4.97 KB | 0644 |
|
plugins.php | File | 943 B | 0644 |
|
processqueue.php | File | 53.08 KB | 0644 |
|
reconcileusers.php | File | 471 B | 0644 |
|
removeemptylists.php | File | 379 B | 0644 |
|
searchemail.php | File | 825 B | 0644 |
|
shownotes.php | File | 74 B | 0644 |
|
statsoverview.php | File | 5.83 KB | 0644 |
|
storemessage.php | File | 2.05 KB | 0644 |
|
subscription.php | File | 3.91 KB | 0644 |
|
test.php | File | 13 B | 0644 |
|
updatetranslation.php | File | 824 B | 0644 |
|
upgrade.php | File | 183 B | 0644 |
|
user.php | File | 710 B | 0644 |
|
viewtemplate.php | File | 1.09 KB | 0644 |
|