code stringlengths 1 2.01M | language stringclasses 1
value |
|---|---|
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/**
* CodeIgniter
*
* An open source application development framework for PHP 5.1.6 or newer
*
* @package CodeIgniter
* @author ExpressionEngine Dev Team
* @copyright Copyright (c) 2008 - 2011, EllisLab, Inc.
* @license http://codei... | PHP |
<?php
/*
* PHP QR Code encoder
*
* QR Code specifications
*
* Based on libqrencode C library distributed under LGPL 2.1
* Copyright (C) 2006, 2007, 2008, 2009 Kentaro Fukuchi <fukuchi@megaui.net>
*
* PHP QR Code is distributed under LGPL 3
* Copyright (C) 2010 Dominik Dzienia <deltalab at poczta dot fm>
*
* ... | PHP |
<?php
/*
* PHP QR Code encoder
*
* Bitstream class
*
* Based on libqrencode C library distributed under LGPL 2.1
* Copyright (C) 2006, 2007, 2008, 2009 Kentaro Fukuchi <fukuchi@megaui.net>
*
* PHP QR Code is distributed under LGPL 3
* Copyright (C) 2010 Dominik Dzienia <deltalab at poczta dot fm>
*
* This li... | PHP |
<?php
/*
* PHP QR Code encoder
*
* Input encoding class
*
* Based on libqrencode C library distributed under LGPL 2.1
* Copyright (C) 2006, 2007, 2008, 2009 Kentaro Fukuchi <fukuchi@megaui.net>
*
* PHP QR Code is distributed under LGPL 3
* Copyright (C) 2010 Dominik Dzienia <deltalab at poczta dot fm>
*
* Th... | PHP |
<?php
/*
* PHP QR Code encoder
*
* Input splitting classes
*
* Based on libqrencode C library distributed under LGPL 2.1
* Copyright (C) 2006, 2007, 2008, 2009 Kentaro Fukuchi <fukuchi@megaui.net>
*
* PHP QR Code is distributed under LGPL 3
* Copyright (C) 2010 Dominik Dzienia <deltalab at poczta dot fm>
*
*... | PHP |
<?php
/*
* PHP QR Code encoder
*
* Common constants
*
* Based on libqrencode C library distributed under LGPL 2.1
* Copyright (C) 2006, 2007, 2008, 2009 Kentaro Fukuchi <fukuchi@megaui.net>
*
* PHP QR Code is distributed under LGPL 3
* Copyright (C) 2010 Dominik Dzienia <deltalab at poczta dot fm>
*
* This ... | PHP |
<?php
/*
* PHP QR Code encoder
*
* Image output of code using GD2
*
* PHP QR Code is distributed under LGPL 3
* Copyright (C) 2010 Dominik Dzienia <deltalab at poczta dot fm>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public... | PHP |
<?php
/*
* PHP QR Code encoder
*
* Toolset, handy and debug utilites.
*
* PHP QR Code is distributed under LGPL 3
* Copyright (C) 2010 Dominik Dzienia <deltalab at poczta dot fm>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* Li... | PHP |
<?php
/*
* PHP QR Code encoder
*
* Main encoder classes.
*
* Based on libqrencode C library distributed under LGPL 2.1
* Copyright (C) 2006, 2007, 2008, 2009 Kentaro Fukuchi <fukuchi@megaui.net>
*
* PHP QR Code is distributed under LGPL 3
* Copyright (C) 2010 Dominik Dzienia <deltalab at poczta dot fm>
*
* T... | PHP |
<?php
/*
* PHP QR Code encoder
*
* Config file, feel free to modify
*/
define('QR_CACHEABLE', true); // use cache - more disk reads but less CPU power, masks and format templates are stored there
define('QR_CACHE_DIR', dirname(__FILE__).DIR... | PHP |
<?php
/*
* PHP QR Code encoder
*
* Reed-Solomon error correction support
*
* Copyright (C) 2002, 2003, 2004, 2006 Phil Karn, KA9Q
* (libfec is released under the GNU Lesser General Public License.)
*
* Based on libqrencode C library distributed under LGPL 2.1
* Copyright (C) 2006, 2007, 2008, 2009 Kentaro Fuk... | PHP |
<?php
/*
* PHP QR Code encoder
*
* Masking
*
* Based on libqrencode C library distributed under LGPL 2.1
* Copyright (C) 2006, 2007, 2008, 2009 Kentaro Fukuchi <fukuchi@megaui.net>
*
* PHP QR Code is distributed under LGPL 3
* Copyright (C) 2010 Dominik Dzienia <deltalab at poczta dot fm>
*
* This library is... | PHP |
<?php
/*
* PHP QR Code encoder
*
* Root library file, prepares environment and includes dependencies
*
* Based on libqrencode C library distributed under LGPL 2.1
* Copyright (C) 2006, 2007, 2008, 2009 Kentaro Fukuchi <fukuchi@megaui.net>
*
* PHP QR Code is distributed under LGPL 3
* Copyright (C) 2010 Dominik... | PHP |
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/**
* CodeIgniter
*
* An open source application development framework for PHP 5.1.6 or newer
*
* @package CodeIgniter
* @author ExpressionEngine Dev Team
* @copyright Copyright (c) 2008 - 2011, EllisLab, Inc.
* @license http://codei... | PHP |
<?php defined('BASEPATH') OR exit('No direct script access allowed');
/**
* CodeIgniter
*
* An open source application development framework for PHP 5.1.6 or newer
*
* @package CodeIgniter
* @author EllisLab Dev Team
* @copyright Copyright (c) 2006 - 2012, EllisLab, Inc.
* @license http://codeigniter.com/use... | PHP |
<?php
/**
* PHP QR Code porting for Codeigniter
*
* @package CodeIgniter
* @subpackage Libraries
* @category Libraries
* @porting author dwi.setiyadi@gmail.com
* @original author http://phpqrcode.sourceforge.net/
*
* @version 1.0
*/
class Ciqrcode
{
var $cacheable = true;
... | PHP |
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/**
* CodeIgniter
*
* An open source application development framework for PHP 5.1.6 or newer
*
* @package CodeIgniter
* @author ExpressionEngine Dev Team
* @copyright Copyright (c) 2008 - 2011, EllisLab, Inc.
* @license htt... | PHP |
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/**
* CodeIgniter
*
* An open source application development framework for PHP 5.1.6 or newer
*
* @package CodeIgniter
* @author ExpressionEngine Dev Team
* @copyright Copyright (c) 2008 - 2011, EllisLab, Inc.
* @license http://codei... | PHP |
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/**
* CodeIgniter
*
* An open source application development framework for PHP 4.3.2 or newer
*
* @package CodeIgniter
* @author ExpressionEngine Dev Team
* @copyright Copyright (c) 2006 - 2012 EllisLab, Inc.
* @license http://codeign... | PHP |
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/**
* CodeIgniter
*
* An open source application development framework for PHP 5.1.6 or newer
*
* @package CodeIgniter
* @author ExpressionEngine Dev Team
* @copyright Copyright (c) 2006 - 2012 EllisLab, Inc.
* @license http://codeign... | PHP |
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/**
* CodeIgniter
*
* An open source application development framework for PHP 4.3.2 or newer
*
* @package CodeIgniter
* @author ExpressionEngine Dev Team
* @copyright Copyright (c) 2006 - 2012 EllisLab, Inc.
* @license http://codeign... | PHP |
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/**
* CodeIgniter
*
* An open source application development framework for PHP 4.3.2 or newer
*
* @package CodeIgniter
* @author ExpressionEngine Dev Team
* @copyright Copyright (c) 2006 - 2012 EllisLab, Inc.
* @license http://codeign... | PHP |
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/**
* CodeIgniter
*
* An open source application development framework for PHP 4.3.2 or newer
*
* @package CodeIgniter
* @author ExpressionEngine Dev Team
* @copyright Copyright (c) 2006 - 2012 EllisLab, Inc.
* @license http://codeign... | PHP |
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/**
* CodeIgniter
*
* An open source application development framework for PHP 5.1.6 or newer
*
* @package CodeIgniter
* @author ExpressionEngine Dev Team
* @copyright Copyright (c) 2008 - 2011, EllisLab, Inc.
* @license http://codei... | PHP |
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/**
* CodeIgniter
*
* An open source application development framework for PHP 5.1.6 or newer
*
* @package CodeIgniter
* @author EllisLab Dev Team
* @copyright Copyright (c) 2006 - 2012, EllisLab, Inc.
* @license http://codeigniter.c... | PHP |
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/**
* CodeIgniter
*
* An open source application development framework for PHP 5.1.6 or newer
*
* @package CodeIgniter
* @author ExpressionEngine Dev Team
* @copyright Copyright (c) 2008 - 2011, EllisLab, Inc.
* @license http://codei... | PHP |
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/**
* CodeIgniter
*
* An open source application development framework for PHP 5.1.6 or newer
*
* @package CodeIgniter
* @author ExpressionEngine Dev Team
* @copyright Copyright (c) 2008 - 2011, EllisLab, Inc.
* @license http://codei... | PHP |
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/**
* CodeIgniter
*
* An open source application development framework for PHP 5.1.6 or newer
*
* @package CodeIgniter
* @author ExpressionEngine Dev Team
* @copyright Copyright (c) 2008 - 2011, EllisLab, Inc.
* @license http://codei... | PHP |
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/**
* CodeIgniter
*
* An open source application development framework for PHP 5.1.6 or newer
*
* @package CodeIgniter
* @author ExpressionEngine Dev Team
* @copyright Copyright (c) 2008 - 2011, EllisLab, Inc.
* @license http://codei... | PHP |
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/**
* CodeIgniter
*
* An open source application development framework for PHP 5.1.6 or newer
*
* @package CodeIgniter
* @author ExpressionEngine Dev Team
* @copyright Copyright (c) 2008 - 2011, EllisLab, Inc.
* @license http://codei... | PHP |
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/**
* CodeIgniter
*
* An open source application development framework for PHP 5.1.6 or newer
*
* @package CodeIgniter
* @author ExpressionEngine Dev Team
* @copyright Copyright (c) 2008 - 2011, EllisLab, Inc.
* @license http://codei... | PHP |
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/**
* CodeIgniter
*
* An open source application development framework for PHP 5.1.6 or newer
*
* @package CodeIgniter
* @author ExpressionEngine Dev Team
* @copyright Copyright (c) 2008 - 2011, EllisLab, Inc.
* @license http://codei... | PHP |
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/**
* CodeIgniter
*
* An open source application development framework for PHP 5.1.6 or newer
*
* @package CodeIgniter
* @author ExpressionEngine Dev Team
* @copyright Copyright (c) 2008 - 2011, EllisLab, Inc.
* @license http://codei... | PHP |
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/**
* CodeIgniter
*
* An open source application development framework for PHP 5.1.6 or newer
*
* @package CodeIgniter
* @author ExpressionEngine Dev Team
* @copyright Copyright (c) 2008 - 2011, EllisLab, Inc.
* @license http://codei... | PHP |
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/**
* CodeIgniter
*
* An open source application development framework for PHP 5.1.6 or newer
*
* @package CodeIgniter
* @author ExpressionEngine Dev Team
* @copyright Copyright (c) 2008 - 2011, EllisLab, Inc.
* @license http://codei... | PHP |
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/**
* CodeIgniter
*
* An open source application development framework for PHP 5.1.6 or newer
*
* @package CodeIgniter
* @author ExpressionEngine Dev Team
* @copyright Copyright (c) 2008 - 2011, EllisLab, Inc.
* @license http://codei... | PHP |
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/**
* CodeIgniter
*
* An open source application development framework for PHP 5.1.6 or newer
*
* @package CodeIgniter
* @author ExpressionEngine Dev Team
* @copyright Copyright (c) 2008 - 2011, EllisLab, Inc.
* @license http://codei... | PHP |
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/**
* CodeIgniter
*
* An open source application development framework for PHP 5.1.6 or newer
*
* @package CodeIgniter
* @author ExpressionEngine Dev Team
* @copyright Copyright (c) 2008 - 2011, EllisLab, Inc.
* @license http://codei... | PHP |
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/**
* CodeIgniter
*
* An open source application development framework for PHP 5.1.6 or newer
*
* @package CodeIgniter
* @author ExpressionEngine Dev Team
* @copyright Copyright (c) 2008 - 2011, EllisLab, Inc.
* @license http://codei... | PHP |
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/**
* CodeIgniter
*
* An open source application development framework for PHP 5.1.6 or newer
*
* @package CodeIgniter
* @author ExpressionEngine Dev Team
* @copyright Copyright (c) 2008 - 2011, EllisLab, Inc.
* @license http://codei... | PHP |
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/**
* CodeIgniter
*
* An open source application development framework for PHP 5.1.6 or newer
*
* @package CodeIgniter
* @author ExpressionEngine Dev Team
* @copyright Copyright (c) 2008 - 2011, EllisLab, Inc.
* @license http://codei... | PHP |
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/**
* CodeIgniter
*
* An open source application development framework for PHP 5.1.6 or newer
*
* @package CodeIgniter
* @author ExpressionEngine Dev Team
* @copyright Copyright (c) 2008 - 2011, EllisLab, Inc.
* @license http://codeig... | PHP |
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/**
* CodeIgniter
*
* An open source application development framework for PHP 5.1.6 or newer
*
* @package CodeIgniter
* @author ExpressionEngine Dev Team
* @copyright Copyright (c) 2008 - 2011, EllisLab, Inc.
* @license http://codei... | PHP |
<?php
print 1; | PHP |
<?php
// ===== phpLiteAdmin build script =====
// === Build directives that can appear in the source code ===
//
// # EMBED <filename or glob pattern> [ | <function> [ | ...] ]
// Embeds an external file in the source code as a gzipped and base64-encoded string;
// optional filter functions can be "piped" at t... | PHP |
<?php
//
// This is sample configuration file
//
// You can configure phpliteadmin in one of 2 ways:
// 1. Rename phpliteadmin.config.sample.php to phpliteadmin.config.php and change parameters in there.
// You can set only your custom settings in phpliteadmin.config.php. All other settings will be set to def... | PHP |
<?php
// English language-texts.
# REMOVE_FROM_BUILD
// This file is only meant as a basis for you to do your own translation!
# END REMOVE_FROM_BUILD
// Read our wiki on how to translate: http://code.google.com/p/phpliteadmin/wiki/Localization
$lang = array(
"direction" => "LTR",
"date_format" => 'g:ia \o\n ... | PHP |
<?php
// German language file by Christopher Kramer (crazy4chrissi)
// Read our wiki on how to translate: http://code.google.com/p/phpliteadmin/wiki/Localization
$lang = array(
"direction" => "LTR",
"date_format" => '\a\m d.m.Y \u\m H:i:s (T)',
"ver" => "Version",
"for" => "für",
"to" => "in",
"go" => "L... | PHP |
<?php
// Chinese language-texts for phpLiteAdmin
// Read our wiki on how to translate: http://code.google.com/p/phpliteadmin/wiki/Localization
$lang = array(
"direction" => "LTR",
"date_format" => 'Y/m/d H:i:s', // see http://php.net/manual/en/function.date.php for what the letters stand for
"ver" => "版本",
... | PHP |
<?php
// Russian language file by Boris Kurshev (13dagger)
// Read our wiki on how to translate: http://code.google.com/p/phpliteadmin/wiki/Localization
$lang = array(
"direction" => "LTR",
"date_format" => 'g:ia \o\n F j, Y (T)', // see http://php.net/manual/en/function.date.php for what the letters stand for
... | PHP |
<?php
// Italian language
// file by FRANCO TASSI - franco7tassi@gmail.com
// (http://www.linkedin.com/profile/view?id=73367896)
// (http://www.facebook.com/franco.tassi)
// Rev.0 - 25.3.2013
// Read our wiki on how to translate: http://code.google.com/p/phpliteadmin/wiki/Localization
$lang = array(
"direc... | PHP |
<?php
// French language-texts by Olivier Briat (nospam@briat.org)
// Read our wiki on how to translate: http://code.google.com/p/phpliteadmin/wiki/Localization
$lang = array(
"direction" => "LTR",
"date_format" => '\à G\hi \l\e d/m/Y (T)', // see http://php.net/manual/en/function.date.php for what the letters ... | PHP |
<?php
// Español LatinoAmericano.
// Traducido por Leandro G. Ortega - SuperBalgas - leandro@g-ortega.com.ar
// Idioma: Español Latino Americano - Argentina
$lang = array(
// Agregado para la version 1.9.5
"no" => "No",
"none" => "ninguno",
"as_defined" => "Personalizado",
"expression" => "Expresi&oacut... | PHP |
<?php
// Arabic language file by Ayman Teryaki (teryaki1963)
// Read our wiki on how to translate: http://code.google.com/p/phpliteadmin/wiki/Localization
$lang = array(
"direction" => "RTL",
"date_format" => '\a\m d.m.Y \u\m H:i:s (T)',
"ver" => "رقم النسخة",
"for" => "ل",
"to" => "في",
"go" => "بدأ",
... | PHP |
<?php
// Czech translation by Jan Turoň
// Read our wiki on how to translate: http://code.google.com/p/phpliteadmin/wiki/Localization
$lang = array(
"direction" => "LTR",
"date_format" => 'G:i \d\n\e j. n. Y (T)', // see http://php.net/manual/en/function.date.php for what the letters stand for
"ver" => "verze... | PHP |
<?php
// class Resources (issue #157)
// outputs secondary files, such as css and javascript
// data is stored gzipped (gzencode) and encoded (base64_encode)
//
class Resources {
// set this to the file containing getInternalResource;
// currently unused in split mode; set to __FILE__ for built PLA.
public... | PHP |
<?php
// class MicroTimer (issue #146)
// wraps calls to microtime(), calculating the elapsed time and rounding output
//
class MicroTimer {
private $startTime, $stopTime;
// creates and starts a timer
function __construct()
{
$this->startTime = microtime(true);
}
// stops a timer
public func... | PHP |
<?php
// Authorization class
// Maintains user's logged-in state and security of application
//
class Authorization
{
private $authorized;
private $login_failed;
private $system_password_encrypted;
public function __construct()
{
// the salt and password encrypting is probably unnecessary protection... | PHP |
<?php
// Database class
// Generic database abstraction class to manage interaction with database without worrying about SQLite vs. PHP versions
//
class Database
{
protected $db; //reference to the DB object
protected $type; //the extension for PHP that handles SQLite
protected $data;
protected $lastResul... | PHP |
<?php
/**
* JShrink
*
* Copyright (c) 2009-2012, Robert Hafner <tedivm@tedivm.com>.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* * Redistributions of source code must retain t... | PHP |
<?php
/**
* Class Minify_CSS_Compressor
* @package Minify
*/
/**
* Compress CSS
*
* This is a heavy regex-based removal of whitespace, unnecessary
* comments and tokens, and some CSS value minimization, where practical.
* Many steps have been taken to avoid breaking comment-based hacks,
* includ... | PHP |
<?php
// Attention: this theme will not work directly in phpliteAdmin 1.9.3 (and before)
// You can already use it with the svn-version of 1.9.4
// use phpliteadmin.php?theme=dynamic.php to use it there
header("Content-type: text/css");
if(isset($_GET['image'])){
// Accomidate uppercase & lowercase file extensions
... | PHP |
<?php
header("Content-type: text/css");
if(isset($_GET['image'])){
// Accomidate uppercase & lowercase file extensions
$image = strtolower($_GET['image']);
// Set the mimetype and cache the image for a year
header("Content-type: image/png");
header('Expires: ' . gmdate('D, d M Y H:i:s', time() + 60 * 60... | PHP |
<?php
# Start with header information, default config and default language
# INCLUDE docs/header.txt | comment_lines
# INCLUDE phpliteadmin.config.sample.php
# INCLUDE languages/lang_en.php
# Load the main phpLiteAdmin source file
# INCLUDE index.php
# Append all class files
# INCLUDE classes/*.php
# Emb... | PHP |
<HTML>
<head>
<title></title>
<link REL="SHORTCUT ICON" HREF="http://www.fancyicons.com/free-icons/103/flags/png/16/devil_mad_16.png">
<link href='http://fonts.googleapis.com/css?family=Black+Ops+One' rel='stylesheet' type='text/css'>
<link href='http://fonts.googleapis.com/css?family=Nosifer' rel='stylesheet' type='te... | PHP |
<?php
/*
This file is a wrapper, for use in PHP environments, which serves PIE.htc using the
correct content-type, so that IE will recognize it as a behavior. Simply specify the
behavior property to fetch this .php file instead of the .htc directly:
.myElement {
[ ...css3 properties... ]
behavior: url(PIE.php... | PHP |
<html><head><title>Testpage</title></head>
<style type="text/css">
#wrapper{margin:0 auto;padding:0;background-color:efefef;background-image:"images/image1.png";}
#headertop{background-color:BFBDF9;padding-top:5px;height:120px;}
#toppan{width:800px;margin:0px auto;}
#nav{width:590px;height:30px;margin:0px auto;flo... | PHP |
<?php
session_start();
$name=$_SESSION['reg_name'];
$password=$_SESSION['reg_password'];
$email=$_SESSION['reg_email'];
$con=mysql_connect("localhost","root","");
mysql_select_db("drezon");
$sql = "INSERT INTO `users` (`id`, `username`, `password`, `email`) VALUES (NULL, '$name', '$password', '$email');";
$r... | PHP |
<html><head><title></title></head>
<style type="text/css">
#wrapper{margin:0 auto;padding:0;background-color:efefef;background-image:"images/image1.png";}
#headerpan{width:800px;margin:0px auto;padding-top:10px;}
#image1{width:200px;height:290px;float:right;}
#bodypan{width:800px;margin:0px auto;margin-top:20px;}
... | PHP |
<html><head><title></title></head>
<style type="text/css">
#wrapper{margin:0 auto;padding:0;background-color:efefef;background-image:"images/image1.png";}
#headerpan{width:800px;margin:0px auto;padding-top:10px;}
#image1{width:200px;height:290px;float:right;}
#bodypan{width:800px;margin:0px auto;margin-top:20px;}
... | PHP |
<html><head><title></title></head>
<body>
<?php
$id=$_GET["id"];
$con=mysql_connect("localhost","root","");
mysql_select_db("drezon");
$query="select * from `history` where id=$id";
$result=mysql_query($query);
while($row=mysql_fetch_assoc($result)){
echo "<table cellspacing=5 cellpadding=5 width=1000 border=0... | PHP |
<html><head><title></title></head>
<body>
<?php
$id=$_POST['id'];
$con=mysql_connect("localhost","root","");
mysql_select_db("drezon");
$sql="SELECT * FROM `HSTORY` WHERE `id`=$id";
$result=mysql_query($sql);
$row=mysql_fetch_assoc($result);
echo $row['id'];
echo $row['question'];
?>
<h3>Editing question<... | PHP |
<?php
$id=$_GET["id"];
$con=mysql_connect("localhost","root","");
mysql_select_db("drezon");
$query="delete from `history` where `id`=$id";
$result=mysql_query($query);
mysql_close($con);
header("location:../history.php");
?> | PHP |
<?php
$id=$_POST["id"];
$question=$_POST["question"];
$answer=$_POST["answer"];
$option1=$_POST["option1"];
$option2=$_POST["option2"];
$option3=$_POST["option3"];
$option4=$_POST["option4"];
//echo $id;
$con=mysql_connect("localhost","root","");
mysql_select_db("drezon");
$query="INSERT INTO `history` (`i... | PHP |
<?php
session_start(0;
$name=$_SESSION['reg_name'];
$password=$_SESSION['reg_password'];
$email=$_SESSION['reg_email'];
$con=mysql_connect("localhost","root","");
mysql_select_db("drezon");
$sql = "INSERT INTO `users` (`id`, `username`, `password`, `email`) VALUES (NULL, '$name', '$password', '$email');";
$res... | PHP |
<html><head><title></title></head>
<style type="text/css">
#wrapper{margin:0 auto;padding:0;background-color:efefef;background-image:"images/image1.png";}
#headerpan{width:800px;margin:0px auto;padding-top:10px;}
#image1{width:200px;height:290px;float:right;}
#bodypan{width:800px;margin:0px auto;margin-top:20px;}
... | PHP |
<html><head><title></title></head>
<style type="text/css">
#wrapper{margin:0 auto;padding:0;background-color:efefef;background-image:"images/image1.png";}
#headerpan{width:800px;margin:0px auto;padding-top:10px;}
#image1{width:200px;height:290px;float:right;}
#bodypan{width:800px;margin:0px auto;margin-top:20px;}
... | PHP |
<html><head><title></title></head>
<style type="text/css">
#wrapper{margin:0 auto;padding:0;background-color:efefef;background-image:"images/image1.png";}
#headerpan{width:800px;margin:0px auto;padding-top:10px;}
#image1{width:200px;height:290px;float:right;}
#bodypan{width:800px;margin:0px auto;margin-top:20px;}
... | PHP |
<html><head><title></title></head>
<style type="text/css">
#wrapper{margin:0 auto;padding:0;background-color:efefef;background-image:"images/image1.png";}
#headerpan{margin:0px auto;padding-top:10px;}
#image1{width:200px;height:290px;float:right;}
#bodypan{margin:0px auto;margin-top:20px;}
</style>
<body>
<div ... | PHP |
<html><head><title></title></head>
<style type="text/css">
#wrapper{margin:0 auto;padding:0;background-color:efefef;background-image:"images/image1.png";}
#headerpan{width:800px;margin:0px auto;padding-top:10px;}
#image1{width:200px;height:290px;float:right;}
#bodypan{width:800px;margin:0px auto;margin-top:20px;}
... | PHP |
<html><head><title></title></head>
<style type="text/css">
#wrapper{margin:0 auto;padding:0;background-color:efefef;background-image:"images/image1.png";}
#headerpan{width:800px;margin:0px auto;padding-top:10px;}
#image1{width:200px;height:290px;float:right;}
#bodypan{width:800px;margin:0px auto;margin-top:20px;}
... | PHP |
<html><head><title>Welcome</title></head>
<style type="text/css">
#wrapper{margin:0 auto;padding:0;background-color:efefef;background-image:"images/image1.png";}
#headertop{background-color:BFBDF9;padding-top:5px;height:120px;}
#toppan{width:800px;margin:0px auto;}
#nav{width:590px;height:30px;margin:0px auto;floa... | PHP |
<?php
$id = $_GET["id"];
$con=mysql_connect("localhost","root","");
mysql_select_db("drezon");
$sql = "DELETE from `history` where `id` = $id";
$result=mysql_query($sql);
header('Location:../subject_history.php');
//echo $id." is deleted";
?>
| PHP |
<?php
$id=$_POST['id'];
$question=$_POST['question'];
$answer=$_POST['answer'];
$option1=$_POST['option1'];
$option2=$_POST['option2'];
$option3=$_POST['option3'];
$option4=$_POST['option4'];
/*echo $id;*/
$con=mysql_connect("localhost","root","");
mysql_select_db("drezon");
$sql = "INSERT INTO `drezon`.`his... | PHP |
<html><head><title></title></head>
<style type="text/css">
.tablerow{hover:"#efefef";}
</style>
<script type="text/javascript">
function sure(){
if(confirm("Are you sure to delete?"))
{return true;}
else { return false;}
}
</script>
<body>
<table cellspacing=5 border=0 width=800>
<tr>
<td>ID</td>
<td>Q... | PHP |
<?
phpinfo();
?> | PHP |
<?php
class template_home extends theme
{
protected function head()
{
?>
<!--[if IE]>
<script type="text/javascript" language="javascript" src="js/excanvas.compiled.js"></script>
<![endif]-->
<script type="text/javascript" language="javascript" src="js/jquery.bt.min.js"></script>
<link type="text/... | PHP |
<?php
class template_edit extends theme
{
protected function head()
{
?>
<link type="text/css" rel="stylesheet" href="templates/user/css/edit.css">
<script type="text/javascript" language="javascript" src="templates/user/js/edit.js"></script>
<?php
}
protected function center()
{
$user = $this... | PHP |
<?php
class template_forget_password_reset extends theme
{
protected function head()
{
?>
<script type="text/javascript" language="javascript" src="js/jquery.validate.pack.js"></script>
<link type="text/css" rel="stylesheet" href="templates/user/css/forget_password_reset.css">
<script type="text/javascr... | PHP |
<?php
class template_register extends theme
{
protected function head()
{
?>
<script type="text/javascript" language="javascript" src="js/jquery.validate.pack.js"></script>
<link type="text/css" rel="stylesheet" href="templates/user/css/register.css">
<script type="text/javascript" language="javascript"... | PHP |
<?php
class template_forget_password extends theme
{
protected function head()
{
?>
<link type="text/css" rel="stylesheet" href="templates/user/css/forget_password.css">
<script type="text/javascript" language="javascript" src="templates/user/js/forget_password.js"></script>
<?php
}
protected funct... | PHP |
<?php
class template_reset_password extends theme
{
protected function head()
{
?>
<script type="text/javascript" language="javascript" src="js/jquery.validate.pack.js"></script>
<link type="text/css" rel="stylesheet" href="templates/user/css/reset_password.css">
<script type="text/javascript" language=... | PHP |
<?php
class template_login extends theme
{
protected function head()
{
?>
<script type="text/javascript" language="javascript" src="js/jquery.validate.pack.js"></script>
<link type="text/css" rel="stylesheet" href="templates/user/css/login.css">
<script type="text/javascript" language="javascript" src=... | PHP |
<?php
class template_listing extends theme
{
protected function center()
{
$menu_id = request('menu_id', 0);
$content_list = $this->get('content_list');
?>
<h3 class="title"><?php echo $this->get_title(); ?></h3>
<ul>
<?php
if(count($content_list))
{
foreach($content_list as $content)
{
... | PHP |
<?php
class template_detail extends theme
{
protected function head()
{
?>
<link type="text/css" rel="stylesheet" href="templates/content/css/detail.css">
<?php
}
public function center()
{
$content = $this->get('content');
?>
<h2 class="content-title"><?php echo $content->tit... | PHP |
<?php
class template_all extends theme
{
protected function center()
{
$menu_id = request('menu_id', 0);
$category_id = $this->get('category_id');
$content_list = $this->get('content_list');
$category_list = $this->get('category_list');
?>
<h3 class="title"><?php echo $this->get_title(); ?></h... | PHP |
<?php
class template_user_detail extends theme
{
protected function head()
{
?>
<link type="text/css" rel="stylesheet" href="templates/team/css/user_detail.css">
<?php
}
protected function center()
{
$user = $this->get('user');
$t = time();
$is_online = ($t-$user->beat_time)<660;
?>
<... | PHP |
<?php
class template_users extends theme
{
protected function head()
{
?>
<link type="text/css" rel="stylesheet" href="templates/team/css/users.css">
<?php
}
protected function center()
{
$users = $this->get('users');
?>
<div class="center-title">开发团队</div>
<div class="center-content">
... | PHP |
<?php
class template_listing extends theme
{
protected function head()
{
?>
<script type="text/javascript" language="javascript" src="js/jquery.validate.pack.js"></script>
<link type="text/css" rel="stylesheet" href="templates/technic/css/listing.css">
<script type="text/javascript" language="javascript" s... | PHP |
<?php
class template_popup_detail extends theme
{
public function display()
{
?>
<!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; ... | PHP |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.