コード例 #1
0
ファイル: mygalleryadmin.php プロジェクト: noikiy/owaspbwa
 'ok' <?php 
_e('in the box', 'myGallery');
?>
)</i> <input type="text" size="3" name="deleteok" value="" />
</fieldset>
<p class="submit"><input type="submit" value="ok"></p></form><br /><br /><?php 
// show a gallery if one was selected switch opion should be used in future
if ($myaction == 'opengallery' or $myaction == 'modifygallery') {
    if ($showgallery) {
        $mg_options = get_option('mygalleryoptions');
        $thepictures = getmypictures($showgallery);
        $galleryname = getgalleryname($showgallery);
        $mypage_id = getgallerypageid($showgallery);
        $galdescrip = getgallerydescrip($showgallery);
        $previewpic = getpreviewpic($showgallery);
        $longname = getgallerylongname($showgallery);
        $galsortordernr = getgalleryordernr($showgallery);
        if (getgalleryexclude($showgallery)) {
            $mycheckbox_exclude = 'checked="checked"';
        }
        ?>
		<form name="pageform" id="post" method="post" action="admin.php?page=mygallery/myfunctions/mygalleryadmin.php" ENCTYPE="multipart/form-data">
		<div id="mgadmin" class="dbx-group" >
		<fieldset class="dbx-box">
		<h3 class="dbx-handle"><?php 
        _e('Gallery setting for', 'myGallery');
        ?>
 <i><?php 
        echo $galleryname;
        ?>
</i></h3>
コード例 #2
0
function myshowname($mydefault)
{
    global $mg_options;
    if ($_GET['gallery']) {
        $myid = getgalleryid($_GET['gallery']);
        $mystring = getgallerylongname($myid);
        if ($mg_options[longnames] and $mystring) {
            echo $mystring;
        } else {
            echo $_GET['gallery'];
        }
    } else {
        if ($_GET['picture_id']) {
            $myid = getgalleryidformpictureid($_GET['picture_id']);
            $mystring = getgallerylongname($myid);
            if ($mg_options[longnames] and $mystring) {
                echo $mystring;
            } else {
                echo getgalleryname($myid);
            }
        } else {
            echo $mydefault;
        }
    }
}