" /> </div> <div class="fieldgroup"> <label for="options">Options:</label> <input type="text" name="options" id="options" size="70" value="<?php echo $_REQUEST['options']; ?> " /> </div> <div class="fieldgroup"> <label for="validation">Validation:</label> <select name="validation" id="validation"> <?php echo OptionTags($VALIDATION_TYPES, $_REQUEST['validation']); ?> </select> <input type="text" name="validation_extras" id="validation_extras" size="30" value="<?php echo $_REQUEST['validation_extras']; ?> " /> </div> <div class="fieldgroup"> <label for="validation_message">Validation Error:</label> <input type="text" name="validation_message" id="validation_message" size="70" value="<?php echo $_REQUEST['validation_message']; ?> " />
</div> <div class="fieldgroup"> <label for="time_format">Time Format:</label> <input type="text" name="time_format" id="time_format" size="20" value="<?php echo $C['time_format']; ?> " /> </div> <div class="fieldgroup"> <label for="timezone">Timezone:</label> <select name="timezone" id="timezone"> <?php $zones = array('-12' => '(GMT -12:00) Eniwetok, Kwajalein', '-11' => '(GMT -11:00) Midway Island, Samoa', '-10' => '(GMT -10:00) Hawaii', '-9' => '(GMT -9:00) Alaska', '-8' => '(GMT -8:00) Pacific Time (US & Canada)', '-7' => '(GMT -7:00) Mountain Time (US & Canada)', '-6' => '(GMT -6:00) Central Time (US & Canada), Mexico City', '-5' => '(GMT -5:00) Eastern Time (US & Canada), Bogota, Lima', '-4' => '(GMT -4:00) Atlantic Time (Canada), La Paz, Santiago', '-3.5' => '(GMT -3:30) Newfoundland', '-3' => '(GMT -3:00) Brazil, Buenos Aires, Georgetown', '-2' => '(GMT -2:00) Mid-Atlantic', '-1' => '(GMT -1:00 hour) Azores, Cape Verde Islands', '0' => '(GMT) Western Europe Time, London, Lisbon, Casablanca', '1' => '(GMT +1:00 hour) Brussels, Copenhagen, Madrid, Paris', '2' => '(GMT +2:00) Kaliningrad, South Africa', '3' => '(GMT +3:00) Baghdad, Riyadh, Moscow, St. Petersburg', '3.5' => '(GMT +3:30) Tehran', '4' => '(GMT +4:00) Abu Dhabi, Muscat, Baku, Tbilisi', '4.5' => '(GMT +4:30) Kabul', '5' => '(GMT +5:00) Ekaterinburg, Islamabad, Karachi, Tashkent', '5.5' => '(GMT +5:30) Bombay, Calcutta, Madras, New Delhi', '6' => '(GMT +6:00) Almaty, Dhaka, Colombo', '6.5' => '(GMT +6:30) Yangon, Cocos Islands', '7' => '(GMT +7:00) Bangkok, Hanoi, Jakarta', '8' => '(GMT +8:00) Beijing, Perth, Singapore, Hong Kong', '9' => '(GMT +9:00) Tokyo, Seoul, Osaka, Sapporo, Yakutsk', '9.5' => '(GMT +9:30) Adelaide, Darwin', '10' => '(GMT +10:00) Eastern Australia, Guam, Vladivostok', '11' => '(GMT +11:00) Magadan, Solomon Islands, New Caledonia', '12' => '(GMT +12:00) Auckland, Wellington, Fiji, Kamchatka'); echo OptionTags($zones, $C['timezone']); ?> </select> </div> <div class="fieldgroup"> <label for="dec_point">Decimal Point:</label> <input type="text" name="dec_point" id="dec_point" size="10" value="<?php echo $C['dec_point']; ?> " /> </div> <div class="fieldgroup"> <label for="thousands_sep">Thousands Separator:</label> <input type="text" name="thousands_sep" id="thousands_sep" size="10" value="<?php
echo OptionTags($types, $_REQUEST['type']); ?> </select> </div> <div class="fieldgroup"> <label for="format">Format:</label> <select name="format"> <?php if (!$editing) { ?> <option value="">Auto-detect</option> <?php } $formats = array('pictures' => 'Pictures', 'movies' => 'Movies'); echo OptionTags($formats, $_REQUEST['format']); ?> </select> </div> <div class="fieldgroup"> <label for="username">Partner:</label> <input type="text" name="partner" id="partner" size="30" value="<?php echo $_REQUEST['partner']; ?> " /> <img src="images/search.png" height="12" width="12" alt="Search" onclick="searchUsers()" class="click-image"> <span id="user_search" style="display: none;"></span> </div> <div class="fieldgroup">
" /> </div> <div class="fieldgroup"> <label for="options">Options:</label> <input type="text" name="options" id="options" size="70" value="<?php echo $_REQUEST['options']; ?> " /> </div> <div class="fieldgroup"> <label for="validation">Validation:</label> <select name="validation" id="validation"> <?php echo OptionTags($validation_options, $_REQUEST['validation']); ?> </select> <input type="text" name="validation_extras" id="validation_extras" size="30" value="<?php echo $_REQUEST['validation_extras']; ?> " /> </div> <div class="fieldgroup"> <label for="validation_message">Validation Error:</label> <input type="text" name="validation_message" id="validation_message" size="70" value="<?php echo $_REQUEST['validation_message']; ?> " />
</div> <div class="fieldgroup"> <label style="width: 250px;">Links with blacklisted data:</label> <select name="action_blacklist"> <?php echo OptionTags($actions, $_REQUEST['action_blacklist']); ?> </select> </div> <div class="fieldgroup"> <label style="width: 250px;">Links with no reciprocal link:</label> <select name="action_norecip"> <?php echo OptionTags($actions, $_REQUEST['action_norecip']); ?> </select> </div> </fieldset> <div class="centered margin-top"> <button type="submit"><?php echo $editing ? 'Update' : 'Add'; ?> Scanner Configuration</button> </div> <input type="hidden" name="r" value="<?php echo $editing ? 'lxEditScannerConfig' : 'lxAddScannerConfig';
</div> <div class="fieldgroup"> <label for="submitted_hold">Submitted Holding Period:</label> <input type="text" name="submitted_hold" id="submitted_hold" size="10" value="<?php echo $C['submitted_hold']; ?> " /> </div> <div class="fieldgroup"> <label for="submit_status">Submission Status:</label> <select name="submit_status" id="submit_status"> <?php $submit_statuses = array('all' => 'Open to all submitters', 'partner' => 'Open only to partners', 'closed' => 'Closed for all'); echo OptionTags($submit_statuses, $C['submit_status']); ?> </select> </div> <div class="fieldgroup"> <label class="lesspad"></label> <label for="allow_num_thumbs" class="cblabel inline"><?php echo CheckBox('allow_num_thumbs', 'checkbox', 1, $C['allow_num_thumbs']); ?> Allow user to submit the number of thumbs on their gallery</label> </div> <div class="fieldgroup"> <label class="lesspad"></label>
function FormField($options, $value) { $html = ''; $select_options = explode(',', $options['options']); $options['tag_attributes'] = str_replace(array('"', '''), array('"', "'"), $options['tag_attributes']); switch ($options['type']) { case FT_CHECKBOX: $tag_value = null; if (preg_match('/value\\s*=\\s*["\']?([^\'"]+)\\s?/i', $options['tag_attributes'], $matches)) { $tag_value = $matches[1]; } else { $tag_value = 1; $options['tag_attributes'] .= ' value="1"'; } $html = "<input " . "type=\"checkbox\" " . "name=\"{$options['name']}\" " . "id=\"{$options['name']}\" " . ($value == $tag_value ? "checked=\"checked\" " : '') . "{$options['tag_attributes']} />\n"; break; case FT_SELECT: $html = "<select " . "name=\"{$options['name']}\" " . "id=\"{$options['name']}\" " . "{$options['tag_attributes']}>\n" . OptionTags($select_options, $value, TRUE) . "</select>\n"; break; case FT_TEXT: $html = "<input " . "type=\"text\" " . "name=\"{$options['name']}\" " . "id=\"{$options['name']}\" " . "value=\"{$value}\" " . "{$options['tag_attributes']} />\n"; break; case FT_TEXTAREA: $html = "<textarea " . "name=\"{$options['name']}\" " . "id=\"{$options['name']}\" " . "{$options['tag_attributes']}>" . $value . "</textarea>\n"; break; } return $html; }
</div> <div class="fieldgroup"> <label></label> <label for="movies_preview_allowed" class="cblabel inline"><?php echo CheckBox('movies_preview_allowed', 'checkbox', 1, $_REQUEST['movies_preview_allowed']); ?> Allow preview thumbnails for this format</label> </div> <div class="fieldgroup"> <label for="movies_preview_size">Preview Dimensions:</label> <select name="movies_preview_size"> <option value="custom">Custom --></option> <?php echo OptionTags($sizes, $_REQUEST['movies_preview_size'], TRUE); ?> </select> <input type="text" name="movies_preview_size_custom" id="movies_preview_size_custom" size="10" value="<?php echo $_REQUEST['movies_preview_size_custom']; ?> " /> <span style="padding-left: 5px;">WxH</span> </div> <div class="fieldgroup"> <label for="movies_annotation">Preview Annotation:</label> <?php if (!count($annotations)) { ?> <div style="float: left;" class="warn">No annotations have been configured</div>
<div id="centered-content" class="max-width"> <div class="heading"> <div class="heading-icon"> <a href="docs/templates-email.html" target="_blank"><img src="images/help.png" border="0" alt="Help" title="Help"></a> </div> E-mail Templates </div> <form action="index.php" method="POST" onSubmit="return checkForm()"> <div class="centered margin-top" style="font-weight: bold"> <select name="template"> <?php $templates =& DirRead("{$GLOBALS['BASE_DIR']}/templates", '^email[^\\.]+\\.tpl$'); asort($templates); echo OptionTags($templates, $_REQUEST['loaded_template'], TRUE); ?> </select> <button type="submit" onclick="$('#r').val('lxLoadEmailTemplate')">Load Template</button> </div> <input type="hidden" id="r" name="r" value=""> <?php if ($_REQUEST['loaded_template']) { ?> <br /> <div class="heading"> Editing Template <?php
?> <fieldset> <legend>General Settings</legend> <div class="fieldgroup"> <label for="type">Select Image:</label> <input type="file" name="upload" id="upload" size="40"> </div> <div class="fieldgroup"> <label for="type">Resize Image:</label> <select name="action" id="action"> <?php $actions = array('' => 'NO', 'auto' => 'Automatically', 'manual' => 'Manually'); echo OptionTags($actions, $_REQUEST['action']); ?> </select> </div> </fieldset> <div class="centered margin-top"> <button type="submit">Upload Preview Thumb</button> </div> <input type="hidden" name="r" value="txPreviewUpload"> <input type="hidden" name="gallery_id" value="<?php echo $_REQUEST['gallery_id']; ?> "> </form>
<div class="fieldgroup"> <label for="type">Type:</label> <select name="settings[type]" id="type"> <?php $types = array('submitted' => 'Submitted', 'permanent' => 'Permanent'); echo OptionTags($types, $_REQUEST['settings']['type']); ?> </select> </div> <div class="fieldgroup"> <label for="format">Format:</label> <select name="settings[format]" id="format"> <?php $formats = array('pictures' => 'Pictures', 'movies' => 'Movies'); echo OptionTags($formats, $_REQUEST['settings']['format']); ?> </select> </div> <div class="fieldgroup"> <label for="category">Category:</label> <select name="settings[category]" id="category"> <?php $categories =& $DB->FetchAll('SELECT `name`,`category_id` FROM `tx_categories` ORDER BY `name`'); echo OptionTagsAdv($categories, $_REQUEST['settings']['category'], 'category_id', 'name', 60); ?> </select> </div> </div>
<div class="fieldgroup"> <label for="preview">Preview Thumbnail:</label> <select name="p[preview]" id="preview"> <option value="true">Gallery must have a preview thumbnail</option> <option value="false">Gallery must NOT have a preview thumbnail</option> <option value="any">Don't care</option> </select> </div> <div class="fieldgroup"> <label for="previewsize">Preview Size:</label> <select name="p[previewsize]" id="previewsize"> <option value="">Custom --></option> <?php echo OptionTags($sizes, null, TRUE); ?> </select> <span id="customsizespan"> <input type="text" name="p[customsize]" size="8"> WxH </span> </div> <div class="fieldgroup"> <label for="description">Require Description:</label> <select name="p[description]" id="description"> <option value="false">No, description is not required for galleries in this section</option> <option value="true">Yes, description is required for galleries in this section</option> </select> </div>
</div> <div class="fieldgroup"> <label style="width: 250px;">Forwarding URLs:</label> <select name="action_forward"> <?php echo OptionTags($actions, $_REQUEST['action_forward']); ?> </select> </div> <div class="fieldgroup"> <label style="width: 250px;">Blacklisted data:</label> <select name="action_blacklist"> <?php echo OptionTags($actions, $_REQUEST['action_blacklist']); ?> </select> </div> </fieldset> <div class="centered margin-top"> <button type="submit"><?php echo $editing ? 'Update' : 'Add'; ?> Scanner Configuration</button> </div> <input type="hidden" name="r" value="<?php echo $editing ? 'tlxScannerConfigEdit' : 'tlxScannerConfigAdd';
</select> <img src="images/add-small.png" onclick="addCategorySelect(this)" class="click-image" alt="Add Category"> <img src="images/remove-small.png" onclick="removeCategorySelect(this)" class="click-image" alt="Remove Category"> </div> </div> </td> </tr> <tr> <td align="right"> <b>Search:</b> </td> <td colspan="2"> <select name="field" id="s_field"> <?php $search_fields = array('tx_galleries.gallery_id' => 'Gallery ID', 'gallery_url' => 'Gallery URL', 'description,keywords' => 'Description,Keywords', 'description' => 'Description', 'keywords' => 'Keywords', 'thumbnails' => 'Thumbnails', 'email' => 'E-mail Address', 'nickname' => 'Nickname', 'weight' => 'Weight', 'clicks' => 'Clicks', 'submit_ip' => 'Submit IP', 'gallery_ip' => 'Gallery IP', 'date_scanned' => 'Date Scanned', 'date_added' => 'Date Added', 'date_approved' => 'Date Approved', 'date_scheduled' => 'Date Scheduled', 'date_displayed' => 'Date Displayed', 'date_deletion' => 'Date of Deletion', 'partner' => 'Partner', 'administrator' => 'Administrator', 'has_recip' => 'Has Recip', 'allow_scan' => 'Allow Scan', 'allow_preview' => 'Allow Preview', 'times_selected' => 'Times Selected', 'used_counter' => 'Used Counter', 'build_counter' => 'Build Counter', 'tags' => 'Tags', 'dimensions' => 'Thumb Size', 'sponsor' => 'Sponsor Name', 'sponsor_id' => 'Sponsor ID'); echo OptionTags($search_fields, $_REQUEST['sf']); $fields =& $DB->FetchAll('SELECT * FROM `tx_gallery_field_defs`'); echo OptionTagsAdv($fields, '', 'name', 'label', 40); ?> </select> <select name="search_type" id="s_type"> <option value="matches">Matches</option> <option value="contains">Contains</option> <option value="starts">Starts With</option> <option value="less">Less Than</option> <option value="greater">Greater Than</option> <option value="between">Between</option> <option value="empty">Empty</option> </select> <input type="text" name="search" id="s_search" value="<?php echo $_REQUEST['s'];
?> </div> <div class="fieldgroup"> <label></label> <label for="regex" class="cblabel inline"><?php echo CheckBox('regex', 'checkbox', 1, $_REQUEST['regex']); ?> Regular expression</label> </div> <div class="fieldgroup"> <label for="type">Type:</label> <select name="type" id="type"> <?php echo OptionTags($BLIST_TYPES, $_REQUEST['type']); ?> </select> </div> <div class="fieldgroup"> <label for="reason">Reason:</label> <input type="text" name="reason" id="reason" size="60" value="<?php echo $_REQUEST['reason']; ?> " /> </div> </fieldset> <div class="centered margin-top">
?> </div> <div class="fieldgroup"> <label></label> <label for="regex" class="cblabel inline"><?php echo CheckBox('regex', 'checkbox', 1, $_REQUEST['regex']); ?> Regular expression</label> </div> <div class="fieldgroup"> <label for="type">Type:</label> <select name="type" id="type"> <?php echo OptionTags($GLOBALS['BLIST_TYPES'], $_REQUEST['type']); ?> </select> </div> <div class="fieldgroup"> <label for="reason">Reason:</label> <input type="text" name="reason" id="reason" size="60" value="<?php echo $_REQUEST['reason']; ?> " /> </div> </fieldset> <div class="centered margin-top">
</div> <div class="fieldgroup"> <label style="width: 250px;">Content on different server:</label> <select name="action_content_server"> <?php echo OptionTags($actions, $_REQUEST['action_content_server']); ?> </select> </div> <div class="fieldgroup"> <label style="width: 250px;">Bad gallery format:</label> <select name="action_badformat"> <?php echo OptionTags($actions, $_REQUEST['action_badformat']); ?> </select> </div> </fieldset> <div class="centered margin-top"> <button type="submit"><?php echo $editing ? 'Update' : 'Add'; ?> Scanner Configuration</button> </div> <input type="hidden" name="r" value="<?php echo $editing ? 'txScannerConfigEdit' : 'txScannerConfigAdd';
} ?> <div style="text-align: center"> <b>From:</b> <select name="date_start" id="date_start"> <?php echo OptionTags($date_options, $_REQUEST['date_start']); ?> </select> <b style="padding-left: 20px;">To:</b> <select name="date_end" id="date_end"> <?php echo OptionTags($date_options, $_REQUEST['date_end']); ?> </select> <button type="submit" style="margin-left: 20px;">View</button> </div> <?php foreach ($daily_stats as $name => $value) { ?> <div class="fieldgroup"> <label class="lesspad"><?php echo ucfirst(str_replace('_', ' ', $name)); ?> :</label> <?php
<option value="greater">Greater Than</option> <option value="between">Between</option> <option value="empty">Empty</option> </select> <input type="text" name="search" size="40" value="" onkeypress="return Search.onenter(event)" /> </td> </tr> <tr> <td align="right"> <b>Type:</b> </td> <td colspan="2"> <select name="type" id="type"> <option value="">All</option> <?php echo OptionTags($BLIST_TYPES); ?> </select> </td> </tr> <tr> <td align="right"> <b>Sort:</b> </td> <td> <select name="order" id="order"> <option value="value">Value</option> <option value="type">Type</option> <option value="reason">Reason</option> </select>
<label for="review_comments" class="cblabel inline"><?php echo CheckBox('review_comments', 'checkbox', 1, $C['review_comments']); ?> Review new surfer comments before displaying them on your site</label> </div> </fieldset> <fieldset> <legend>Account Submission Settings</legend> <div class="fieldgroup"> <label for="accounts_status">Account Submissions:</label> <select name="accounts_status" id="accounts_status"> <?php $accounts_statuses = array('open' => 'Open - accepting new accounts', 'closed' => 'Closed - not accepting new accounts'); echo OptionTags($accounts_statuses, $C['accounts_status']); ?> </select> </div> <div class="fieldgroup"> <label class="lesspad"></label> <label for="review_new_accounts" class="cblabel inline"><?php echo CheckBox('review_new_accounts', 'checkbox', 1, $C['review_new_accounts']); ?> Review new accounts before listing them</label> </div> <div class="fieldgroup"> <label class="lesspad"></label> <label for="review_edited_accounts" class="cblabel inline"><?php
<div class="fieldgroup"> <label for="status">Status:</label> <select name="status"> <?php $statuses = array('unconfirmed' => 'Unconfirmed', 'pending' => 'Pending', 'active' => 'Active', 'disabled' => 'Disabled'); echo OptionTags($statuses, $_REQUEST['status']); ?> </select> </div> <div class="fieldgroup"> <label for="type">Type:</label> <select name="type"> <?php $types = array('regular' => 'Regular', 'premium' => 'Premium', 'featured' => 'Featured'); echo OptionTags($types, $_REQUEST['type']); ?> </select> <input type="text" name="expires" id="expires" value="<?php echo $_REQUEST['expires']; ?> " class="calendarSelectDate" /> </div> <div class="fieldgroup"> <label for="username">Account:</label> <input type="text" name="username" id="username" size="30" value="<?php echo $_REQUEST['username']; ?> " />
</div> <div class="fieldgroup"> <label>Conversions:</label> <div style="float: left;"> <select name="characters"> <?php $characters = array('remove' => 'Remove all non-alphanumeric characters', 'dash' => 'Replace all non-alphanumeric characters with a dash', 'underscore' => 'Replace all non-alphanumeric characters with an underscore'); echo OptionTags($characters, $_REQUEST['characters']); ?> </select> <br /> <select name="case"> <?php $cases = array('lower' => 'All letters lower case', 'nochange' => 'No change to text case'); echo OptionTags($cases, $_REQUEST['case']); ?> </select> </div> </div> <div class="fieldgroup"> <label class="lesspad"></label> <label for="locked" class="cblabel inline"><?php echo CheckBox('locked', 'checkbox', 1, $_REQUEST['locked']); ?> Lock these pages</label> </div> </fieldset>
<div id="category_select" style="display: none; float: left;"> <select name="forced_category" id="forced_category"> <?php $categories =& $DB->FetchAll('SELECT `name`,`tag` FROM `tx_categories` ORDER BY `name`'); echo OptionTagsAdv($categories, $_REQUEST['forced_category'], 'tag', 'name', 60); ?> </select> </div> </div> <div class="fieldgroup"> <label for="sponsor">Duplicates:</label> <select name="duplicates" id="duplicates"> <?php $duplicates = array('skip' => 'Skip over gallery', 'replace' => 'Replace old gallery data with new gallery data', 'allow' => 'Add duplicates to database'); echo OptionTags($duplicates, $_REQUEST['duplicates']); ?> </select> </div> </fieldset> <div class="centered margin-top"> <button type="submit">Import Galleries</button> </div> </div> <input type="hidden" name="r" value="txGalleryImport"> <input type="hidden" name="analyzed" value="1"> <input type="hidden" name="filename" value="<?php echo htmlspecialchars($filename); ?> ">
<label for="allow_scan" class="plain-label">Scan</label> <?php echo CheckBox('allow_preview', 'checkbox', '1', $gallery['allow_preview']); ?> <label for="allow_preview" class="plain-label">Thumb</label> </span> </td> <td align="right" width="70" class="bold"> Format </td> <td> <select name="format"> <?php $formats = array('pictures' => 'Pictures', 'movies' => 'Movies'); echo OptionTags($formats, $gallery['format']); ?> </select> </td> </tr> <tr> <td align="right" width="80" class="bold" valign="top" style="padding-top: 3px"> Categories </td> <td width="425"> <div id="category_selects"> <?php $all_categories =& $DB->FetchAll('SELECT * FROM `tx_categories` ORDER BY `name`'); $categories =& CategoriesFromTags($gallery['categories']); foreach ($categories as $category) {
" /> <?php if ($editing) { ?> <br /> Leave blank unless you want to change this account's password <?php } ?> </div> <div class="fieldgroup"> <label for="status">Status:</label> <select name="status" id="status"> <?php $statuses = array('unconfirmed' => 'Unconfirmed', 'pending' => 'Pending', 'active' => 'Active', 'suspended' => 'Suspended'); echo OptionTags($statuses, $_REQUEST['status']); ?> </select> </div> <div class="fieldgroup"> <label for="name">Name:</label> <input type="text" name="name" id="name" size="30" value="<?php echo $_REQUEST['name']; ?> " /> </div> <div class="fieldgroup"> <label for="email">E-mail Address:</label> <input type="text" name="email" id="email" size="40" value="<?php
</div> </fieldset> <input type="hidden" name="r" value="lxLinkSearchAndSet"> </form> <form action="index.php" method="POST" id="form" onsubmit="return confirm('Are you sure you want to do this?');"> <fieldset> <legend>Search and Delete</legend> <div class="fieldgroup"> <label for="sdfield">Find:</label> <select name="field" id="sdfield"> <?php echo OptionTags($fields_search, $_REQUEST['field']); ?> </select> <select id="search_type" name="search_type"> <option value="contains">Contains</option> <option value="matches">Matches</option> <option value="starts">Starts With</option> <option value="less">Less Than</option> <option value="greater">Greater Than</option> <option value="between">Between</option> <option value="empty">Empty</option> <option value="any">Any Value</option> </select><br /> <textarea name="find" id="find" rows="2" cols="70"></textarea> </div>