예제 #1
0
<?php

/**
 * User: Arsen
 * Date: 03.10.14
 * Time: 0:52
 * Класс страницы
 * Употребляется в виде для отабражения элементов страницы
 * по средствам его методов
 */
namespace Widgets\Widget;

restrictAccess();
use Widgets\AbstractWidget;
use View;
class BestPlayer extends AbstractWidget
{
    /**
     * Тип страницы
     */
    protected $_type;
    /**
     * Позиция
     */
    protected $_position;
    /**
     * Индекс сортировки
     */
    protected $_sort;
    /**
     * Шаблон
예제 #2
0
파일: quizup.php 프로젝트: t-web/doeqs_new
<?php

define('ROOT_PATH', '');
require_once ROOT_PATH . 'functions.php';
require_class('qIO');
restrictAccess('u');
//xuca
$q = new qIO();
$q->addRand(null, null, [0], 1);
?>

<style>
body{
font-size:30pt;
background-color:black;
color:white;
font-family:Segoe UI, Segoe, Frutiger, WeblySleekUI, CartoGothic STD, Open Sans, Arial, sans-serif;
}
.anschoices button{
font-family:"Robot!Head",
transition:background-color 0.5s;
font-size:inherit;
background-color:white;
color:black;
display:block;
width:100%;
text-align:center;
border-radius:20px;
border:none;
margin-top:10px;
cursor:pointer;
예제 #3
0
<?php

require_once "auth.php";
require_once "bootstrap.php";
restrictAccess('0011');
?>
<html>

<head>
	<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
	<title>Electronic Medical Information System - User Profile</title>
    <link href="css/logged_in_styles.css" rel="stylesheet" type="text/css" />
</head>

    <?php 
if (isset($_SESSION['ERRMSG_ARR']) && is_array($_SESSION['ERRMSG_ARR']) && count($_SESSION['ERRMSG_ARR']) > 0) {
    echo '<ul class="err">';
    foreach ($_SESSION['ERRMSG_ARR'] as $msg) {
        echo '<li>', $msg, '</li>';
    }
    echo '</ul>';
    unset($_SESSION['ERRMSG_ARR']);
}
?>
<body>
	<script type="text/javascript">
		function submitform()
		{
			document.forms["loginForm"].submit();
		}
	</script>
예제 #4
0
<?php

require_once "auth.php";
require_once 'bootstrap.php';
restrictAccess('1111');
$userName = $_SESSION['SESS_USERNAME'];
global $currentPath;
$request = $currentPath . "viewPatientREST.php?";
$request .= "u=" . urlencode($userName);
$request .= "&key=" . urlencode($_SESSION['SESS_AUTH_KEY']);
$request .= "&pat=" . urlencode($_GET['u']);
//die($request);
//format and send request
$ch = curl_init($request);
curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 4);
curl_setopt($ch, CURLOPT_TIMEOUT, 8);
curl_setopt($ch, CURLOPT_HEADER, false);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$RESToutput = curl_exec($ch);
//send URL Request to RESTServer... returns string
curl_close($ch);
//string from server has been returned <XML> closethe channel
if ($RESToutput == '') {
    die("CONNECTION ERROR");
}
//die($RESToutput);
//parse return string
$parser = xml_parser_create();
xml_parse_into_struct($parser, $RESToutput, $wsResponse, $wsIndices);
$errNum = $wsResponse[$wsIndices['ERRNUM'][0]]['value'];
/*print( "OUTPUT|$RESToutput|\n");
예제 #5
0
<?php

require_once 'auth.php';
require_once 'bootstrap.php';
restrictAccess("0111");
?>

<!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>Administrator Profile</title>
        <link href="css/logged_in_styles.css" rel="stylesheet" type="text/css" />
    </head>
    <body>
	<script type="text/javascript">
		function submitform()
		{
			document.forms["editMemberForm"].submit();
		}
	</script>
    <div class="container">
        <div class="header">
			<div class="logo"><a href="memberProfileView.php"><img src="img/logo.png" /></a></div>
            <div class="welcome_text">
                <h1>Welcome,
                <?php 
echo $_SESSION['SESS_FIRST_NAME'];
?>
</h1>
            </div>
예제 #6
0
<?php

define('ROOT_PATH', '');
require_once ROOT_PATH . 'functions.php';
restrictAccess('a');
//xuca
if (posted("directory")) {
    $directory = $_POST["directory"];
    if (is_dir($directory)) {
        require_class("fileToStr", "qParser");
        $f = new fileToStr();
        $qp = new qParser();
        echo "Processing directory {$directory}:<br>";
        foreach (glob($directory . '/*.*') as $file) {
            echo " " . $file . " parsed:<br><textarea>" . $qp->parse($f->convert($file, $file)) . "</textarea><br><br>";
            ob_flush();
            flush();
        }
    } else {
        echo "{$directory} is not a valid directory.";
    }
}
?>
<form action="bulk_file_process.php" method="POST">
<b>Add All Files From Directory:</b>
<input type="text" name="directory"/>
</form>
예제 #7
0
 <?php 
session_start();
require_once 'auth.php';
require_once 'bootstrap.php';
restrictAccess("1111");
?>

<!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" xml:lang="en" lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
	<title>Electronic Medical Information System</title>
    <link href="css/logged_in_styles.css" rel="stylesheet" type="text/css" />
</head>
    <body>
	<script type="text/javascript">
		function submitform()
		{
			document.forms["loginForm"].submit();
		}
	</script>
    <div class="container">
        <div class="header">
            <div class="logo"><img src="img/logo.png" alt="Just a logo"/></div>
            <div class="welcome_text">
                <h1>Welcome,
                <?php 
echo $_SESSION['SESS_FIRST_NAME'];
?>
</h1>
            </div>
예제 #8
0
<?php

require_once 'auth.php';
require_once 'bootstrap.php';
restrictAccess('1000');
$userName = $_SESSION['SESS_USERNAME'];
$aid = $_GET['aid'];
global $currentPath;
$request = $currentPath . "apptViewREST.php?";
$request .= "u=" . urlencode($userName);
$request .= "&key=" . urlencode($_SESSION['SESS_AUTH_KEY']);
$request .= "&aid=" . urlencode($aid);
//echo $request;
//format and send request
$ch = curl_init($request);
curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 4);
curl_setopt($ch, CURLOPT_TIMEOUT, 8);
curl_setopt($ch, CURLOPT_HEADER, false);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$RESToutput = curl_exec($ch);
//send URL Request to RESTServer... returns string
curl_close($ch);
//string from server has been returned <XML> closethe channel
//die($RESToutput);
if ($RESToutput == '') {
    die("CONNECTION ERROR");
}
$status = $wsResponse[$wsIndices['STATUS'][0]]['value'];
//parse return string
$parser = xml_parser_create();
xml_parse_into_struct($parser, $RESToutput, $wsResponse, $wsIndices);