Пример #1
0
?>
		<a href="http://www.zenphoto.org/news/category/extensions" alt="Zenphoto extensions section"> <?php 
echo gettext('Find more plugins');
?>
</a>
	</p>
	<p class='notebox'><?php 
echo gettext("<strong>Note:</strong> Support for a particular plugin may be theme dependent! You may need to add the plugin theme functions if the theme does not currently provide support.");
?>
	</p>
	<form class="dirty-check" id="form_plugins" action="?action=saveplugins&amp;page=plugins&amp;tab=<?php 
echo html_encode($subtab);
?>
" method="post" autocomplete="off">
		<?php 
XSRFToken('saveplugins');
?>
		<input type="hidden" name="saveplugins" value="yes" />
		<input type="hidden" name="subpage" value="<?php 
echo $subpage;
?>
" />
		<p class="buttons">
			<button type="submit" value="<?php 
echo gettext('Apply');
?>
"><img src="images/pass.png" alt="" /><strong><?php 
echo gettext("Apply");
?>
</strong></button>
			<button type="reset" value="<?php 
Пример #2
0
    ?>
						</form>

					</div>
					<!-- end of tab_plugin div -->
					<?php 
}
if ($subtab == 'security' && zp_loggedin(ADMIN_RIGHTS)) {
    ?>
					<div id="tab_security" class="tabbox">
						<?php 
    zp_apply_filter('admin_note', 'options', $subtab);
    ?>
						<form class="dirty-check" id="form_options" action="?action=saveoptions" method="post" autocomplete="off">
							<?php 
    XSRFToken('saveoptions');
    ?>
							<input type="hidden" name="savesecurityoptions" value="yes" />
							<table class="options">
								<tr>
									<td colspan="3">
										<p class="buttons">
											<button type="submit" value="<?php 
    echo gettext('save');
    ?>
"><img src="images/pass.png" alt="" /><strong><?php 
    echo gettext("Apply");
    ?>
</strong></button>
											<button type="reset" value="<?php 
    echo gettext('reset');
Пример #3
0
			<div id="tab_users" class="tabbox">
				<?php 
zp_apply_filter('admin_note', 'users', $subtab);
$groups = array();
$subscription = 86400 * getOption('user_expiry_interval');
$now = time();
$warnInterval = $now + getOption('user_expiry_warn_interval') * 86400;
?>
				<p>
				<?php 
echo gettext("Manage user expiry.");
?>
				</p>
				<form action="?action=expiry" method="post" autocomplete="off" >
					<?php 
XSRFToken('expiry');
?>
					<span class="buttons">
						<button type="submit" title="<?php 
echo gettext("Apply");
?>
"><img src="../../images/pass.png" alt="" /><strong><?php 
echo gettext("Apply");
?>
</strong></button>
						<button type="reset" title="<?php 
echo gettext("Reset");
?>
"><img src="../../images/reset.png" alt="" /><strong><?php 
echo gettext("Reset");
?>
Пример #4
0
            echo ' style="display:none"';
        }
        ?>
>
								<form class="dirty-check" name="publish_pages" action="" method="post"><?php 
        echo gettext('Pages:');
        ?>
									<label id="autocheck_page">
										<input type="checkbox" name="checkAllpage" onclick="$('.pagecheck').prop('checked', checked);" />
										<span id="autotext_page"><?php 
        echo gettext('all');
        ?>
</span>
									</label>
									<?php 
        XSRFToken('publishContent');
        ?>
									<input type="hidden" name="publish" value="pages" />
									<ul class="schedulealbumchecklist">
										<?php 
        echo $output;
        ?>
									</ul>
									<br class="clearall" />
									<div class="buttons pad_button">
										<button class="tooltip" type="submit" title="<?php 
        echo gettext("Publish waiting pages.");
        ?>
">
											<img src="<?php 
        echo WEBPATH . '/' . ZENFOLDER;
