Source

wikisystem / editor / operation.php

Full commit
<?php
	session_start();
	if (!isset($_SESSION['user']) or $_SESSION['type'] != 'e') {
		echo 'Access Denied!';
		exit;
	}

	include('../classes/ezsql.php');
	$status = $_REQUEST['op'];
	$sql = 'UPDATE articles SET `status` = \''.$status.'\' WHERE id = '.$_REQUEST['id'];

	$db->query($sql);
	header('Location: ./');
?>