Exemplo n.º 1
0
function parameter($parameter, $form = '0')
{
    if ($form == 0) {
        if (isset($_GET[$parameter])) {
            return $_GET[$parameter];
            exit;
        }
        if (isset($_POST[$parameter])) {
            return $_POST[$parameter];
            exit;
        }
        if (isset($_COOKIE[$parameter])) {
            return $_COOKIE[$parameter];
            exit;
        }
    } elseif ($form == 1) {
        if (parameter($parameter) != "") {
            return decrypt(parameter($parameter));
        }
    }
    return false;
}
Exemplo n.º 2
0
            <br>
            <CENTER><input type="submit" value="Solicitação de intercâmbio" name="btnptu" onClick="toggleT('divt1','s');" ></CENTER>
            <?php 
    } else {
        if ($btnptu != '' and !isset($submit)) {
            ?>
             <CENTER><blink><span id="divt1" style="visibility:visible;position:relative;left:50"><font size="3" color="#FF8040"><strong>Aguarde solicitação de intercâmbio...</strong></font>&nbsp&nbsp<IMG SRC="comunicacao.gif" BORDER=0></span></blink></CENTER>
            <?php 
        }
    }
}
echo "</form></center>";
//echo  "  <form action=servc.php?sv=$sv&qt=$qt; target=servico method=POST name=ptu>";
//  <form action="servc.php?<? echo"sv=$sv&qt=$qt"; " target="servico" method="POST" name="ptu">
if ($btnptu != '' and !isset($submit)) {
    $vtempomax = parameter('AWTIMOUT');
    //  time-out parametrizado no sistema;   => 300 segundos
    $sql = "\n      update autorizacao\n        set aoaprovacao_remota = 'S'\n      where nrautorizacao = {$v_nrautorizacao}";
    $db->query($sql);
    $to = $t1 = F_DATAHORA('HORA');
    while (1 != 2) {
        // exibe mensagem na tela
        if (strtotime($t1) - strtotime($to) > $vtempomax) {
            ?>
 <br><CENTER><font size="3" color="#FF8040"><strong>Cancelamento por timeout...</strong></font></CENTER>
             <script language="javascript">
               toggleT('divt1','h');
             </script>
         <?php 
            P_CANCELA_AUTORIZACAO($v_nrautorizacao, 'TIM', $emissor);
            break;
Exemplo n.º 3
0
        echo '<li style="padding:5px;">
			<a href="#Note&fid=' . $row['fid'] . '">
				<div class="row text-center">
					<h3>' . date("m/d/y g:i a", filemtime('uploads/' . $file)) . '</h3>
					<img style="max-width:225px; max-height:400px;" src="uploads/' . $row['name'] . '">
				</div>
			</a>
		</li>';
        $counter++;
    }
    if ($counter == 0) {
        echo "</ul></div><hr><center><font color='red'>We found no results.</font><hr>";
    } elseif ($counter == 100) {
        echo "</ul></div><hr><center><font color='red'>Limited to 100 results... Be more specific.</font><center><hr>";
    }
}
$toSearch = parameter('query');
?>


<center><h1> Results Found Matching: <?php 
echo $toSearch;
?>
</h1></center>
<div class="row text-center">
		<ul class="small-block-grid-1 medium-block-grid-2 large-block-grid-3">
			<?php 
note($toSearch);
?>
		</ul>
</div>
    header('WWW-Authenticate: Basic realm="Servidor da Unimed"');
    header('HTTP/1.0 401 Unauthorized');
    echo 'Autorização para acessar esta Página é requerida.';
    exit;
} else {
    session_start();
    require_once "AW00DB.php";
    require_once "{$database}.class.php";
    require_once "AW00MD.php";
    require_once "liberacaoteclado.php";
    require_once "function_param.inc";
    require_once "limpa_sessoes.php";
    require_once "style.inc";
    $sql1 = "SELECT COUNT(*) RESULT\n               FROM FUNCIONARIO\n            WHERE\n               CDFUNCIONARIO=UPPER('{$PHP_AUTH_USER}')\n               AND\n               CDSENHA=CRIPT(UPPER('{$PHP_AUTH_PW}'),'')";
    $noun_cpl = parameter('NOUN_CPL');
    $nrunimed = parameter('NRUNIMED');
    $stmt1 = OCIParse($conn, $sql1);
    OCIDefineByName($stmt1, "RESULT", $RESULT);
    OCIExecute($stmt1);
    OCIFetch($stmt1);
    OCIResult($stmt1, 1);
    if ($RESULT == '1') {
        $sql2 = "SELECT G.CDNIVEL NIV\n                         FROM FUNCIONARIO F,\n                         GRUPO_FUNCIONARIO G\n                         WHERE F.CDFUNCIONARIO = UPPER('{$PHP_AUTH_USER}')\n                         AND F.CDGRUPO = G.CDGRUPO";
        $stmt2 = OCIParse($conn, $sql2);
        OCIdefineByName($stmt2, "niv", $niv);
        OCIexecute($stmt2);
        OCIFetch($stmt2);
        $nivel = OCIResult($stmt2, 1);
        $emissor = strtoupper($PHP_AUTH_USER);
        session_register('nivel');
        session_register('emissor');
Exemplo n.º 5
0
 /**
  * @test
  */
 public function parameterReturnsExactReflectionParameter()
 {
     assert(parameter('refParam', $this, 'example')->getName(), equals('refParam'));
 }
Exemplo n.º 6
0
      <input id="checkbox2" type="checkbox"><label for="checkbox2">Drill</label>
      <input id="checkbox3" type="checkbox"><label for="checkbox1">Saw</label>
      <input id="checkbox4" type="checkbox"><label for="checkbox2">Nails</label>
	</div>
	</fieldset>
</div>
<div class="row">
	<fieldset>
	<div class="large-8 small-12 columns">
	<label>Alcohol</label>
      <input id="checkbox5" type="checkbox"><label for="checkbox1">6 Pack of Beer</label>
      <input id="checkbox6" type="checkbox"><label for="checkbox2">12 Pack of Beer</label>
      <input id="checkbox7" type="checkbox"><label for="checkbox1">36 Pack of Beer</label>
      <input id="checkbox8" type="checkbox"><label for="checkbox2">Handle of Vodka</label>
	</div>
	</fieldset>
</div>
<div class="row">
    <div class="large-8 columns">
      <label>Information about Event
        <textarea placeholder="Enter the details about the event" id="eventInfo" name="eventInfo"></textarea>
      </label>
    </div>
</div>
<input name="eventID" type="hidden" value="<?php 
echo parameter('id');
?>
" />
<input name="JoinEvent" type="submit" class="button small radius" value="Submit" />
</form>
</div>
Exemplo n.º 7
0
<?php

$mtime = microtime();
$mtime = explode(" ", $mtime);
$mtime = $mtime[1] + $mtime[0];
$starttime = $mtime;
include_once 'common.php';
//die("<center><h1>Scheduled Maintenance. We are working to improve our backend!</h1></center>");
if (!parameter('page')) {
    die("Error: page id not specified...Something Broke");
}
$page = parameter('page');
if ($_SESSION['authorized'] == TRUE) {
    if (file_exists('pages/' . $page . '.php')) {
        include 'pages/' . $page . '.php';
    } else {
        echo '<div id="error" style="margin-top:20px;border:1px dashed #cccccc;padding:10px;-moz-border-radius: 5px;-khtml-border-radius: 5px;-webkit-border-radius: 5px;border-radius: 5px;color: red;font-family: LeagueGothicRegular;font-size: 24px;font-weight: lighter;text-align: center;">Aw, snap! Something went terribly wrong.<br>We couldnt find the page youre looking for.<br /><br /><iframe allowfullscreen="" style="height: 216px;width: 384px;" frameborder="0" src="//www.youtube.com/embed/t3otBjVZzT0?autohide=1&amp;autoplay=1&amp;color=white&amp;showinfo=0&amp;theme=light"></iframe></div>';
    }
} else {
    //not logged in
    if ($page == "login" || $page == "create" || $page == "faq") {
        //allow other pages while not logged in
        if (file_exists('pages/' . $page . '.php')) {
            include 'pages/' . $page . '.php';
        }
    } else {
        //force login page
        include 'pages/login.php';
    }
}
function caculateLoadTime2($ms)
Exemplo n.º 8
0
/**
 * Set values of parameters.
 * 
 * @param array $parameters associative array of names and values of
 * the parameters
 */
function parameter_set_array(array $parameters)
{
    foreach ($parameters as $name => $value) {
        parameter($name, $value, true);
    }
}
Exemplo n.º 9
0
 }
 if (isset($rn)) {
     session_unregister('rn');
 }
 if (isset($cid)) {
     session_unregister('cid');
 }
 if (isset($vl_doenca)) {
     session_unregister('vl_doenca');
 }
 $pedesoli = parameter('PEDESOLI');
 $pesqrqau = parameter('PESQRQAU');
 $tel0800 = parameter('TEL0800');
 $nrunimed = parameter('NRUNIMED');
 $awtpcart = parameter('AWTPCART');
 $awdtaten = parameter('AWDTATEN');
 if ($AWEspSJRP) {
     session_unregister('vl_doenca');
     session_unregister('cdtempodoenca');
     session_unregister('cdespecialidade');
     session_unregister('cdconselho');
     session_unregister('cdarea_prestador');
 }
 if ($AWEspSJRP) {
     if (isset($cdtempo_doenca)) {
         $cdtempo_doenca = $cdtempodoenca;
     }
 }
 $passCart = 'N';
 //<script src=\"data.js\"/>
 print "<html><head>\n                      <SCRIPT src=\"data.js\"></SCRIPT>\n                      <SCRIPT LANGUAGE=\"JavaScript\">";