Пример #5
0
    foreach ($owners[THEMEFOLDER] as $theme => $v) {
        if (is_array($v)) {
            $owners[THEMEFOLDER][] = $theme;
            unset($owners[THEMEFOLDER][$theme]);
        }
    }
    $owners[THEMEFOLDER] = array_unique($owners[THEMEFOLDER]);
    natcasesort($owners[THEMEFOLDER]);
}
if (empty($owners)) {
    echo gettext('No option owners have been located.');
} else {
    ?>
						<form class="dirtylistening" onReset="setClean('purge_options_form');" id="purge_options_form" action="?page=options&tab=purge" method="post" >
							<?php 
    XSRFToken('purgeOptions');
    ?>
							<input type="hidden" name="purge" value="1" />.
							<p class = "buttons" >
								<button type="submit" value="<?php 
    echo gettext('Apply');
    ?>
"> <img src="<?php 
    echo WEBPATH . '/' . ZENFOLDER;
    ?>
/images/pass.png" alt="" /> <strong><?php 
    echo gettext("Apply");
    ?>
 </strong></button >
								<button type="" "reset" value="<?php 
    echo gettext('reset');
Пример #6
0
?>
</p>
						</div>
					</td>

					<td valign='top'>
						<h2 class="h2_bordered_edit"><?php 
echo gettext("New tags");
?>
</h2>
						<form class="dirtylistening" onReset="setClean('form_newtags');"  name="new_tags" id="form_newtags" action="?newtags=true&amp;tagsort=<?php 
echo html_encode($tagsort);
?>
" method="post" autocomplete="off" >
							<?php 
XSRFToken('new_tags');
?>
							<div class="box-tags-unpadded">
								<ul class="tagnewlist">
									<?php 
for ($i = 0; $i < 40; $i++) {
    ?>
										<li>
											<input id="new_tag_<?php 
    echo $i;
    ?>
" name="new_tag_<?php 
    echo $i;
    ?>
" type="text" size='33'/>
										</li>
Пример #7
0
zp_apply_filter('admin_note', 'categories', $subtab);
foreach ($reports as $report) {
    echo $report;
}
?>
			<h1>
			<?php 
echo gettext('Categories');
?>
<span class="zenpagestats"><?php 
printCategoriesStatistic();
?>
</span></h1>
			<form action="admin-categories.php?page=news&amp;tab=categories" method="post" id="checkeditems" name="checkeditems" onsubmit="return confirmAction();">
				<?php 
XSRFToken('checkeditems');
?>
				<input	type="hidden" name="action" id="action" value="checkeditems" />
				<input name="processcheckeditems" type="hidden" value="apply" />
				<p class="buttons">
					<button class="serialize" type="submit" title="<?php 
echo gettext('Apply');
?>
">
						<img src="../../images/pass.png" alt="" /><strong><?php 
echo gettext('Apply');
?>
</strong>
					</button>
					<?php 
if (zp_loggedin(MANAGE_ALL_NEWS_RIGHTS)) {
Пример #8
0
}
$subalbums = $search->getAlbums(0);
foreach ($subalbums as $folder) {
    getSubalbumImages($folder);
}
$albumname = sanitize_path($albumname);
$albumname = seoFriendly($albumname);
$old = '';
while ($old != $albumname) {
    $old = $albumname;
    $albumname = str_replace('--', '-', $albumname);
}
?>
<form class="dirty-check" action="?savealbum" method="post" autocomplete="off">
	<?php 
XSRFToken('savealbum');
?>
	<input type="hidden" name="savealbum" value="yes" />
	<table>
		<tr>
			<td><?php 
echo gettext("Album name:");
?>
</td>
			<td>
				<input type="text" size="40" name="album" value="<?php 
echo html_encode($albumname);
?>
" />
			</td>
		</tr>
Пример #9
0
?>
px; height: <?php 
echo $sizedheight;
?>
px; margin-bottom: 10px; border: 4px solid gray;">
						<!-- This is the image we're attaching Jcrop to -->
						<img src="<?php 
echo $imageurl;
?>
" id="cropbox" />
					</div>

					<!-- This is the form that our event handler fills -->
					<form class="dirty-check" name="crop" id="crop" action="?crop" onsubmit="return checkCoords();">
						<?php 
XSRFToken('thumb_crop');
?>
						<input type="hidden" size="4" id="x" name="x" value="<?php 
echo $iX;
?>
" />
						<input type="hidden" size="4" id="y" name="y" value="<?php 
echo $iY;
?>
" />
						<input type="hidden" size="4" id="x2" name="x2" value="<?php 
echo $iX + $iW;
?>
" />
						<input type="hidden" size="4" id="y2" name="y2" value="<?php 
echo $iY + $iH;
Пример #10
0
?>
		<div id="content">
			<?php 
printSubtabs();
?>
			<div id="tab_deprecated" class="tabbox">
				<h1><?php 
echo gettext("Locate calls on deprecated functions.");
?>
</h1>
				<?php 
zp_apply_filter('admin_note', 'development', '');
?>
				<form action="?action=search" method="post">
					<?php 
XSRFToken('deprecated');
?>
					<select name="target">
						<option value=1<?php 
if ($selected <= 1) {
    echo ' selected="selected"';
}
?>
>
							<?php 
echo gettext('In Themes');
?>
						</option>
						<option value=2<?php 
if ($selected == 2) {
    echo ' selected="selected"';
Пример #11
0
/, 'title="<?php 
echo gettext('Show');
?>
"');
				$('#' + theme + '_list').hide();
			}
			$('#' + theme + '_arrow').html(html);
		}
		//]]> -->
	</script>
	<form class="dirty-check" name="size_selections" action="?select&album=<?php 
echo $alb;
?>
" method="post">
		<?php 
XSRFToken('cacheImages');
?>
		<ol class="no_bullets">
			<?php 
if (getOption('cache_full_image') && (!is_array($enabled) || in_array('*', $enabled))) {
    if (is_array($enabled)) {
        unset($enabled[array_search('*', $enabled)]);
        $checked = ' checked="checked" disabled="disabled"';
    } else {
        $checked = '';
    }
    $cachesizes++;
    ?>
				<li>
					<?php 
    if (!is_array($enabled)) {
Пример #12
0
<?php 
    if ($totalpages > 1) {
        ?>
	<div align="center">
	<?php 
        adminPageNav($pagenum, $totalpages, 'admin-comments.php', $fulltexturl);
        ?>
	</div>
	<?php 
    }
    ?>

<form name="comments" action="?action=deletecomments" method="post"	onsubmit="return confirmAction();">
	<?php 
    XSRFToken('deletecomment');
    ?>
<input type="hidden" name="subpage" value="<?php 
    echo html_encode($pagenum);
    ?>
" />
<p class="buttons"><button type="submit" title="<?php 
    echo gettext("Apply");
    ?>
"><img src="images/pass.png" alt="" /><strong><?php 
    echo gettext("Apply");
    ?>
</strong></button></p>
<p class="buttons">
<?php 
    if (!$fulltext) {
Пример #13
0
    case 'assignments':
        $groups = array();
        foreach ($adminordered as $user) {
            if (!$user['valid'] && $user['name'] == 'group') {
                $groups[] = $user;
            }
        }
        ?>
						<p>
							<?php 
        echo gettext("Assign users to groups.");
        ?>
						</p>
						<form action="?action=saveauserassignments" method="post" autocomplete="off" >
							<?php 
        XSRFToken('saveauserassignments');
        ?>
							<p class="buttons">
							<button type="submit" title="<?php 
        echo gettext("Apply");
        ?>
"><img src="../../images/pass.png" alt="" /><strong><?php 
        echo gettext("Apply");
        ?>
</strong></button>
							<button type="reset" title="<?php 
        echo gettext("Reset");
        ?>
"><img src="../../images/reset.png" alt="" /><strong><?php 
        echo gettext("Reset");
        ?>
Пример #14
0
function upload_form($uploadlimit)
{
    global $upload_extensions, $_zp_current_admin_obj;
    $navigator_user_agent = isset($_SERVER['HTTP_USER_AGENT']) ? strtolower($_SERVER['HTTP_USER_AGENT']) : '';
    if (strpos($navigator_user_agent, 'opera') !== false && strpos($navigator_user_agent, 'windows') !== false) {
        // Opera: Windows
        $sel = 0;
    } else {
        if (strpos($navigator_user_agent, 'applewebki') !== false && strpos($navigator_user_agent, 'windows') !== false) {
            // Safari: Windows
            $sel = 1;
        } else {
            if (strpos($navigator_user_agent, 'msie') !== false) {
                // Internet Explorer
                $sel = 0;
            } else {
                //	fully compliant browser
                $sel = 3;
            }
        }
    }
    switch ($sel) {
        case 0:
            //	no drag, no multiple select
            $usage = gettext('Click on the <em>Select files</em> button to use the file browser to select each file.');
            break;
        case 1:
            //	drag but no multiple select
            $usage = gettext('You may choose a file by dragging it onto <em>Select files</em> button. Or you can click on the button and use your file browser.');
            break;
        case 2:
            //	no drag, but multiple select
            $useage = gettext('Click on the <em>Select files</em> button to use the file browser to select files.');
            break;
        case 3:
            //	drag and multiple select
            $usage = gettext('You may choose files by dragging them onto <em>Select files</em> button. Or you can click on the button and use your file browser.');
            break;
    }
    ?>

	<form id="file_upload" action="uploader.php" method="POST" enctype="multipart/form-data">
    <input type="file" name="file" multiple />
    <button>Upload</button>
    <div><?php 
    echo gettext("Select files");
    ?>
</div>
		<?php 
    XSRFToken('upload');
    ?>
		<input type="hidden" name="auth" id="auth" value="<?php 
    echo $_zp_current_admin_obj->getPass();
    ?>
" />
		<input type="hidden" name="id" id="id" value="<?php 
    echo $_zp_current_admin_obj->getID();
    ?>
" />
		<input type="hidden" name="http_publishalbum" id="http_publishalbum" value="1" />
		<input type="hidden" name="http_albumtitle" id="http_albumtitle" value="" />
		<input type="hidden" name="http_folder" id="http_folder" value="/" />
	</form>
	<table id="files"></table>
	<p class="buttons" id="fileUploadbuttons" style="display: none;">
		<button id="start_uploads"><img src="images/pass.png" alt="" /><?php 
    echo gettext("Upload");
    ?>
</button>
		<button id="cancel_uploads" ><img src="images/fail.png" alt="" /><?php 
    echo gettext("Cancel");
    ?>
</button>
	</p>
	<br clear="all">
	<script type="text/javascript">
		var filecount = 0;
		var beforesendcount = 0;
		var uploadcount = 0;
		var uploaderror = false;

		$('#start_uploads').click(function () {
			$('#http_publishalbum').val($('#publishalbum').val());
			$('#http_albumtitle').val($('#albumtitle').val());
			$('#http_folder').val($('#folderdisplay').val());
			$('.file_upload_start button').click();
		});

		$('#cancel_uploads').click(function () {
			$('.file_upload_cancel button').click();
			filecount = 0;
			beforesendcount = 0;
			uploadcount = 0;
			uploaderror = false;
			$('#files').html('');
		});
		$(function () {
		    $('#file_upload').fileUploadUI({
						url: '<?php 
    echo WEBPATH . '/' . ZENFOLDER . '/' . basename(dirname(__FILE__));
    ?>
/uploader.php',
		        uploadTable: $('#files'),
		        downloadTable: $('#files'),
		        buildUploadRow: function (files, index) {
							var rowCount = $('#files').attr('rows').length;
							if (filecount == 0 && rowCount > 0) {	//	clear out any error indicators
								$('#files').html('');
							}
							if ( typeof( window[ 'uploadfilelimit' ] ) != "undefined" ) {
								if ($('#files').attr('rows').length >= uploadfilelimit) {
									if (rowCount = uploadfilelimit) {
										alert('<?php 
    echo gettext('You have exceeded the file upload limit');
    ?>
');
									}
									return null;
								}
							}
							filecount ++;
							return $('<tr><td class="file_upload_preview"><\/td>' +
		                '<td>' + files[index].name + '<\/td>' +
		                '<td class="file_upload_progress"><div><\/div><\/td>' +
		                '<td class="file_upload_start">' +
		                '<button class="ui-state-default ui-corner-all" title="Start Upload" style="display:none">' +
		                '<span class="ui-icon ui-icon-circle-arrow-e">Start Upload<\/span>' +
		                '<\/button><\/td>' +
		                '<td class="file_upload_cancel">' +
		                '<button class="ui-state-default ui-corner-all" title="Cancel">' +
		                '<span class="ui-icon ui-icon-cancel">Cancel<\/span>' +
		                '<\/button><\/td><\/tr>');
		        },
				    beforeSend: function (event, files, index, xhr, handler, callBack) {
							// Filter the filename extension for our test,
							var regexp = <?php 
    $list = implode(')|(', $upload_extensions);
    echo '/\\.(' . $list . ')$/i';
    ?>
;
							if (!regexp.test(files[index].name)) {
								handler.uploadRow.find('.file_upload_progress').html('<span style="color:red"><?php 
    echo gettext('ONLY SUPPORTED FILETYPES ALLOWED!');
    ?>
</span>');
								return;
							}

			        if (files[index].size > <?php 
    echo $uploadlimit;
    ?>
) {
								handler.uploadRow.find('.file_upload_progress').html('<span style="color:red"><?php 
    echo gettext('FILE TOO BIG!');
    ?>
</span>');
								return;
			        }
							handler.uploadRow.find('.file_upload_start button').click(callBack)
				    },
						onComplete: function (event, files, index, xhr, handler) {
							uploadcount++;
							if (uploadcount >= filecount && !uploaderror) {
								<?php 
    if (zp_loggedin(ALBUM_RIGHTS | MANAGE_ALL_ALBUM_RIGHTS)) {
        ?>
									launchScript('admin-edit.php',['page=edit','subpage=1','tab=imageinfo','album='+encodeURIComponent($('#folderdisplay').val()),'uploaded=1','albumimagesort=id_desc']);
									<?php 
    } else {
        ?>
									launchScript('admin-upload.php',['uploaded=1']);
									<?php 
    }
    ?>
							}
							filecount = 0;
							beforesendcount = 0;
							uploadcount = 0;
							uploaderror = false;
						},
		        buildDownloadRow: function (file) {
							if (file.error) {
								uploaderror = true;
								return $('<tr><td><img src="images/fail.png" alt="" />' + file.name + '<\/td><\/tr>');
							} else {
								return $('<tr><td><img src="images/pass.png" alt="" />' + file.name + '<\/td><\/tr>');
							}
		        }
		    });
		});
	</script>
	<p class="notebox"><?php 
    echo $usage;
    ?>
</p>
	<p id="uploadswitch"><?php 
    echo gettext('Try the <a href="javascript:switchUploader(\'admin-upload.php?uploadtype=uploadify\');" >flash file upload</a>');
    ?>
</p>
	<?php 
}
Пример #15
0
</h2>
		<div id="overview-maint_l">
		<?php 
        foreach ($buttonlist as $button) {
            $button_icon = $button['icon'];
            ?>
			<form name="<?php 
            echo $button['formname'];
            ?>
"	action="<?php 
            echo $button['action'];
            ?>
">
				<?php 
            if (isset($button['XSRFTag']) && $button['XSRFTag']) {
                XSRFToken($button['XSRFTag']);
            }
            ?>
				<?php 
            echo $button['hidden'];
            ?>
				<div class="buttons">
					<button class="tooltip" type="submit"	title="<?php 
            echo $button['title'];
            ?>
" <?php 
            if (!$button['enable']) {
                echo 'disabled="disabled"';
            }
            ?>
>
Пример #16
0
zp_apply_filter('admin_note', 'cache', '');
?>
	<p class="notebox">
		<?php 
echo gettext('This utility scans the database for images references that have been stored there.') . ' ';
echo gettext('If an image processor URI is discovered it will be converted to a cache file URI.') . ' ';
echo gettext('If the cache file for the image does not exist, a caching image reference will be made for the image.');
?>
	</p>
	<?php 
$tables = array('albums' => array('desc'), 'images' => array('desc'), 'pages' => array('content', 'extracontent'), 'news' => array('content', 'extracontent'));
?>
	<form name="size_selections" action="?select" method="post">
		<?php 
$refresh = $imageprocessor = $found = $fixed = $fixedFolder = 0;
XSRFToken('cacheDBImages');
$watermarks = getWatermarks();
$missingImages = NULL;
foreach ($tables as $table => $fields) {
    foreach ($fields as $field) {
        $sql = 'SELECT * FROM ' . prefix($table) . ' WHERE `' . $field . '` REGEXP "<img.*src\\s*=\\s*\\".*i.php((\\.|[^\\"])*)"';
        $result = query($sql);
        if ($result) {
            while ($row = db_fetch_assoc($result)) {
                $imageprocessor++;
                preg_match_all('|\\<\\s*img.*?\\ssrc\\s*=\\s*"(.*i\\.php\\?([^"]*)).*/\\>|', $row[$field], $matches);
                foreach ($matches[1] as $uri) {
                    $params = parse_url(html_decode($uri));
                    if (array_key_exists('query', $params)) {
                        parse_str($params['query'], $query);
                        if (!file_exists(getAlbumFolder() . $query['a'] . '/' . $query['i'])) {
Пример #17
0
							<div class="messagebox fade-message">
								<h2><?php 
            echo $messagebox;
            ?>
</h2>
							</div>
							<?php 
        }
    }
    ?>
					<form class="dirty-check" action="?page=edit&amp;album=<?php 
    echo $album->getFileName();
    ?>
&amp;saved&amp;tab=sort" method="post" name="sortableListForm" id="sortableListForm">
						<?php 
    XSRFToken('save_sort');
    ?>
						<?php 
    printBulkActions($checkarray_images, true);
    ?>
						<script type="text/javascript">
							// <!-- <![CDATA[
							function postSort(form) {
								$('#sortableList').val($('#images').sortable('serialize'));
								form.submit();
							}
							// ]]> -->
						</script>

						<p class="buttons">
							<a href="<?php 
Пример #18
0
						</div>
						<br class="clearall" />
						<br class="clearall" />
					</form>
					<br />
					<br />
					<?php 
}
$filelist = safe_glob(SERVERPATH . "/" . BACKUPFOLDER . '/*.zdb');
if (count($filelist) <= 0) {
    echo gettext('You have not yet created a backup set.');
} else {
    ?>
					<form name="restore_gallery" action="">
						<?php 
    XSRFToken('backup');
    ?>
						<?php 
    echo gettext('Select the database restore file:');
    ?>
						<br />
						<select id="backupfile" name="backupfile">
							<?php 
    generateListFromFiles('', SERVERPATH . "/" . BACKUPFOLDER, '.zdb', true);
    ?>
						</select>
						<input type="hidden" name="restore" value="true" />
						<div class="buttons pad_button" id="dbrestore">
							<button class="fixedwidth tooltip" type="submit" title="<?php 
    echo gettext("Restore the tables in your database from a previous backup.");
    ?>
Пример #19
0
							<p class="errorbox"><?php 
            echo gettext('<strong>ERROR: </strong>The Zenpage CMS plugin is not enabled.');
            ?>
</p>
							<?php 
            die;
        }
        ?>

						<h2><?php 
        echo gettext('Please enter your Wordpress database details:');
        ?>
</h2>
						<form action="" method="post" name="wordpress">
							<?php 
        XSRFToken('wordpress');
        ?>
							<input type="text" value="wordpress" id="dbname" name="dbname" /> <label for="dbname"><?php 
        echo gettext("Database name");
        ?>
</label><br />
							<input type="text" value="root" id="dbuser" name="dbuser" /> <label for="dbuser"><?php 
        echo gettext("Database user");
        ?>
</label><br />
							<input type="text" value="root" id="dbpass" name="dbpass" /> <label for="dbpass"><?php 
        echo gettext("Database password");
        ?>
</label><br />
							<input type="text" value="localhost" id="dbhost" name="dbhost" /> <label for="dbhost"><?php 
        echo gettext("Database host");
Пример #20
0
        echo gettext("Thumbnail reset query failed");
        ?>
</h2>
						</div>
						<?php 
    }
}
$current = getOption('AlbumThumbSelect');
$selections = array();
foreach ($_zp_albumthumb_selector as $key => $selection) {
    $selections[$selection['desc']] = $key;
}
?>
				<form name="set_random" action="">
					<?php 
XSRFToken('reset_thumbs');
?>
					<div class="buttons pad_button" id="set_all">
						<button class="fixedwidth" type="submit"
										title="<?php 
echo gettext("Sets all album thumbs to the selected criteria");
?>
">
							<img src="<?php 
echo $webpath;
?>
images/burst.png" alt="" />
							<?php 
echo gettext("Set all albums to");
?>
						</button>
Пример #21
0
											$('input[type="submit"]').attr('disabled', 'disabled');
											$('input[type="reset"]').attr('disabled', 'disabled');
										}, false);
									</script>
									<?php 
        }
        ?>
								<form class="dirtylistening" onReset="setClean('form_cmsItemEdit');" method="post" name="update" id="form_cmsItemEdit" action="admin-edit.php?<?php 
        echo $admintype;
        ?>
&amp;update<?php 
        echo $page;
        ?>
" autocomplete="off">
									<?php 
        XSRFToken('update');
    }
    if (isset($_GET['subpage'])) {
        ?>
									<input type="hidden" name="subpage" id="subpage" value="<?php 
        echo html_encode(sanitize($_GET['subpage']));
        ?>
" />

									<?php 
    }
    ?>
								<input type="hidden" name="id" value="<?php 
    echo $result->getID();
    ?>
" />
Пример #22
0
					}
				} else {
					jQuery('#'+id).css({color:'black'});
					obj.checked = true;
				}
			}
			function publishAll(id,what) {
				$('.album_'+id+'_'+what).attr('checked','checked');
			}
			// ]]> -->
		</script>
		<form name="publish" action="" method="post"><?php 
        echo gettext('Images:');
        ?>
		<?php 
        XSRFToken('schedule_content');
        ?>
		<input type="hidden" name="publish_images" value="true" />
		<ul class="scheduleimagechecklist">
		<?php 
        foreach ($publish_images_list as $key => $imagelist) {
            $album = new Album($gallery, $key);
            $albumid = $album->get('id');
            $imagelist = array_flip($imagelist);
            natcasesort($imagelist);
            $imagelist = array_flip($imagelist);
            ?>
			<li>
				<p class="scheduleimagechecklisthead">
					<a href="javascript:publishAll(<?php 
            echo $albumid;
Пример #23
0
							var newid = '#' + lang + '_' + id;
							$(oldid).attr('class', '');
							if (oldid == newid) {
								$('#admin_language_' + id).val('');
							} else {
								$(newid).attr('class', 'currentLanguage');
								$('#admin_language_' + id).val(lang);
							}
						}
					</script>
					<form class="dirty-check" action="?action=saveoptions<?php 
echo str_replace('&', '&amp;', $ticket);
?>
" method="post" autocomplete="off" onsubmit="return checkNewuser();" >
						<?php 
XSRFToken('saveadmin');
?>
						<input type="hidden" name="saveadminoptions" value="yes" />
						<input type="hidden" name="subpage" value="<?php 
echo $subpage;
?>
" />
						<?php 
if (empty($alterrights)) {
    ?>
							<input type="hidden" name="alter_enabled" value="1" />
							<?php 
}
?>
						<p class="buttons">
							<button type="submit" value="<?php 
Пример #24
0
						<?php 
            }
            ?>
					<p>
						<?php 
            echo gettext('Select an album to edit its description and data, or <a href="?page=edit&amp;massedit">mass-edit</a> all gallery level albums.');
            ?>
					</p>

					<?php 
            consolidatedEditMessages('');
            printEditDropdown('', array('1', '2', '3', '4', '5'), $album_nesting);
            ?>
					<form class="dirty-check" action="?page=edit&amp;action=savealbumorder" method="post" name="sortableListForm" id="sortableListForm" onsubmit="return confirmAction();">
									<?php 
            XSRFToken('savealbumorder');
            ?>
						<p class="buttons">
							<?php 
            if ($album_nesting > 1 || zp_loggedin(MANAGE_ALL_ALBUM_RIGHTS)) {
                ?>
								<button class="serialize buttons" type="submit"><img src="images/pass.png" alt="" /><strong><?php 
                echo gettext("Apply");
                ?>
</strong></button>
								<?php 
            }
            if (zp_loggedin(MANAGE_ALL_ALBUM_RIGHTS)) {
                ?>
								<button type="button" onclick="javascript:newAlbum('', false);"><img src="images/folder.png" alt="" /><strong><?php 
                echo gettext('New album');
Пример #25
0
	<?php 
if ($file_to_edit) {
    ?>
		<div id="editor">
			<h2 class="h2_bordered"><?php 
    echo sprintf(gettext('File <tt>%s</tt> from theme %s'), html_encode(sanitize($_GET['file'])), html_encode($themes[$theme]['name']));
    ?>
</h2>
			<?php 
    if (!isset($messages['errorbox'])) {
        ?>

				<form class="dirtylistening" onReset="setClean('themeedit_form');" id="themeedit_form" method="post" action="">
					<?php 
        XSRFToken('edit_theme');
        ?>
					<p><textarea cols="70" rows="35" name="newcontent" id="newcontent"><?php 
        echo $file_content;
        ?>
</textarea></p>
					<input type="hidden" name="action" value="edit_file"/>
					<p class="buttons">
						<button type="submit" value="<?php 
        echo gettext('Update File');
        ?>
" title="<?php 
        echo gettext("Update File");
        ?>
"><img src="<?php 
        echo WEBPATH . '/' . ZENFOLDER;
Пример #26
0
		<?php 
    if ($totalpages > 1) {
        ?>
			<div align="center">
				<?php 
        adminPageNav($pagenum, $totalpages, '  admin-comments.php ', $fulltexturl);
        ?>
			</div>
			<?php 
    }
    ?>

		<form class="dirtylistening" onReset="setClean('form_commentlist');"  name="comments" id="form_commentlist" action="?action=applycomments" method="post" onsubmit="return confirmAction();" autocomplete="off">
			<?php 
    XSRFToken('applycomments');
    ?>
			<input type="hidden" name="subpage" value="<?php 
    echo html_encode($pagenum);
    ?>
" />
			<p class="buttons"><button type="submit"><img src="<?php 
    echo WEBPATH . '/' . ZENFOLDER;
    ?>
/images/pass.png" alt="" /><strong><?php 
    echo gettext("Apply");
    ?>
</strong></button></p>
			<p class="buttons">
				<?php 
    if ($fulltext) {
Пример #27
0
</option>
					</select>
					<?php 
} else {
    $add = '&amp;update';
}
?>
				<form class="dirtylistening" onReset="setClean('add');" autocomplete="off"  method="post" id="add" name="add" action="menu_tab_edit.php?save<?php 
echo $add;
if ($menuset) {
    echo '&amp;menuset=' . $menuset;
}
?>
" style="display: none">
							<?php 
XSRFToken('update_menu');
?>
					<input type="hidden" name="update" id="update" value="<?php 
echo html_encode($action);
?>
" />
					<input type="hidden" name="id" id="id" value="<?php 
echo $id;
?>
" />
					<input type="hidden" name="link-old" id="link-old" value="<?php 
echo html_encode($link);
?>
" />
					<input type="hidden" name="type" id="type" value="<?php 
echo $type;
Пример #28
0
" id="cropbox" />
						<p class="floatright">
							<?php 
echo sprintf(gettext('(<span id="new-width">%1$u</span> x <span id="new-height">%2$u</span> pixels)'), round($iW * ($width / $sizedwidth)), round($iH * ($height / $sizedheight)));
?>
						</p>
					</div>
					<span class="clearall" ></span>
					<?php 
printf(gettext('width:%1$s %2$s height:%3$s %4$s clear %5$s'), '<input type="text" id="aspect-ratio-width" name="aspect-ratio-width" value="" size="5" />', '&nbsp;<span id="aspect" ><a id="swap_button" href="javascript:swapAspect();" title="' . gettext('swap width and height fields') . '" > <img src="crop_image/swap.png"> </a></span>&nbsp;', '<input type="text" id="aspect-ratio-height" name="aspect-ratio-height" value="" size="5" />', '<a href="javascript:clearAspect();" title="' . gettext('clear width and height fields') . '" >', '</a>');
?>

					<!-- This is the form that our event handler fills -->
					<form class="dirty-check" name="crop" id="crop" action="?crop" onsubmit="return checkCoords();" autocomplete="off">
						<?php 
XSRFToken('crop');
?>
						<input type="hidden" size="4" id="x" name="x" value="<?php 
echo $iX;
?>
" />
						<input type="hidden" size="4" id="y" name="y" value="<?php 
echo $iY;
?>
" />
						<input type="hidden" size="4" id="x2" name="x2" value="<?php 
echo $iX + $iW;
?>
" />
						<input type="hidden" size="4" id="y2" name="y2" value="<?php 
echo $iY + $iH;
Пример #29
0
            ?>
"><?php 
            echo gettext('Send another mail');
            ?>
</a></p>
							<?php 
        }
    } else {
        ?>
						<h2><?php 
        echo gettext('Please enter the message you want to send.');
        ?>
</h2>
						<form class="dirtylistening" onReset="setClean('massmail');" id="massmail" action="?sendmail" method="post" accept-charset="UTF-8" autocomplete="off">
							<?php 
        XSRFToken('mailing_list');
        ?>
							<table>
								<tr>
									<td valign="top">
								<labelfor="subject"><?php 
        echo gettext('Subject:');
        ?>
</label><br />
									<input type="text" id="subject" name="subject" value="" size="70"<?php 
        echo $disabled;
        ?>
 /><br /><br />
									<label for="message"><?php 
        echo gettext('Message:');
        ?>
Пример #30
0
			</span>
		</form>
		<br class="clearall" />
		<br />
		<br />
		<form name="cloneZenphoto" action="<?php 
echo WEBPATH . '/' . ZENFOLDER . '/' . PLUGIN_FOLDER . '/cloneZenphoto/clone.php';
?>
">
			<?php 
XSRFToken('cloneZenphoto');
?>
			<input type="hidden" name="clone" value="true" />
			<input type="hidden" name="clonePath" id="clonePath" value="" />
			<?php 
XSRFToken('cloneZenphoto');
?>
			<div class="buttons pad_button" id="cloneZP">
			<button id="cloneButton" class="tooltip" type="submit" title=""<?php 
if (empty($folderlist)) {
    echo ' disabled="disabled"';
}
?>
 >
				<img src="<?php 
echo WEBPATH . '/' . ZENFOLDER;
?>
/images/folder.png" alt="" /> <?php 
echo gettext("Clone Zenphoto");
?>
			</button>