HEX
Server: Apache/2.4.46 (Win64) OpenSSL/1.1.1j PHP/8.4.25
System: Windows NT DESKTOP-4TAV2RJ 10.0 build 19045 (Windows 10) AMD64
User: fred (0)
PHP: 8.4.25
Disabled: NONE
Upload Files
File: C:/xampp/htdocs/quiz/modules/show_page.php
<?php if(!isset($RUN)) { exit(); } ?>
<?php 

if(SHOW_MENU=="registered" || SHOW_MENU=="nobody")
access::allow("1,2");	

$id = util::GetID("?module=default");
$results = orm::Select("pages",array(),array("id"=>$id), "");
$count = db::num_rows($results);
if($count == 0) header("location:?module=default");

$row = db::fetch($results);
$page_name =$row['page_name'];
$page_content =$row['page_content'];

function desc_func()
{
	global $page_name;
	return $page_name;
}

?>