Ejemplo n.º 1
0
    $cid = '';
    if (isset($_POST['cid'])) {
        $cid = $_POST['cid'];
    }
    $display .= savelink(COM_applyFilter($_POST['lid']), COM_applyFilter($_POST['old_lid']), $cid, $_POST['categorydd'], $_POST['url'], $_POST['description'], $_POST['title'], COM_applyFilter($_POST['hits'], true), COM_applyFilter($_POST['owner_id'], true), COM_applyFilter($_POST['group_id'], true), $_POST['perm_owner'], $_POST['perm_group'], $_POST['perm_members'], $_POST['perm_anon']);
} else {
    if ($mode == 'editsubmission') {
        $display .= editlink($mode, COM_applyFilter($_GET['id']));
        $display = COM_createHTMLDocument($display, array('pagetitle' => $LANG_LINKS_ADMIN[1]));
    } else {
        if ($mode == 'edit') {
            if (empty($_GET['lid'])) {
                $display .= editlink($mode);
            } else {
                $display .= editlink($mode, COM_applyFilter($_GET['lid']));
            }
            $display = COM_createHTMLDocument($display, array('pagetitle' => $LANG_LINKS_ADMIN[1]));
        } else {
            // 'cancel' or no mode at all
            if (isset($_GET['msg'])) {
                $msg = COM_applyFilter($_GET['msg'], true);
                if ($msg > 0) {
                    $display .= COM_showMessage($msg, 'links');
                }
            }
            $display .= listlinks();
            $display = COM_createHTMLDocument($display, array('pagetitle' => $LANG_LINKS_ADMIN[11]));
        }
    }
}
COM_output($display);
Ejemplo n.º 2
0
	<link rel="license" type="text/html" href="http://creativecommons.org/licenses/by/3.0/" />
<?php 
include_once WWWROOT . '/ga.inc';
?>
</head>

<body>

<div id="content">
	<h1>Block Adventures</h1>
	<h3>A Webgame</h3>
	<p>This is a small-scale platformer-shooter that I am making. In fact, this is the first HTML5 game that I have made.</p>
	<p>Click the links below to play and learn more.</p>
	<ul id="links">
<?php 
listlinks();
?>

	</ul>
	<br><div id="back"><a href="/pages/">Back</a></div>
</div>
<?php 
include_once WWWROOT . '/stats.inc';
?>
	<!-- AddThis Smart Layers BEGIN -->
	<script type="text/javascript" src="//s7.addthis.com/js/300/addthis_widget.js#pubid=ra-52c236665e0d4dec"></script>
	<script type="text/javascript">
	addthis.layers({
		'theme' : 'transparent',
		'share' : {
		'position' : 'left',