本文整理汇总了PHP中SessionManager::validateUserInPage方法的典型用法代码示例。如果您正苦于以下问题:PHP SessionManager::validateUserInPage方法的具体用法?PHP SessionManager::validateUserInPage怎么用?PHP SessionManager::validateUserInPage使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类SessionManager
的用法示例。
在下文中一共展示了SessionManager::validateUserInPage方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1:
<?php
require_once __DIR__ . "/../../Backend/SessionManager.php";
require_once __DIR__ . "/../../Backend/RectorManager.php";
require_once __DIR__ . "/../../Backend/PersonManager.php";
require_once __DIR__ . "/../../Backend/ChurchManager.php";
require_once __DIR__ . "/../../Backend/LanguageSupport.php";
SessionManager::validateUserInPage('rectorLook.php');
//Get File contest from template
$string = file_get_contents("template/RectorInsertion.html");
if (!isset($_GET) || $_GET["id"] === NULL) {
echo "<script src='../JS/functions.js'></script><script>href('main.php')</script>";
}
//Remplace the nav
$string = str_replace("|title|", 'Look Rector', $string);
$string = str_replace("|NavBar|", SessionManager::getNavBar(), $string);
$idRector = $_GET["id"];
$rector = RectorManager::getSingleRector('id', $idRector);
if ($rector === NULL) {
echo "<script src='../JS/functions.js'></script><script>href('rectorMenu.php')</script>";
}
//Create a String of options of Last Church
$churchString = "";
$churchs = ChurchManager::getAllChurchs('name');
foreach ($churchs as $singleChurch) {
if ($rector->getIdActualChurch() == $singleChurch->getId()) {
$churchString = $churchString . "<option selected> " . $singleChurch->getName() . "</option>\n";
} else {
$churchString = $churchString . "<option> " . $singleChurch->getName() . "</option>\n";
}
}
示例2:
<?php
require_once __DIR__ . "/../../Backend/SessionManager.php";
require_once __DIR__ . "/../../Backend/PersonManager.php";
require_once __DIR__ . "/../../Backend/RectorManager.php";
require_once __DIR__ . "/../../Backend/ChurchManager.php";
require_once __DIR__ . "/../../Backend/LanguageSupport.php";
SessionManager::validateUserInPage('addRelationChurchRector.php');
//Get File contest from template
$string = file_get_contents("template/AddRelationChurchRector.html");
//Remplace the nav
$string = str_replace("|NavBar|", SessionManager::getNavBar(), $string);
//Create a String of Church Options
$churchString = "";
$churchs = ChurchManager::getAllChurchs('name', -1);
foreach ($churchs as $singleChurch) {
$churchString = $churchString . "<option> " . $singleChurch->getName() . "</option>\n";
}
$string = str_replace("|ChurchOption|", $churchString, $string);
//Create a String of Rector Options
$rectorString = "";
$rectors = RectorManager::getAllRectors('name');
foreach ($rectors as $singleRector) {
$idRector = $singleRector->getId();
$person = PersonManager::getSinglePerson('id', $idRector);
$fullname = $person->getFullName();
$rectorString = $rectorString . "<option lang='{$idRector}' id='{$fullname}'> " . $fullname . "</option>\n";
}
$string = str_replace("|RectorOption|", $rectorString, $string);
//Create Button contest
$saveButton = '<button type="button" class="btn btn-success" onclick=\'validateData("addRelationChurchRector.php", "' . SessionManager::getLastPage() . '")\'>
示例3:
<?php
require_once __DIR__ . "/../../Backend/SessionManager.php";
require_once __DIR__ . "/../../Backend/CityManager.php";
require_once __DIR__ . "/../../Backend/LanguageSupport.php";
SessionManager::validateUserInPage('NoticeOfPrivacy.php');
//Get File Contest
$string = file_get_contents("template/NoticeOfPrivacy.html");
//Remplace the nav
$string = str_replace("|NavBar|", SessionManager::getNavBar(), $string);
$notice = "";
if (LanguageSupport::getActualLanguage() == 'es') {
$notice = "Le informamos que sus datos personales recabados a través de sus solicitudes \n acudiendo a alguna iglesia de la Zona Metropolitana del estado de Jalisco, \n son incorporadas, protegidas y tratadas en los sistemas de datos personales del \n Arzobispado de Guadalajara para el ejercicio de las facultades de esta \n institución, y sólo pueden ser proporcionados en los términos establecidos en el \n Artículo 69 del Código Fiscal de la Federación.\n <br><br>\n Si desea modificar o corregir sus datos personales, puede hacerlo a través de \n acudir a cualquier iglesia donde ya haya hecho algun trámite o \n directamente en la oficina central.\n <br><br>\n Lo anterior se informa en cumplimiento del Lineamiento Decimoséptimo de los \n Lineamientos de Protección de Datos Personales, publicados en el Diario Oficial \n de la Federación el 30 de septiembre de 2005.";
} else {
$notice = "We inform the personal data that is received through his request \n going to a church of the Metropolitan Zone of the State of Jalisco, \n are incorpored, protected and storage in the systems of the personal data by \n Arzobispado de Guadalajara for the execution of the faculties of this \n institution and only can be received in the established center in the \n 'Artículo 69 del Código Fiscal de la Federación'.\n <br><br>\n if you want to change or update his personal data could done through of \n going to any church that you was done a request or go to the central office.\n <br><br>\n The Before inform the fulfillment of the 'Lineamiento Decimoséptimo' of \n 'Lineamientos de Protección de Datos Personales', publish in the official diary \n of the Federation September 30th 2005.";
}
$string = str_replace("|NoticeOfPrivacy|", $notice, $string);
//Display the page
$string = LanguageSupport::HTMLEvalLanguage($string);
echo $string;
示例4:
<?php
require_once __DIR__ . "/../../Backend/SessionManager.php";
require_once __DIR__ . "/../../Backend/ConfirmationManager.php";
require_once __DIR__ . "/../../Backend/PersonManager.php";
require_once __DIR__ . "/../../Backend/RectorManager.php";
require_once __DIR__ . "/../../Backend/LanguageSupport.php";
require_once __DIR__ . "/../../Backend/BaptismManager.php";
SessionManager::validateUserInPage('confirmationLook.php');
//Get File contest from template
$string = file_get_contents("template/ConfirmationInsertion.html");
if (!isset($_GET) || $_GET["id"] === NULL) {
echo "<script src='../JS/functions.js'></script><script>href('main.php')</script>";
}
//Remplace the nav
$string = str_replace("|title|", 'Look Confirmation', $string);
$string = str_replace("|NavBar|", SessionManager::getNavBar(), $string);
//Get The Data of the Confirmation
$idConfirmation = $_GET["id"];
$confirmation = ConfirmationManager::getSingleConfirmation('id', $idConfirmation);
$ownerId = $confirmation->getIdOwner();
$owner = PersonManager::getSinglePerson('id', $ownerId);
$owner->getIdFather() !== NULL ? $fatherId = $owner->getIdFather() : ($fatherId = 0);
$owner->getIdMother() !== NULL ? $motherId = $owner->getIdMother() : ($motherId = 0);
$gender = $owner->getGender();
$churchId = $confirmation->getIdChurch();
$confirmationDate = DatabaseManager::databaseDateToSingleDate($confirmation->getCelebrationDate());
$idRector = $confirmation->getIdRector();
$objRector = RectorManager::getSingleRector('id', $idRector);
$objPerRect = PersonManager::getSinglePerson('id', $objRector->getIdPerson());
$nameRector = $objPerRect->getFullNameBeginName();
示例5: strtoupper
<?php
require_once __DIR__ . "/../../Backend/SessionManager.php";
require_once __DIR__ . "/../../Backend/BibleQuote.php";
require_once __DIR__ . "/../../Backend/LanguageSupport.php";
SessionManager::validateUserInPage('main.php');
//Get File contest from template
$string = file_get_contents("template/Main.html");
$string = str_replace("|biblic|", BibleQuote::randomQuote(), $string);
//Remplace the nav
$user_name = strtoupper(SessionManager::getCurrentUser()->getUsername());
$string = str_replace("Username", $user_name, $string);
//Remplace the nav
$string = str_replace("|NavBar|", SessionManager::getNavBar(), $string);
//Display the page
$string = LanguageSupport::HTMLEvalLanguage($string);
echo $string;
示例6: intval
<?php
require_once __DIR__ . "/../../Backend/SessionManager.php";
require_once __DIR__ . "/../../Backend/ChurchManager.php";
require_once __DIR__ . "/../../Backend/PersonManager.php";
require_once __DIR__ . "/../../Backend/LanguageSupport.php";
SessionManager::validateUserInPage('userMenu.php');
//Get File contest from template
$string = file_get_contents("template/UserMenu.html");
//Remplace the nav
$string = str_replace("|NavBar|", SessionManager::getNavBar(), $string);
//Validate the URL
$numberPage = intval($_GET["page"]);
$sortType = $_GET["sort"];
$simpleKeyword = $_GET["keyword"];
$kid = $_GET["kid"];
if ($sortType == NULL || $sortType == '') {
$sortType = 'id DESC';
}
if ($numberPage === NULL || $numberPage < 0) {
echo "<script src='../JS/functions.js'></script><script>nextPage('set', '0')</script>";
}
//Getting all registries
if ($simpleKeyword !== NULL) {
$userRegistries = SessionManager::simpleSearchUser($simpleKeyword, $sortType, $numberPage);
} else {
if ($kid !== NULL) {
$userSearch = new User();
$kusername = $_GET["kusername"];
$ktype = $_GET["ktype"];
$konlineCheck = $_GET["konlineCheck"];
示例7:
<?php
require_once __DIR__ . "/../../Backend/SessionManager.php";
require_once __DIR__ . "/../../Backend/LanguageSupport.php";
SessionManager::validateUserInPage('stateInsertion.php');
//Get File Contest
$string = file_get_contents("template/StateInsertion.html");
//Remplace the nav
$string = str_replace("|NavBar|", SessionManager::getNavBar(), $string);
//Create a Button State
$saveButton = '<button type="button" class="btn btn-success" onclick=\'validateData("stateInsertion.php", "' . SessionManager::getLastPage() . '")\'>
<img src="../icons/save.png" width="50px"><br>
<strong>^Save^</strong>
</button>';
$cancelButton = '<button type="button" class="btn btn-success" onclick=\'href("' . SessionManager::getLastPage() . '")\'>
<img src="../icons/delete.png" width="50px"><br>
<strong>^Cancel^</strong>
</button>';
$returnButton = '';
$string = str_replace("|SaveButton|", $saveButton, $string);
$string = str_replace("|CancelButton|", $cancelButton, $string);
$string = str_replace("|ReturnButton|", $returnButton, $string);
//Display the page
$string = LanguageSupport::HTMLEvalLanguage($string);
echo $string;
示例8: CopyCommunionCertificate
<?php
require_once __DIR__ . "/../../../Backend/Certs/CopyCommunionCertificate.php";
SessionManager::validateUserInPage('communionLook.php');
if (isset($_GET) && $_GET["idCommunion"] !== NULL && isset($_SESSION) && $_SESSION["user_id"] !== NULL) {
$user = SessionManager::getCurrentUser();
$pdf = new CopyCommunionCertificate($user->getId(), $_GET["idCommunion"], $_GET["full"]);
$pdf->AliasNbPages();
$pdf->AddPage();
$pdf->displayData();
$pdf->Output();
} else {
echo "<script>\n url = String(window.location);\n url = url.substr(0, url.indexOf('cert'));\n window.location.href = url + 'main.php';\n </script>";
}
示例9: intval
<?php
require_once __DIR__ . "/../../Backend/SessionManager.php";
require_once __DIR__ . "/../../Backend/MarriageManager.php";
require_once __DIR__ . "/../../Backend/PersonManager.php";
require_once __DIR__ . "/../../Backend/LanguageSupport.php";
SessionManager::validateUserInPage('marriageMenu.php');
//Get File contest from template
$string = file_get_contents("template/MarriageMenu.html");
//Remplace the nav
$string = str_replace("|NavBar|", SessionManager::getNavBar(), $string);
//Validate the URL
$numberPage = intval($_GET["page"]);
$sortType = $_GET["sort"];
$simpleKeyword = $_GET["keyword"];
$kid = $_GET["kid"];
if ($sortType == NULL || $sortType == '') {
$sortType = 'id';
}
if ($numberPage === NULL || $numberPage < 0) {
echo "<script src='../JS/functions.js'></script><script>nextPage('set', '0')</script>";
}
//Getting all registries
if ($simpleKeyword !== NULL) {
$marriageRegistries = MarriageManager::simpleSearchMarriage($simpleKeyword, $sortType, $numberPage);
} else {
if ($kid !== NULL) {
$marriageSearch = new Marriage();
$kcelebration = DatabaseManager::singleDateToDatabaseDate($_GET["kcelebration"]);
$knameb = $_GET["knameb"];
$klastname1b = $_GET["klastname1b"];
示例10: User
<?php
require_once __DIR__ . "/../../Backend/SessionManager.php";
require_once __DIR__ . "/../../Backend/ChurchManager.php";
require_once __DIR__ . "/../../Backend/PersonManager.php";
require_once __DIR__ . "/../../Backend/LanguageSupport.php";
SessionManager::validateUserInPage('userContact.php');
//Get File contest from template
$string = file_get_contents("template/UserContact.html");
//Remplace the nav
$string = str_replace("|NavBar|", SessionManager::getNavBar(), $string);
//Get All Contacts
$contacts = SessionManager::getContacts(new User($_SESSION["user_id"]));
$stringContact = "";
if ($contacts !== NULL) {
foreach ($contacts as $key => $value) {
if ($value->getId() == $_SESSION["user_id"]) {
continue;
}
$lastMessage = SessionManager::getConversation($value->getId(), $_SESSION["user_id"]);
$lastMessage = $lastMessage[0];
$stringC = "";
if ($lastMessage->getReceived() == '1') {
$stringC = $stringC . '✓';
} else {
$stringC = $stringC . 'X';
}
if ($lastMessage->getSeen() == '1') {
$stringC = $stringC . '✓ ';
} else {
$stringC = $stringC . ' ';
示例11: file_get_contents
//Get File contest from template
$string = file_get_contents("template/MarriageInsertion.html");
//Remplace the nav
$string = str_replace("|title|", 'Change Marriage', $string);
$string = str_replace("|NavBar|", SessionManager::getNavBar(), $string);
//Get The Data of the Marriage
$idMarriage = $_GET["id"];
$marriage = MarriageManager::getSingleMarriage('id', $idMarriage);
$boyfriendId = $marriage->getIdBoyfriend();
$boyfriend = PersonManager::getSinglePerson('id', $boyfriendId);
$girlfriendId = $marriage->getIdGirlfriend();
$girlfriend = PersonManager::getSinglePerson('id', $girlfriendId);
$churchMarriageId = $marriage->getIdChurchMarriage();
$churchProcessId = $marriage->getIdChurchProcess();
$marriageDate = DatabaseManager::databaseDateToSingleDate($marriage->getCelebrationDate());
SessionManager::validateUserInPage('marriageChange.php', $churchMarriageId, $churchProcessId);
$idRector = $marriage->getIdRector();
$objRector = RectorManager::getSingleRector('id', $idRector);
$objPerRect = PersonManager::getSinglePerson('id', $objRector->getIdPerson());
$nameRector = $objPerRect->getFullNameBeginName();
$idBookRegistry = $marriage->getIdBookRegistry();
$bookRegistry = MarriageManager::getSingleMarriageRegistry('id', $idBookRegistry);
$idGodFather = $marriage->getIdGodFather();
$idGodMother = $marriage->getIdGodMother();
$godMother = PersonManager::getSinglePerson('id', $idGodMother);
$godFather = PersonManager::getSinglePerson('id', $idGodFather);
$idWitness1 = $marriage->getIdWitness1();
$idWitness2 = $marriage->getIdWitness2();
$witness1 = PersonManager::getSinglePerson('id', $idWitness1);
$witness2 = PersonManager::getSinglePerson('id', $idWitness2);
if ($godFather === NULL) {
示例12:
<?php
require_once __DIR__ . "/../../Backend/SessionManager.php";
SessionManager::validateUserInPage('index.php');
$string = file_get_contents("template/index.html");
echo $string;
示例13:
<?php
require_once __DIR__ . "/../../Backend/SessionManager.php";
require_once __DIR__ . "/../../Backend/ChurchManager.php";
require_once __DIR__ . "/../../Backend/PersonManager.php";
require_once __DIR__ . "/../../Backend/LanguageSupport.php";
SessionManager::validateUserInPage('churchInsertion.php');
//Get File contest from template
$string = file_get_contents("template/ChurchInsertion.html");
//Remplace the nav
$string = str_replace("|title|", 'Insert Church', $string);
$string = str_replace("|NavBar|", SessionManager::getNavBar(), $string);
//Create a String of options of Vicars
$vicarString = "";
$vicars = ChurchManager::getAllVicars();
foreach ($vicars as $singleVicar) {
$vicarString = $vicarString . "<option> " . $singleVicar->getName() . "</option>\n";
}
$string = str_replace("|VicarOptions|", $vicarString, $string);
//Create a String of options of Deans
$deanString = "";
$deans = ChurchManager::getAllDeans();
foreach ($deans as $singleDean) {
$deanString = $deanString . "<option> " . $singleDean->getName() . "</option>\n";
}
$string = str_replace("|DeanOptions|", $deanString, $string);
//Create a String of options of Cities
$citiesString = "";
$cities = CityManager::getAllCities();
foreach ($cities as $singleCity) {
$citiesString = $citiesString . "<option> " . $singleCity->getName() . "</option>\n";
示例14:
<?php
require_once __DIR__ . "/../../Backend/SessionManager.php";
require_once __DIR__ . "/../../Backend/MarriageManager.php";
require_once __DIR__ . "/../../Backend/PersonManager.php";
require_once __DIR__ . "/../../Backend/RectorManager.php";
require_once __DIR__ . "/../../Backend/LanguageSupport.php";
SessionManager::validateUserInPage('marriageInsertion.php');
//Get File contest from template
$string = file_get_contents("template/MarriageInsertion.html");
//Remplace the nav
$string = str_replace("|title|", 'Insert Marriage', $string);
$string = str_replace("|NavBar|", SessionManager::getNavBar(), $string);
//Create a String of options of Last Church
$churchString = "";
$churchs = ChurchManager::getAllChurchs('name');
foreach ($churchs as $singleChurch) {
if ($singleChurch->getId() == $_SESSION["user_church"]) {
$churchString = $churchString . "<option selected> " . $singleChurch->getName() . "</option>\n";
} else {
$churchString = $churchString . "<option> " . $singleChurch->getName() . "</option>\n";
}
}
$string = str_replace("|ChurchOptionMarriage|", $churchString, $string);
$string = str_replace("|ChurchOptionProcess|", $churchString, $string);
//Create the button
$saveButton = '<button type="button" class="btn btn-success" onclick=\'validateData("marriageInsertion.php", "insert")\'>
<img src="../icons/save.png" width="50px"><br>
<strong>^Save^</strong>
</button>';
$cancelButton = '<button type="button" class="btn btn-success" onclick=\'href("marriageMenu.php")\'>
示例15: str_replace
$string = str_replace("|title|", 'Change Baptism', $string);
$string = str_replace("|NavBar|", SessionManager::getNavBar(), $string);
//Get The Data of the Baptism
$idBaptism = $_GET["id"];
$baptism = BaptismManager::getSingleBaptism('id', $idBaptism);
$ownerId = $baptism->getIdOwner();
$owner = PersonManager::getSinglePerson('id', $ownerId);
$owner->getIdFather() !== NULL ? $fatherId = $owner->getIdFather() : ($fatherId = 0);
$owner->getIdMother() !== NULL ? $motherId = $owner->getIdMother() : ($motherId = 0);
$gender = $owner->getGender();
$churchId = $baptism->getIdChurch();
$bornDate = DatabaseManager::databaseDateToSingleDate($baptism->getBornDate());
$bornPlace = $baptism->getBornPlace();
$baptismDate = DatabaseManager::databaseDateToSingleDate($baptism->getCelebrationDate());
//Validate the user
SessionManager::validateUserInPage('baptismChange.php', $churchId);
$idRector = $baptism->getIdRector();
$objRector = RectorManager::getSingleRector('id', $idRector);
$objPerRect = PersonManager::getSinglePerson('id', $objRector->getIdPerson());
$nameRector = $objPerRect->getFullNameBeginName();
$idCivilRegistry = $baptism->getIdCivilRegistry();
$civil = BaptismManager::getSingleCivilRegistry('id', $idCivilRegistry);
$office = BaptismManager::getSingleOfficeCivilRegistry('id', $civil->getIdOffice());
$idBookRegistry = $baptism->getIdBookRegistry();
$bookRegistry = BaptismManager::getSingleBaptismRegistry('id', $idBookRegistry);
$idGodFather = $baptism->getIdGodFather();
$idGodMother = $baptism->getIdGodMother();
$godMother = PersonManager::getSinglePerson('id', $idGodMother);
$godFather = PersonManager::getSinglePerson('id', $idGodFather);
if ($godFather === NULL) {
$godFather = new Person();