<?php session_start(); include_once '../include/functions.php'; adminlogin($_SESSION['admin']); ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <title>Lista utenti</title> <link rel="stylesheet" type="text/css" href="css/style.css" media="all"> </head> <body id="main_body" > <div id="wrapper"> <div id="header"> <? include ("header.php"); ?> </div> <!--<section id="middle">--> <div id="container"> <div id="content"> <?php include_once "../include/functions.php"; echo '<p><a href="admin-registration.php">Vuoi aggiungere un amministratore?</a></p>'; echo "<p><strong>Elenco degli utenti:</strong></p>"; $connection = connect(); $result = dbReaderQuery($query_cat); // Codice per visualizzare la lista delle categorie da cui scegliere
//* Author: G.A. Heath //* Date: August 19, 2005. //* License: GNU Public License (GPL) //* Last edit: September 4, 2005 //**************************************************************************** //===common code that should be run each time================================= include "../common.inc.php"; include "common.inc.php"; //***function content ()****************************************************** function content() { $MAIN = loadadmintmplate("main"); $CONTENT = "\r\n <p>\r\n For now there isn't much here in the way of content. please keep in mind\r\n that this project is still in its very early stages.\r\n </p>\r\n <p>\r\n <a href='http://fishcms.com'>FishCMS</a> is intended to be a simple, clean,\r\n and easy to use Content Management System targeted at Christian websites\r\n such as <a href='http://believewith.us'>BelieveWith.US</a>. FishCMS\r\n started out as an extension of the prayerlist program used at BelieveWith.US\r\n </p>\r\n <p>\r\n From this Admin Control Panel you will be able to edit, configure, and\r\n control your FishCMS site.\r\n </p>\r\n"; $WORK = insert_into_template($MAIN, "{CONTENT}", $CONTENT); $WORK = filltemplate($WORK, "{SITENAME} Administration panel"); printf("%s", striptemplate($WORK)); } //===Main code================================================================ if (checkadminlogin() == 1) { //if the user is logged in content(); } elseif (isset($HTTP_GET_VARS['login'])) { if (adminlogin($HTTP_POST_VARS['adminuser'], $HTTP_POST_VARS['adminpass'])) { content(); } else { printf("Incorrect username or password.<BR>"); loginbox(); } } else { loginbox(); }
case 'login': if (isset($CONFIG['login_required']) && $CONFIG['login_required'] == 1) { if (isset($_SESSION['logged_in'])) { header('Location: http://' . $_SERVER['HTTP_HOST'] . dirname($_SERVER['PHP_SELF'])); } else { userlogin($page[1]); } } else { header('Location: http://' . $_SERVER['HTTP_HOST'] . dirname($_SERVER['PHP_SELF'])); } break; case 'admin': if (isset($_SESSION['logged_in'])) { /* already logged in */ } else { adminlogin($page[1]); } break; case 'bottom': $query = "SELECT * FROM " . db_tablename('quotes') . " WHERE queue=0 and rating < 0 ORDER BY rating ASC LIMIT " . $limit; quote_generation($query, lang('bottom_title'), -1); break; case 'browse': $query = "SELECT * FROM " . db_tablename('quotes') . " WHERE queue=0 ORDER BY id ASC "; quote_generation($query, lang('browse_title'), $page[1], $CONFIG['quote_limit'], $CONFIG['page_limit']); break; case 'change_pw': if (isset($_SESSION['logged_in'])) { change_pw($page[1], $page[2]); } break;
MoodleSoapPlugin is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. MoodleSoapPlugin is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with MoodleSoapPlugin; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA */ if (empty($_SERVER[HTTPS])) { $url = "https://" . $_SERVER[HTTP_HOST] . $_SERVER[REQUEST_URI]; $delay = 1; die('<meta http-equiv="refresh" content="' . $delay . ';url=' . $url . '">'); } include_once "moodleplugin.php"; ini_set('soap.wsdl_cache_enabled', 0); $server = new SoapServer("moodleplugin.wsdl", array('soap_version' => SOAP_1_2, 'encoding' => "UTF-8")); $server->setClass("MoodlePlugin"); if (!adminlogin($_SERVER['PHP_AUTH_USER'], $_SERVER['PHP_AUTH_PW'])) { // Check username and password authenticate(); // Send basic authentication headers because username and/or password didnot match } else { if ($_SERVER["REQUEST_METHOD"] == "POST") { $server->setPersistence(SOAP_PERSISTENCE_REQUEST); try { $server->handle(); } catch (Exception $exc) { $server->fault($exc->getCode(), $exc->getMessage()); } } else { #output function list of webserver $functions = $server->getFunctions(); foreach ($functions as $func) {