Esempio n. 1
0
<?php 
if (isset($error)) {
    echo $error;
}
?>
<form method="post" action="">
	<p>
		<label class="kop2" for="cont1"><?php 
echo $lang['changepass']['old'];
?>
</label>
		<input name="cont1" id="cont1" type="password"/>
	</p>
	<p>
		<label class="kop2" for="cont2"><?php 
echo $lang['changepass']['new'];
?>
</label>
		<input name="cont2" id="cont2" type="password" />
	</p>
	<p>
		<label class="kop2" for="cont3"><?php 
echo $lang['changepass']['repeat'];
?>
</label>
		<input name="cont3" id="cont3" type="password" />
	</p>
	<?php 
show_common_submits('?action=options');
?>
</form>
Esempio n. 2
0
function albums_page_admin_editimage()
{
    global $cont1, $cont2, $lang, $var1, $var2;
    //Check if an image was defined, and if the image exists.
    if (isset($var2) && file_exists(ALBUMS_DIR . '/' . $var1 . '/' . albums_get_php_filename($var1, $var2))) {
        //Include the image-information.
        include ALBUMS_DIR . '/' . $var1 . '/' . albums_get_php_filename($var1, $var2);
        ?>
		<form name="form1" method="post" action="">
			<p>
				<label class="kop2" for="cont1"><?php 
        echo $lang['general']['title'];
        ?>
</label>
				<input name="cont1" id="cont1" type="text" value="<?php 
        echo $name;
        ?>
" />
			</p>
			<p>
				<label class="kop2" for="cont2"><?php 
        echo $lang['general']['description'];
        ?>
</label>
				<textarea cols="50" rows="5" name="cont2" id="cont2"><?php 
        echo str_replace('<br />', '', $info);
        ?>
</textarea>
			</p>
			<?php 
        show_common_submits('?module=albums&amp;page=editalbum&amp;var1=' . $var1);
        ?>
		</form>
		<?php 
        //When the information is posted:
        if (isset($_POST['save'])) {
            //Sanitize data.
            $cont1 = sanitize($cont1);
            $cont2 = sanitize($cont2);
            $cont2 = nl2br($cont2);
            //Then save the image information.
            $data['name'] = $cont1;
            $data['info'] = $cont2;
            save_file(ALBUMS_DIR . '/' . $var1 . '/' . albums_get_php_filename($var1, $var2), $data);
            redirect('?module=albums&page=editalbum&var1=' . $var1, 0);
        }
    }
}
Esempio n. 3
0
    echo 'checked="checked"';
}
?>
 value="no" /></td>
			</tr>

			<tr>
				<td><label for="sub_page"><?php 
echo $lang['page']['sub_page'];
?>
</label></td>
				<td> <?php 
if (isset($_GET['page'])) {
    show_subpage_select('sub_page', $_GET['page']);
} else {
    show_subpage_select('sub_page');
}
?>
</td>
			</tr>

			<?php 
run_hook('admin_save_page_beforepost');
?>
			</table>
		</div>
	</div>
	<?php 
show_common_submits('?action=page', true);
?>
</form>
Esempio n. 4
0
			<p>
				<label class="kop2" for="cont1"><?php 
        echo $lang['general']['title'];
        ?>
</label>
				<input name="cont1" id="cont1" type="text" />
			</p>
			<p>
				<label class="kop2" for="cont2"><?php 
        echo $lang['general']['contents'];
        ?>
</label>
				<textarea name="cont2" id="content-form" class="tinymce" cols="70" rows="20"></textarea>
			</p>
			<?php 
        show_common_submits('?action=step3');
        ?>
		</form>
		<?php 
        include_once 'data/inc/footer.php';
    } elseif (isset($_GET['action']) && $_GET['action'] == 'step4') {
        install_done();
        //Set pagetitle
        $titelkop = $lang['install']['title'];
        include_once 'data/inc/header2.php';
        ?>
			<p>
				<strong><?php 
        echo $lang['install']['success'];
        ?>
</strong>
Esempio n. 5
0
function blog_page_admin_newpost()
{
    global $lang, $var1, $cont1, $cont2, $cont3;
    //If form is posted...
    if (isset($_POST['save']) || isset($_POST['save_exit'])) {
        if (seo_url($cont1)) {
            //Save blogpost.
            $seoname = blog_save_post($cont1, $cont2, $cont3);
            //Redirect user.
            if (isset($_POST['save'])) {
                redirect('?module=blog&page=editpost&var1=' . $seoname, 0);
            } else {
                redirect('?module=blog', 0);
            }
        } else {
            $error = show_error($lang['page']['no_title'], 1, true);
        }
    }
    if (isset($error)) {
        echo $error;
    }
    ?>
		<div class="rightmenu">
			<p><?php 
    echo $lang['page']['items'];
    ?>
</p>
			<?php 
    show_link_insert_box();
    show_image_insert_box('images');
    ?>
		</div>
		<form method="post" action="">
			<p>
				<label class="kop2" for="cont1"><?php 
    echo $lang['general']['title'];
    ?>
</label>
				<input name="cont1" id="cont1" type="text" />
			</p>
			<p>
			<label class="kop2" for="cont2"><?php 
    echo $lang['blog']['category'];
    ?>
</label>
			<select name="cont2" id="cont2">
				<option value=""><?php 
    echo $lang['blog']['choose_cat'];
    ?>
</option>
				<?php 
    //If there are categories.
    if ($categories = blog_get_categories()) {
        foreach ($categories as $category) {
            echo '<option value="' . $category['seoname'] . '">' . $category['title'] . '</option>';
        }
        unset($key);
    }
    ?>
			</select>
			</p>
			<p>
				<label class="kop2" for="cont3"><?php 
    echo $lang['general']['contents'];
    ?>
</label>
				<textarea class="<?php 
    if (defined('WYSIWYG_TEXTAREA_CLASS')) {
        echo WYSIWYG_TEXTAREA_CLASS;
    }
    ?>
" name="cont3" id="cont3" cols="70" rows="20"></textarea>
			</p>
			<?php 
    show_common_submits('?module=blog', true);
    ?>
		</form>
	<?php 
}
Esempio n. 6
0
                }
                if (isset($currentsetting) && $currentsetting == $counting_modules) {
                    echo '<option value="' . $counting_modules . '" selected="selected">' . $counting_modules . '</option>';
                } else {
                    echo '<option value="' . $counting_modules . '">' . $counting_modules . '</option>';
                }
                //Higher counting_modules.
                $counting_modules++;
                unset($currentsetting);
            }
            ?>
												</select>
											</td>
										</tr>
									<?php 
        }
    }
    unset($module);
    ?>
					</table>
				</td>
			</tr>
		</table>
		</div>
	<?php 
}
unset($index);
//Show submit button etc.
show_common_submits('?action=managemodules');
?>
</form>