本文整理汇总了PHP中redirecina函数的典型用法代码示例。如果您正苦于以下问题:PHP redirecina函数的具体用法?PHP redirecina怎么用?PHP redirecina使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了redirecina函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: redirecina
/* Admin Common */
$ok = ($perfil->valid('#ADM') or $perfil->valid('#SCR') or $perfil->valid('#COO'));
if ($ok == 0) {
redirecina('main.php');
}
$ln = new message();
global $acao, $dd, $cp, $tabela;
require $include . 'sisdoc_colunas.php';
require $include . '_class_form.php';
$form = new form();
require $include . 'sisdoc_data.php';
require $include . 'sisdoc_debug.php';
require "_ged_documents.php";
$tabela = $ged->tabela . '_tipo';
$cp = $ged->cp();
$http_edit = 'admin_docs_type_ed.php';
$http_ver = 'admin_docs_type_ver.php';
$http_redirect = '';
$tit = msg("titulo");
/** Comandos de Edicao */
echo '<CENTER><font class=lt5>' . msg('titulo') . '</font></CENTER>';
$tela = $form->editar($cp, $tabela);
echo '</div>';
/** Caso o registro seja validado */
if ($form->saved > 0) {
$ged->updatex();
redirecina('admin_docs_type.php');
} else {
echo $tela;
}
echo $hd->foot();
示例2: redirecina
// Software. If not, see
// https://raw.githubusercontent.com/bireme/proethos/master/LICENSE.txt
/**
* Admin Menu
* @author Rene Faustino Gabriel Junior (Analista-Desenvolvedor)
* @copyright © Pan American Health Organization, 2013. All rights reserved.
* @access public
* @version v0.13.46
* @package ProEthos-Admin
* @subpackage Country
*/
require "cab.php";
/* Admin Common */
$ok = ($perfil->valid('#ADM') or $perfil->valid('#SCR') or $perfil->valid('#COO'));
if ($ok == 0) {
redirecina('main.php');
}
require $include . 'sisdoc_colunas.php';
require $include . 'sisdoc_debug.php';
require "_class/_class_ajax_pais.php";
$clx = new country();
$tabela = $clx->tabela;
$label = msg('tit_' . $tabela);
$http_edit = 'admin_country_ed.php';
$editar = True;
$http_ver = '';
$http_redirect = page() . '?dd98=' . $dd[98] . '&dd97=' . $dd[97];
$clx->row();
$busca = true;
$offset = 20;
//$pre_where = " e_mailing = '".$cl->mail_codigo."' ";
示例3: redirecina
// You should have received a copy of the ProEthos License along with the ProEthos
// Software. If not, see
// https://raw.githubusercontent.com/bireme/proethos/master/LICENSE.txt
/**
* Sumissão de protocolo de pesquisa
* @author Rene Faustino Gabriel Junior (Analista-Desenvolvedor)
* @copyright © Pan American Health Organization, 2013. All rights reserved.
* @access public
* @version v0.12.22
* @package Class
* @subpackage UC0001 - Sumissão de protocolo de pesquisa
*/
require 'submit_00_field.php';
if (strlen($acao) > 0) {
require 'submit_save.php';
}
echo '<TR><TD colspan=2>';
require 'submit_pages.php';
echo $s;
echo '</table>';
if ($ok > 0 and strlen($acao) > 0) {
$_SESSION['proj_page'] = $pag + 1;
redirecina('submit.php?time' . date("dmYhis"));
}
?>
<script>
<?php
echo $scripts;
?>
</script>
示例4: redirecina
}
/* Admin Common */
$ok = ($perfil->valid('#ADM') or $perfil->valid('#SCR') or $perfil->valid('#COO'));
if ($ok == 0) {
redirecina('main.php');
}
require "_class/_class_submit_manuscrito_field.php";
global $acao, $dd, $cp, $tabela;
require $include . 'sisdoc_colunas.php';
require $include . '_class_form.php';
$form = new form();
require "form_css.php";
echo '<h1>' . msg('amendment_' . $adm) . '</h1>';
$dd[12] = strzero($adm, 5);
$cl = new fields();
$cp = $cl->cp();
$tabela = $cl->tabela;
$http_edit = 'admin_submit_ed.php';
$http_redirect = '';
/** Comandos de Edicao */
$tela = $form->editar($cp, $tabela);
/** Caso o registro seja validado */
if ($form->saved > 0) {
echo 'Salvo';
$cl->updatex();
redirecina('admin_submit_000.php');
} else {
echo $tela;
}
echo '</div>';
echo $hd->foot();
示例5: form
* Admin Menu
* @author Rene Faustino Gabriel Junior (Analista-Desenvolvedor)
* @copyright © Pan American Health Organization, 2013. All rights reserved.
* @access public
* @version v0.13.46
* @package ProEthos-Admin
* @subpackage calender
*/
require "cab.php";
require "_class/_class_calender.php";
global $acao, $dd, $cp, $tabela;
require $include . '_class_form.php';
require $include . 'sisdoc_data.php';
$form = new form();
require "form_css.php";
$cl = new calendar();
$cp = $cl->cp();
$tabela = $cl->tabela;
$http_edit = page();
$http_redirect = '';
$label = msg('tit_' . $tabela);
/** Edit */
echo '<h2>' . $label . '</h2>';
$tela = $form->editar($cp, $tabela);
/** Caso o registro seja validado */
if ($form->saved > 0) {
redirecina('admin_calender.php');
} else {
echo $tela;
}
echo $hd->foot();
示例6: redirecina
redirecina('main.php');
}
/* Valid Submit */
$chk = checkpost($dd[0]);
$ch2 = $dd[90];
if ($chk == $ch2) {
/* Active Mode Ghost */
if (strlen($dd[1]) == 0) {
/* Save original user */
$ss->set_user_original();
$ss->le($dd[0]);
/* Active mode ghost */
$ss->set_ghost();
$ss->ghost_user();
redirecina("main.php");
}
/* DesActive Mode Ghost */
if (strlen($dd[1]) > 0) {
$ss->reset_user_original();
$ss->reset_ghost();
$ss->le($dd[0]);
$ss->normal_user();
redirecina("main.php");
}
} else {
echo '<h1>' . msg('ghost_mode') . '</h1>';
echo '<div class="error">' . msg('access_error');
'</div>';
}
echo '</div>';
echo $hd->foot();
示例7: xss_security_post
$varf = 'dd' . $k;
$varf = $vars[$varf];
//if (isset($varf) and ($k > 1)) { //$varf = str_replace($varf,"A","�"); }
$dd[$k] = xss_security_post($varf);
}
$acao = $vars['acao'];
$nocab = $vars['nocab'];
//-------------------------------------- Determina o Idioma de Navega��o
$idv = $vars['idioma'];
//-------------------------------------------- Biblioteca
$tab_max = '100%';
$db_config = '_db/db_proethos.php';
if ($install != 1) {
/* Aquivo de configuração do banco de dados */
if (!file_exists($db_config)) {
redirecina('_install/');
}
require $db_config;
}
$edit_mode = round($_SESSION['editmode']);
function show_logo()
{
global $http;
$sx .= '<img src="img/logo_proethos.png" height=18> ';
$sx .= msg('about_print');
return $sx;
}
function xss_security_post($s)
{
$s = troca($s, '<', '<');
$s = troca($s, '>', '>');
示例8: redirecina
redirecina('main.php');
}
require '_class/_class_dictamen.php';
$ln = new message();
global $acao, $dd, $cp, $tabela;
require $include . 'sisdoc_colunas.php';
require $include . '_class_form.php';
require $include . 'sisdoc_data.php';
require $include . 'sisdoc_debug.php';
$form = new form();
require "form_css.php";
$cl = new dictamen();
$cp = $cl->cp_modelo();
$http_edit = 'admin_parecer_modelo_ed.php';
$http_redirect = '';
$tit = msg("titulo");
/** Comandos de Edicao */
echo '<CENTER><font class=lt5>' . msg('titulo') . '</font></CENTER>';
echo '<table width="100%"><TR><TD>';
$tela = $form->editar($cp, $tabela);
/** Caso o registro seja validado */
if ($form->saved > 0) {
echo "SALVO";
$cl->updatex();
redirecina('admin_parecer_modelo.php');
} else {
echo $tela;
}
echo '</table>';
echo '</div>';
echo $hd->foot();
示例9: array
$style_add = array('proethos_form.css');
require "cab.php";
/* Admin Common */
$ok = ($perfil->valid('#ADM') or $perfil->valid('#SCR') or $perfil->valid('#COO'));
if ($ok == 0) {
redirecina('main.php');
}
/* Form Library */
require $include . '_class_form.php';
$form = new form();
require "form_css.php";
/* Committee Library */
require_once "_class/_class_committee.php";
$cm = new committee();
$cp = $cm->cp();
/* Recover ID */
if ($cm->config_exist()) {
$dd[0] = $cm->id;
}
$tabela = "_committee";
echo '<h2>' . msg("configuration_committe") . '</h2>';
$tela = $form->editar($cp, $tabela);
if ($form->saved > 0) {
$cm->save_arq();
echo '<h3>' . msg('saved') . '</h3>';
redirecina('contact.php');
} else {
echo $tela;
}
echo '</div>';
echo $hd->foot();
示例10: Security
/**
* Recupera dados do Usu�rio
* @return Booblean
*/
function Security()
{
global $secu, $user_login, $user_nivel, $user_nome, $user_id;
$md5 = trim($_SESSION["user_chk"]);
$nm1 = trim($_SESSION['user_login']);
$nm2 = trim($_SESSION['user_nome']);
$nm3 = trim($_SESSION['user_nivel']);
$nm6 = trim($_SESSION['user_id']);
$nm7 = trim($_SESSION['user_perfil']);
$nm8 = trim($_SESSION['user_codigo']);
$mt1 = 10;
if (strlen($md5) == 0) {
/* Recupera por Cookie */
$md5 = trim($_COOKIE["user_chk"]);
$nm1 = $_COOKIE["user_login"];
$nm2 = $_COOKIE["user_nome"];
$nm3 = $_COOKIE["user_nivel"];
$nm6 = $_COOKIE['user_id'];
$nm7 = $_COOKIE['user_perfil'];
$nm8 = $_COOKIE['user_codigo'];
$mt1 = 20;
}
$mm4 = md5($nm1 . $nm2 . $nm3 . $secu);
if (strlen($nm1) > 0 and strlen($nm2) > 0) {
if (trim($mm4) == trim($md5)) {
$this->user_login = $nm1;
$this->user_nome = $nm2;
$this->user_nivel = $nm3;
$this->user_id = $nm6;
$this->user_erro = $mt1;
$this->user_perfil = $nm7;
$this->user_codigo = $nm8;
$_SESSION["user_chk"] = $md5;
$_SESSION['user_login'] = $nm1;
$_SESSION['user_nome'] = $nm2;
$_SESSION['user_nivel'] = $nm3;
$_SESSION['user_id'] = $nm6;
$_SESSION['user_perfil'] = $nm7;
$_SESSION['user_codigo'] = $nm8;
$user_id = $nm6;
$user_login = $nm1;
$user_nivel = $nm3;
$user_nome = $nm2;
return True;
} else {
$this->user_erro = -4;
$this->user_msg = 'End section';
redirecina('login.php');
return False;
}
} else {
$this->user_erro = -5;
$this->user_msg = 'End section';
redirecina('login.php');
return False;
}
}
示例11: redirecina
*/
require "cab.php";
/* Admin Common */
$ok = ($perfil->valid('#ADM') or $perfil->valid('#SCR') or $perfil->valid('#COO'));
if ($ok == 0) {
redirecina('main.php');
}
require "_class/_class_register_unit.php";
global $acao, $dd, $cp, $tabela;
require $include . 'sisdoc_colunas.php';
require $include . '_class_form.php';
$form = new form();
require "form_css.php";
$cl = new register_unit();
$cp = $cl->cp();
$tabela = $cl->tabela;
$http_edit = 'admin_register_unit_ed.php';
$http_redirect = '';
$tit = msg("tit_" . $cl->tabela);
/** Comandos de Edicao */
$tela = $form->editar($cp, $tabela);
/** Caso o registro seja validado */
if ($form->saved > 0) {
echo 'Salvo';
$cl->updatex();
redirecina('admin_register_unit.php');
} else {
echo $tela;
}
echo '</div>';
echo $hd->foot();
示例12: redirecina
if ($ok == 0) {
redirecina('main.php');
}
require '_class/_class_faq.php';
$ln = new message();
global $acao, $dd, $cp, $tabela;
require $include . 'sisdoc_colunas.php';
require $include . '_class_form.php';
$form = new form();
require "form_css.php";
require $include . 'sisdoc_data.php';
require $include . 'sisdoc_debug.php';
$cl = new faq();
$cp = $cl->cp();
$tabela = $cl->tabela;
$http_edit = $tabela . '_ed.php';
$http_redirect = '';
$tit = msg("tit" . $tabela);
/** Comandos de Edicao */
echo '<CENTER><h2>' . $tit . '</h2></CENTER>';
$tela = $form->editar($cp, $form);
echo '</div>';
/** Caso o registro seja validado */
if ($saved > 0) {
echo 'Salvo';
$cl->updatex();
redirecina($tabela . '.php');
} else {
echo $tela;
}
echo $hd->foot();
示例13: redirecina
* @package ProEthos-Admin
* @subpackage calender
*/
require "cab.php";
/* Admin Common */
$ok = ($perfil->valid('#ADM') or $perfil->valid('#SCR') or $perfil->valid('#COO'));
if ($ok == 0) {
redirecina('main.php');
}
require "_class/_class_action.php";
global $acao, $dd, $cp, $tabela;
require $include . '_class_form.php';
require $include . 'sisdoc_data.php';
$form = new form();
$cl = new action();
$cp = $cl->cp();
$tabela = $cl->tabela;
$http_edit = page();
$http_redirect = '';
$label = msg('tit_' . $tabela);
/** Edit */
echo '<h2>' . $label . '</h2>';
$tela = $form->editar($cp, $tabela);
/** Caso o registro seja validado */
if ($form->saved > 0) {
redirecina('admin_action.php');
} else {
echo $tela;
}
echo '</div>';
echo $hd->foot();
示例14: redirecina
* @package ProEthos-Admin
* @subpackage protocols
*/
require "cab.php";
require "_class/_class_cep.php";
/* Admin Common */
$ok = ($perfil->valid('#ADM') or $perfil->valid('#SCR') or $perfil->valid('#COO'));
if ($ok == 0) {
redirecina('main.php');
}
global $acao, $dd, $cp, $tabela;
require $include . '_class_form.php';
$form = new form();
require $include . 'sisdoc_data.php';
$cl = new cep();
$cp = $cl->cep_manual();
$tabela = $cl->tabela;
$http_edit = page();
$http_redirect = '';
/** Comandos de Edicao */
$tela = $form->editar($cp, $tabela);
/** Caso o registro seja validado */
if ($form->saved > 0) {
echo 'Salvo';
$cl->updatex();
redirecina('admin_protocols.php');
} else {
echo $tela;
}
echo '</div>';
echo $hd->foot();
示例15: redirecina
* @package ProEthos-Admin
* @subpackage user
*/
require "cab.php";
/* Admin Common */
$ok = ($perfil->valid('#ADM') or $perfil->valid('#SCR') or $perfil->valid('#COO'));
if ($ok == 0) {
redirecina('main.php');
}
global $acao, $dd, $cp, $tabela;
require $include . 'sisdoc_colunas.php';
require $include . '_class_form.php';
$form = new form();
require 'form_css.php';
$cl = new users();
$cp = $cl->cp_admin();
$tabela = $cl->tabela;
$http_edit = 'admin_user_ed.php';
$http_redirect = '';
/** Comandos de Edicao */
echo '<CENTER><h2>' . msg('users') . '</h2></CENTER>';
$tela = $form->editar($cp, $tabela);
/** Caso o registro seja validado */
if ($form->saved > 0) {
$cl->updatex();
redirecina('admin_user.php');
} else {
echo $tela;
}
echo '</div>';
echo $hd->foot();