code
stringlengths
1
2.01M
language
stringclasses
1 value
<?php /** * Smarty Internal Plugin Compile Capture * * Compiles the {capture} tag * * @package Smarty * @subpackage Compiler * @author Uwe Tews */ /** * Smarty Internal Plugin Compile Capture Class */ class Smarty_Internal_Compile_Capture extends Smarty_Internal_CompileBase { // attribute definitions ...
PHP
<?php /** * Smarty Internal Plugin Compile Ldelim * * Compiles the {ldelim} tag * @package Smarty * @subpackage Compiler * @author Uwe Tews */ /** * Smarty Internal Plugin Compile Ldelim Class */ class Smarty_Internal_Compile_Ldelim extends Smarty_Internal_CompileBase { /** * Compiles code for the...
PHP
<?php /** * Smarty Internal Plugin Compile Config Load * * Compiles the {config load} tag * * @package Smarty * @subpackage Compiler * @author Uwe Tews */ /** * Smarty Internal Plugin Compile Config Load Class */ class Smarty_Internal_Compile_Config_Load extends Smarty_Internal_CompileBase { // attribut...
PHP
<?php /** * Smarty Internal Plugin Compile Debug * * Compiles the {debug} tag * It opens a window the the Smarty Debugging Console * @package Smarty * @subpackage Compiler * @author Uwe Tews */ /** * Smarty Internal Plugin Compile Debug Class */ class Smarty_Internal_Compile_Debug extends Smarty_Internal_...
PHP
<?php /** * Smarty Internal Plugin Compile Continue * * Compiles the {continue} tag * * @package Smarty * @subpackage Compiler * @author Uwe Tews */ /** * Smarty Internal Plugin Compile Continue Class */ class Smarty_Internal_Compile_Continue extends Smarty_Internal_CompileBase { // attrib...
PHP
<?php /** * Smarty Internal Plugin Filter * * External Smarty filter methods * * @package Smarty * @author Uwe Tews */ /** * Class for filter methods */ class Smarty_Internal_Filter { function __construct($smarty) { $this->smarty = $smarty; } /** * Registers a filter functio...
PHP
<?php /** * Smarty Internal Plugin Smarty Template Compiler Base * * This file contains the basic classes and methodes for compiling Smarty templates with lexer/parser * * @package Smarty * @subpackage Compiler * @author Uwe Tews */ require_once("smarty_internal_parsetree.php"); /** * Class SmartyTemplat...
PHP
<?php /** * Smarty Internal Plugin Compile Function * * Compiles the {function} {/function} tags * * @package Smarty * @subpackage Compiler * @author Uwe Tews */ /** * Smarty Internal Plugin Compile Function Class */ class Smarty_Internal_Compile_Function extends Smarty_Internal_CompileBase { // attribut...
PHP
<?php /** * Smarty Internal Plugin Compile Include * * Compiles the {include} tag * * @package Smarty * @subpackage Compiler * @author Uwe Tews */ /** * Smarty Internal Plugin Compile Include Class */ class Smarty_Internal_Compile_Include extends Smarty_Internal_CompileBase { // caching mode to create n...
PHP
<?php /** * Smarty Internal Plugin Compile Block Plugin * * Compiles code for the execution of block plugin * * @package Smarty * @subpackage Compiler * @author Uwe Tews */ /** * Smarty Internal Plugin Compile Block Plugin Class */ class Smarty_Internal_Compile_Private_Block_Plugin extends Smarty_Internal...
PHP
<?php /** * Smarty Internal Plugin Data * * This file contains the basic classes and methodes for template and variable creation * * @package Smarty * @subpackage Templates * @author Uwe Tews */ /** * Base class with template and variable methodes */ class Smarty_Internal_Data { // class used for tem...
PHP
<?php /** * Smarty Internal Plugin Compile If * * Compiles the {if} {else} {elseif} {/if} tags * * @package Smarty * @subpackage Compiler * @author Uwe Tews */ /** * Smarty Internal Plugin Compile If Class */ class Smarty_Internal_Compile_If extends Smarty_Internal_CompileBase { /** * Compiles co...
PHP
<?php /** * Smarty Internal Plugin Compile Registered Block * * Compiles code for the execution of a registered block function * * @package Smarty * @subpackage Compiler * @author Uwe Tews */ /** * Smarty Internal Plugin Compile Registered Block Class */ class Smarty_Internal_Compile_Private...
PHP
<?php /** * Smarty Internal Plugin Compile Foreach * * Compiles the {foreach} {foreachelse} {/foreach} tags * * @package Smarty * @subpackage Compiler * @author Uwe Tews */ /** * Smarty Internal Plugin Compile Foreach Class */ class Smarty_Internal_Compile_Foreach extends Smarty_Internal_CompileBase { //...
PHP
<?php /** * Smarty Internal Plugin Resource File * * Implements the file system as resource for Smarty templates * * @package Smarty * @subpackage TemplateResources * @author Uwe Tews */ /** * Smarty Internal Plugin Resource File */ class Smarty_Internal_Resource_File { public function __construct($...
PHP
<?php /** * Smarty Internal Plugin Resource PHP * * Implements the file system as resource for PHP templates * * @package Smarty * @subpackage TemplateResources * @author Uwe Tews */ /** * Smarty Internal Plugin Resource PHP */ class Smarty_Internal_Resource_PHP { /** * Class constructor, enable...
PHP
<?php /** * Smarty Internal Plugin Compile Include PHP * * Compiles the {include_php} tag * * @package Smarty * @subpackage Compiler * @author Uwe Tews */ /** * Smarty Internal Plugin Compile Insert Class */ class Smarty_Internal_Compile_Include_Php extends Smarty_Internal_CompileBase { // attribute def...
PHP
<?php /** * Smarty Internal Plugin Configfileparser * * This is the config file parser. * It is generated from the internal.configfileparser.y file * @package Smarty * @subpackage Compiler * @author Uwe Tews */ class TPC_yyToken implements ArrayAccess { public $string = ''; public $metadata = array(); fun...
PHP
<?php /** * Smarty Internal Plugin Resource Registered * * Implements the registered resource for Smarty template * * @package Smarty * @subpackage TemplateResources * @author Uwe Tews */ /** * Smarty Internal Plugin Resource Registered */ class Smarty_Internal_Resource_Registered { public function ...
PHP
<?php /** * Smarty plugin * * @package Smarty * @subpackage Security * @author Uwe Tews */ /** * This class does contain the security settings */ class Smarty_Security { /** * This determines how Smarty handles "<?php ... ?>" tags in templates. * possible values: * <ul> * <li>Smart...
PHP
<?php /** * Smarty Internal Plugin CompileBase * * @package Smarty * @subpackage Compiler * @author Uwe Tews */ /** * This class does extend all internal compile plugins */ // abstract class Smarty_Internal_CompileBase implements TagCompilerInterface class Smarty_Internal_CompileBase { public $required_att...
PHP
<?php /** * Smarty Internal Plugin Compile Insert * * Compiles the {insert} tag * * @package Smarty * @subpackage Compiler * @author Uwe Tews */ /** * Smarty Internal Plugin Compile Insert Class */ class Smarty_Internal_Compile_Insert extends Smarty_Internal_CompileBase { // attribute definitions pu...
PHP
<?php /** * Smarty Internal Plugin Compile Break * * Compiles the {break} tag * * @package Smarty * @subpackage Compiler * @author Uwe Tews */ /** * Smarty Internal Plugin Compile Break Class */ class Smarty_Internal_Compile_Break extends Smarty_Internal_CompileBase { // attribute definiti...
PHP
<?php /** * Smarty Internal Plugin Compile Object Block Function * * Compiles code for registered objects as block function * * @package Smarty * @subpackage Compiler * @author Uwe Tews */ /** * Smarty Internal Plugin Compile Object Block Function Class */ class Smarty_Internal_Compile_Private_Object_Bloc...
PHP
<?php /** * Smarty Internal Plugin Register * * External Smarty methods register/unregister * * @package Smarty * @author Uwe Tews */ /** * Class for register/unregister methods */ class Smarty_Internal_Register { function __construct($smarty) { $this->smarty = $smarty; } /** ...
PHP
<?php /** * Smarty Internal Plugin Compile Function_Call * * Compiles the calls of user defined tags defined by {function} * * @package Smarty * @subpackage Compiler * @author Uwe Tews */ /** * Smarty Internal Plugin Compile Function_Call Class */ class Smarty_Internal_Compile_Call extends Smarty_Interna...
PHP
<?php /** * Smarty Internal Plugin Compile Assign * * Compiles the {assign} tag * * @package Smarty * @subpackage Compiler * @author Uwe Tews */ /** * Smarty Internal Plugin Compile Assign Class */ class Smarty_Internal_Compile_Assign extends Smarty_Internal_CompileBase { /** * Compiles code for...
PHP
<?php /** * Smarty Internal Plugin Compile While * * Compiles the {while} tag * * @package Smarty * @subpackage Compiler * @author Uwe Tews */ /** * Smarty Internal Plugin Compile While Class */ class Smarty_Internal_Compile_While extends Smarty_Internal_CompileBase { /** * Compiles code for the {while} tag...
PHP
<?php /** * Smarty Internal Plugin Compile extend * * Compiles the {extends} tag * * @package Smarty * @subpackage Compiler * @author Uwe Tews */ /** * Smarty Internal Plugin Compile extend Class */ class Smarty_Internal_Compile_Extends extends Smarty_Internal_CompileBase { // attribute definitions ...
PHP
<?php /** * Smarty Internal Plugin Templatelexer * * This is the lexer to break the template source into tokens * @package Smarty * @subpackage Compiler * @author Uwe Tews */ /** * Smarty Internal Plugin Templatelexer */ class Smarty_Internal_Templatelexer { public $data; public $counter; public $token; ...
PHP
<?php /** * Project: Smarty: the PHP compiling template engine * File: smarty_internal_wrapper.php * SVN: $Id: $ * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundati...
PHP
<?php /** * Smarty Internal Plugin Config * * Main class for config variables * * @ignore * @package Smarty * @subpackage Config * @author Uwe Tews */ class Smarty_Internal_Config { static $config_objects = array(); public function __construct($config_resource, $smarty, $data = null) { ...
PHP
<?php /** * Smarty Internal Plugin Compile Append * * Compiles the {append} tag * * @package Smarty * @subpackage Compiler * @author Uwe Tews */ /** * Smarty Internal Plugin Compile Append Class */ class Smarty_Internal_Compile_Append extends Smarty_Internal_Compile_Assign { // attribute definitions ...
PHP
<?php /** * Smarty Internal Plugin Nocache Insert * * Compiles the {insert} tag into the cache file * * @package Smarty * @subpackage Compiler * @author Uwe Tews */ /** * Smarty Internal Plugin Compile Insert Class */ class Smarty_Internal_Nocache_Insert { /** * Compiles code fo...
PHP
<?php /** * Description of Util * * @author Magno */ class Util { public static function searchPosWordInBlankSpace($string){ for ($i = 0; $i < strlen($string); $i++) { if(strcmp($string, " ") != 0) return $i; } return -1; } public static function isT...
PHP
<?php /** * Description of Constantes * * @author Magno */ class Constantes { public static $URL_CRIPTOGRAFADA = false; public static $RES_WORDS_COLUMNS = array("PRIMARY KEY","INDEX","UNIQUE","CONSTRAINT"); public static $PRIMARY_KEY = "PRIMARY KEY"; public static $INDEX = "INDEX"; public...
PHP
<?php $dirBase = 'temp_gen'; // the name of your zip archive to be created $zipfile = $dirBase."/".$name.'.zip'; // DO NOT TOUCH BELOW IF YOU DONT KNOW WHAT IT IS // all the process below $filenames = array(); // function that browse the directory and all subdirectories inside function browse($dir) { global $fil...
PHP
<?php /** * Simple script to combine and compress CSS files, to reduce the number of file request the server has to handle. * For more options/flexibility, see Minify : http://code.google.com/p/minify/ */ // If no file requested if (!isset($_GET['files']) or strlen($_GET['files']) == 0) { header('Status: ...
PHP
<?php set_time_limit(0); /** * Description of GenerateAction * * @author Magno */ class GeneratorAction extends BaseAction{ public static $VIEW_GENERATOR = 'view/steps/'; public function GeneratorAction(){ parent::__construct(); } public function getView(){ return GeneratorActio...
PHP
<?php /** * Description of SystemAction * * Classe Principal das Actions : * * Quebra a url, montando a classe action passada e seu metodo * e depois o executa * Tambem separa a string com os parametros * * @author Magno */ class SystemAction { private $url; private $actionClass; private $action...
PHP
<?php #define('SMARTY_SPL_AUTOLOAD',1); require dirname(__FILE__).'/../include/php/smarty/Smarty.class.php'; /** * Description of BaseAction * * Classe Base para as outras Actions que fore existir * * @author Magno */ class BaseAction { private $input; private $output; private...
PHP
<?php /** * Description of TabelaMeta * * @author Magno */ class TableMeta { private $name; private $attributes; private $FKReferences; private $FKReferenciadas; private $crud; function __construct($name = "", $attributes = null, $FKReferences = null, $FKReferenciadas = null, $crud...
PHP
<?php /** * Description of AtributoMeta * * @author Magno */ class AttributeMeta { private $name; private $type; private $notNull; private $primaryKey; private $foreignKey; private $default; private $important; private $comboDisplay; function __construct($name, $type, $...
PHP
<?php /** * Description of FKReferenceMeta * * @author Magno */ class FKReferenceMeta { private $name; private $attributes; private $tableFK; private $tableReference; private $references; private $cardinality; private $sideObject; private $extends; private $typeForm; functi...
PHP
<?php ?>
PHP
<?php function load() { header('Content-Type: text/text; charset=GBK'); $code = $_GET['code']; if ($code == "") { header('Location: https://oauth.taobao.com/authorize?response_type=code&redirect_uri=http://eagleonhill.oicp.net/editor/taobao.php&client_id=21134472'); } else { chdir('../../donation...
PHP
<?php function load() { $postData = ''; foreach ($_POST as $key => $value) { $value = urlencode(stripslashes($value)); $postData .= "&$key=$value"; } $postData = substr($postData, 1); if (!isset($_POST['item_number']) || $_POST['item_number'] != 'npax') { echo 'Not relevant item'; ...
PHP
<?php file_put_contents($_POST['file'], $_POST['data']); ?>
PHP
<?php /* * Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved. * For licensing, see LICENSE.html or http://ckeditor.com/license */ /** * \brief CKEditor class that can be used to create editor * instances in PHP pages on server side. * @see http://ckeditor.com * * Sample usage: ...
PHP
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <!-- Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license --> <html xmlns="http://www.w3.org/1999/xhtml"> ...
PHP
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <!-- Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license --> <html xmlns="http://www.w3.org/1999/xhtml"> ...
PHP
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <!-- Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license --> <html xmlns="http://www.w3.org/1999/xhtml"> ...
PHP
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <!-- Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license --> <html xmlns="http://www.w3.org/1999/xhtml"> ...
PHP
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <!-- Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license --> <html xmlns="http://www.w3.org/1999/xhtml"> ...
PHP
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <?php /* Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ ?> <html xmlns="http://www.w3.org/1999/x...
PHP
<?php /* * Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved. * For licensing, see LICENSE.html or http://ckeditor.com/license */ /** * \brief CKEditor class that can be used to create editor * instances in PHP pages on server side. * @see http://ckeditor.com * * Sample usage: ...
PHP
<?php /* * Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved. * For licensing, see LICENSE.html or http://ckeditor.com/license */ /*! \mainpage CKEditor - PHP server side intergation * \section intro_sec CKEditor * Visit <a href="http://ckeditor.com">CKEditor web site</a> to find ...
PHP
<!DOCTYPE html> <html lang="en"> <head> <?php $this->load->view('admin/meta'); ?> </head> <body> <?php $this->load->view('admin/nav'); ?> <div class="container"> <h1>Bootstrap starter template</h1> <p>Use this document as a way to quick start any new project.<br> All you get...
PHP
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); /* | ------------------------------------------------------------------- | DATABASE CONNECTIVITY SETTINGS | ------------------------------------------------------------------- | This file will contain the settings needed to access your database...
PHP
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); /* | ------------------------------------------------------------------------- | URI ROUTING | ------------------------------------------------------------------------- | This file lets you re-map URI requests to specific controller functions. ...
PHP
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); /* |-------------------------------------------------------------------------- | File and Directory Modes |-------------------------------------------------------------------------- | | These prefs are used when checking and setting modes when...
PHP
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); /* |-------------------------------------------------------------------------- | Base Site URL |-------------------------------------------------------------------------- | | URL to your CodeIgniter root. Typically this will be your base URL, ...
PHP
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); /* | ------------------------------------------------------------------- | AUTO-LOADER | ------------------------------------------------------------------- | This file specifies which systems should be loaded by default. | | In order to keep t...
PHP
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); /* | ------------------------------------------------------------------- | MIME TYPES | ------------------------------------------------------------------- | This file contains an array of mime types. It is used by the | Upload class to help i...
PHP
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); /* | ------------------------------------------------------------------- | Foreign Characters | ------------------------------------------------------------------- | This file contains an array of foreign characters for transliteration | conver...
PHP
<?php defined('BASEPATH') OR exit('No direct script access allowed'); /* |-------------------------------------------------------------------------- | Enable/Disable Migrations |-------------------------------------------------------------------------- | | Migrations are disabled by default but should be enabled ...
PHP
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); /* | ------------------------------------------------------------------- | USER AGENT TYPES | ------------------------------------------------------------------- | This file contains four arrays of user agent data. It is used by the | User Age...
PHP
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); /* | ------------------------------------------------------------------------- | Hooks | ------------------------------------------------------------------------- | This file lets you define "hooks" to extend CI without hacking the core | files...
PHP
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); /* | ------------------------------------------------------------------------- | Profiler Sections | ------------------------------------------------------------------------- | This file lets you determine whether or not various sections of Pro...
PHP
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); $_doctypes = array( 'xhtml11' => '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">', 'xhtml1-strict' => '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/...
PHP
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); /* | ------------------------------------------------------------------- | SMILEYS | ------------------------------------------------------------------- | This file contains an array of smileys for use with the emoticon helper. | Individual ima...
PHP
<html> <head> <title>Upload Form</title> </head> <body> <h3>Your file was successfully uploaded!</h3> <ul> <?php foreach ($upload_data as $item => $value):?> <li><?php echo $item;?>: <?php echo $value;?></li> <?php endforeach; ?> </ul> <p><?php echo anchor('upload', 'Upload Another File!'); ?></p> <...
PHP
<html> <head> <title>Upload Form</title> </head> <body> <?php echo $error;?> <?php echo form_open_multipart('upload/do_upload');?> <input type="file" name="userfile" size="20" /> <br /><br /> <input type="submit" value="upload" /> </form> </body> </html>
PHP
<!DOCTYPE html> <html lang="en"> <head> <?php $this->load->view('admin/meta');?> </head> <body> <?php $this->load->view('admin/nav');?> <div class="container"> <h1>Add Exam for course </h1> <p>From here you can add exam of Online Examination System.</p> <br/> <br/> ...
PHP
<html> <head> <title>Upload Form</title> </head> <body> <h3>Your file was successfully uploaded!</h3> <ul> <?php foreach ($upload_data as $item => $value):?> <li><?php echo $item;?>: <?php echo $value;?></li> <?php endforeach; ?> </ul> <p><?php echo anchor('upload', 'Upload Another File!'); ?></p> <...
PHP
<!DOCTYPE html> <html lang="en"> <head> <?php $this->load->view('admin/meta'); ?> </head> <body> <?php $this->load->view('admin/nav'); ?> <div class="container"> <h1>Bootstrap starter template</h1> <p>Use this document as a way to quick start any new project.<br> All you get is this messa...
PHP
<!DOCTYPE html> <html lang="en"> <head> <?php $this->load->view('admin/meta'); ?> </head> <body> <?php $this->load->view('admin/nav'); ?> <div class="container"> <h1>Add New Course</h1> <p>From here you can add courses of Online Examination System.</p> </br></...
PHP
<!DOCTYPE html> <html lang="en"> <head> <?php $this->load->view('admin/meta'); ?> </head> <body> <?php $this->load->view('admin/nav'); ?> <div class="container"> <h1>Provided Feedback</h1> <p>Manage the feedbacks</p> <br/> <h3 class="pull-left">Recent Feedacks</h3> <table...
PHP
<!DOCTYPE html> <html lang="en"> <head> <?php $this->load->view('admin/meta'); ?> </head> <body> <?php $this->load->view('admin/nav'); ?> <div class="container"> <h1>Edit User</h1> <p>From here you can Edit user of Online Examination System.</p> <br /> <br /> <form class="form-horizontal" ...
PHP
<!DOCTYPE html> <html lang="en"> <head> <?php $this->load->view('admin/meta'); ?> </head> <body> <?php $this->load->view('admin/nav'); ?> <div class="container"> <h1>Manage Exams</h1> <br /> <h3> Recent Exams <span style="font-size: 14px;">(<a href="<?php echo site_url("admin/exams/add"); ?>"> Add E...
PHP
<meta charset="utf-8"> <title><?php echo $page_title ?></title> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="description" content=""> <meta name="author" content=""> <!-- Le styles --> <link href="<?php echo base_url(); ?>assets/css/bootstrap.css" re...
PHP
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');?> <!DOCTYPE html> <html lang="en"> <head> <?php $this->load->view('admin/meta'); ?> </head> <body> <?php $this->load->view('admin/nav'); ?> <div class="container"> <h1>Manage Courses</h1> <p>From here you can manage Co...
PHP
<!DOCTYPE html> <html lang="en"> <head> <?php $this->load->view('admin/meta');?> </head> <body> <?php $this->load->view('admin/nav'); ?> <div class="container"> <h1>Add New Course</h1> <p>From here you can add courses of Online Examination System.</p> </br> </br> <form class="form-horizontal"...
PHP
<!DOCTYPE html> <html lang="en"> <head> <?php $this->load->view('admin/meta'); ?> </head> <body> <?php $this->load->view('admin/nav'); ?> <div class="container"> <h1>Manage Questions</h1> <p>From here you can manage Questions of Online Examination System.</p> <br/> <h3 class="pull-lef...
PHP
<!-- Le javascript ================================================== --> <!-- Placed at the end of the document so the pages load faster --> <script src="<?php echo base_url(); ?>assets/js/jquery.js"></script> <script src="<?php echo base_url(); ?>assets/js/bootstrap-transition.js"></script> <...
PHP
<!DOCTYPE html> <html lang="en"> <head> <?php $this->load->view('admin/meta');?> </head> <body> <?php $this->load->view('admin/nav');?> <div class="container"> <h1>Edit Exam </h1> <p>From here you can Edit exam of Online Examination System.</p> <br/> <br/> ...
PHP
<div class="navbar navbar-inverse navbar-fixed-top"> <div class="navbar-inner"> <div class="container"> <a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse"> <span class="icon-bar"></span> <span class="icon-bar"></span> <span class="icon-bar"></span> </a> <a class="bran...
PHP
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title><?php echo $page_title; ?> </title> <style type="text/css"> ::selection{ background-color: #E13300; color: white; } ::moz-selection{ background-color: #E13300; color: white; } ::webkit-selection{ background-color: #E13300; color: white; } b...
PHP
<!DOCTYPE html> <html lang="en"> <head> <?php $this->load->view('admin/meta'); ?> </head> <body> <?php $this->load->view('admin/nav'); ?> <div class="container"> </br> <h1>Welcome to Online Examination System</h1> <form id='login' action='login.php' method='post'> <fieldset > <h2>Login...
PHP
<!DOCTYPE html> <html lang="en"> <head> <?php $this->load->view('admin/meta'); ?> </head> <body> <?php $this->load->view('admin/nav'); ?> <div class="container"> <h1>Manage Users</h1> <p>From here you can manage users of Online Examination System.</p> <br/> <h3 class="pull-left">Rece...
PHP
<!DOCTYPE html> <html lang="en"> <head> <title>Error</title> <style type="text/css"> ::selection{ background-color: #E13300; color: white; } ::moz-selection{ background-color: #E13300; color: white; } ::webkit-selection{ background-color: #E13300; color: white; } body { background-color: #fff; margin: 40px; font: ...
PHP
<div style="border:1px solid #990000;padding-left:20px;margin:0 0 10px 0;"> <h4>A PHP Error was encountered</h4> <p>Severity: <?php echo $severity; ?></p> <p>Message: <?php echo $message; ?></p> <p>Filename: <?php echo $filepath; ?></p> <p>Line Number: <?php echo $line; ?></p> </div>
PHP
<!DOCTYPE html> <html lang="en"> <head> <title>Database Error</title> <style type="text/css"> ::selection{ background-color: #E13300; color: white; } ::moz-selection{ background-color: #E13300; color: white; } ::webkit-selection{ background-color: #E13300; color: white; } body { background-color: #fff; margin: 40px...
PHP
<!DOCTYPE html> <html lang="en"> <head> <title>404 Page Not Found</title> <style type="text/css"> ::selection{ background-color: #E13300; color: white; } ::moz-selection{ background-color: #E13300; color: white; } ::webkit-selection{ background-color: #E13300; color: white; } body { background-color: #fff; margin: ...
PHP
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); class Exams_m extends CI_Model { function __construct() { // Call the Model constructor parent::__construct(); } function get_exams() { $query = $this->db->get('exam'); ...
PHP
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); class Users_m extends CI_Model { function __construct() { // Call the Model constructor parent::__construct(); } function get_users() { $this->db->select('*, user_type.name as ...
PHP
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); class Questions_m extends CI_Model{ function __construct(){ parent::__construct(); } function get_questions(){ $query = $this->db->get('questions'); return $query->result_array(); } function delete_ques...
PHP
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); class Courses_m extends CI_Model { function __construct() { // Call the Model constructor parent::__construct(); } function get_courses() { $query = $this->db->get('courses'); ...
PHP
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); class Usertype_m extends CI_Model { function __construct() { // Call the Model constructor parent::__construct(); } function get_usertype() { $query = $this->db->get('user_type'); ...
PHP
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); class Welcome extends CI_Controller { /** * Index Page for this controller. * * Maps to the following URL * http://example.com/index.php/welcome * - or - * http://example.com/index.php/welcome/index * - or - * Since this...
PHP