code stringlengths 1 2.01M | language stringclasses 1
value |
|---|---|
<?php
defined('IN_IK') or die('Access Denied.');
tsNotice('呃哦...你想访问的页面不存在!'); | PHP |
<?php
defined('IN_IK') or die('Access Denied.');
$hl = $_GET['hl'];
setcookie("ik_lang", $hl, time()+3600*30,'/');
header("Location: ".SITE_URL.'index.php'); | PHP |
<?php
defined ( 'IN_IK' ) or die ( 'Access Denied.' );
return array ('name' => '首页', 'version' => '1.0', 'desc' => '首页', 'url' => 'http://www.12ik.com', 'email' => '160780470@qq.com', 'author' => '小麦', 'author_url' => 'http://www.12ik.com', 'isoption' => '1', 'isinstall' => '1', 'issql' => '1', 'issystem' => '1', 'is... | PHP |
<?php
defined ( 'IN_IK' ) or die ( 'Access Denied.' );
/*
*包含数据库配置文件
*/
require_once IKDATA . "/config.inc.php";
$skin = 'default';
$IK_APP ['options'] ['appname'] = '首页'; | PHP |
<?php
defined ( 'IN_IK' ) or die ( 'Access Denied.' );
class home extends IKApp {
//构造函数
public function __construct($db) {
parent::__construct ( $db );
}
}
| PHP |
<?php
defined('IN_IK') or die('Access Denied.');
class user extends IKApp{
//构造函数
public function __construct($db){
parent::__construct($db);
}
//获取最新会员
function getNewUser($num){
$arrNewUserId = $this->db->fetch_all_assoc("select userid from ".dbprefix."user_info order by addtime desc limit $n... | PHP |
<?php
defined('IN_IK') or die('Access Denied.');
//用户是否登录
$userid = aac('user')->isLogin();
$strUser = $new['user']->getOneUser($userid);
if($userid != $strUser['userid']) header("Location: ".SITE_URL."index.php");
switch($ts){
case "base":
$strArea = aac('location')->getAreaForApp($strUser['are... | PHP |
<?php
defined('IN_IK') or die('Access Denied.');
//用户注册
switch($ts){
case "":
if(intval($IK_USER['user']['userid']) > 0) tsNotice("请退出后再注册!");
//邀请用户ID
$fuserid = intval($_GET['fuserid']);
$title = '注册';
include template("register");
break;
case "do":
$email = trim($_POST['emai... | PHP |
<?php
defined('IN_IK') or die('Access Denied.');
//用户空间
$userid = isset($_GET['id']) ? $_GET['id'] : intval($IK_USER['user']['userid']);
if(!((int) $userid)>0)
{
$userdoname = aac('user')->find('user_info',array('doname'=>$userid));
$userid = $userdoname['userid'];
}
if($userid == 0){
header("Locat... | PHP |
<?php
/*
* 用户管理
*/
switch ($ts) {
//用户列表
case "list" :
$page = isset ( $_GET ['page'] ) ? intval ( $_GET ['page'] ) : 1;
$lstart = $page * 20 - 20;
$url = 'index.php?app=user&ac=admin&mg=user&ts=list&page=';
$arrAllUser = $new ['user']->findAll ( 'user_info', null, 'userid ... | PHP |
<?php
/*
* 配置选项
*/
switch ($ts) {
//配置
case "" :
$arrOptions = $db->fetch_all_assoc ( "select * from " . dbprefix . "user_options" );
foreach ( $arrOptions as $item ) {
$strOption [$item ['optionname']] = $item ['optionvalue'];
}
include template ( "admin/options" );
break;
//配置执行
case... | PHP |
<?php
//用户是否登录
$userid = aac('user')->isLogin();
switch($ts){
//发送验证
case "post":
$strUser = $db->once_fetch_assoc("select username,email,isverify,verifycode from ".dbprefix."user_info where userid='$userid'");
if($strUser['verifycode']==''){
$verifycode = random(11);
$db->query("update ".db... | PHP |
<?php
//插件条件入口
defined('IN_IK') or die('Access Denied.');
if(is_file('plugins/'.$app.'/'.$plugin.'/'.$in.'.php')){
require_once('plugins/'.$app.'/'.$plugin.'/'.$in.'.php');
}else{
tsNotice('sorry:no plugin!');
}
//形如这样
//index.php?app=group&ac=plugin&plugin=qq&in=do | PHP |
<?php
defined('IN_IK') or die('Access Denied.');
$title = '找回登陆密码';
switch($ts){
case "":
include template("forgetpwd");
break;
//执行登录
case "do":
$email = trim($_POST['email']);
$emailNum = $db->once_fetch_assoc("select count(*) from ".dbprefix."user where `email`='$email'");
... | PHP |
<?php
defined('IN_IK') or die('Access Denied.');
switch($ts){
case "login":
$jump = $_SERVER['HTTP_REFERER'];
include template("login_form");
break;
} | PHP |
<?php
$imgWidth = isset($_REQUEST["width"]) ? intval($_REQUEST["width"]) : 0;
$imgHeight = isset($_REQUEST["height"]) ? intval($_REQUEST["height"]) : 0;
$captcha = new SimpleCaptcha(array('width'=>$imgWidth,'height'=>$imgHeight));
$captcha->CreateImage();
class SimpleCaptcha {
public $width = 80;
... | PHP |
<?php
defined('IN_IK') or die('Access Denied.');
/*
* 用户被跟随
*/
$userid = intval($_GET['userid']);
$strUser = $new['user']->getOneUser($userid);
if($strUser == '') header("Location: ".SITE_URL."index.php");
//我关注的人
$followUsers = $db->fetch_all_assoc("select userid_follow from ".dbprefix."... | PHP |
<?php
defined('IN_IK') or die('Access Denied.');
//确认邀请码
$saltmail = trim($_GET['confirmation']);
$invitedUser = aac('user')->find('user_invited',array('saltmail'=>$saltmail));
if($invitedUser)
{
$title = '爱客网邀请您加入';
include template("invited");
}else{
header ( "Location: ".SITE_URL);
}
| PHP |
<?php
defined('IN_IK') or die('Access Denied.');
//用户是否登录
$userid = aac('user')->isLogin();
$strUser = $db->once_fetch_assoc("select * from ".dbprefix."user_info where userid='$userid'");
//邀请好友
switch($ts){
case "":
$codeNum = $db->once_num_rows("select * from ".dbprefix."user_invites where isused... | PHP |
<?php
switch($ts){
//验证Email是否唯一
case "inemail":
$email = $_GET['email'];
$emailNum = $new['user']->findCount('user',array(
'email'=>$email,
));
if($emailNum > '0'):
echo 'false';
else:
echo 'true';
endif;
break;
//验证用户名是否唯一
case "isusername":
$username... | PHP |
<?php
defined('IN_IK') or die('Access Denied.');
$userid = intval($_GET['userid']);
$strUser = $new['user']->getOneUser($userid);
if($strUser == '') header("Location: ".SITE_URL."index.php");
//关注我的人
$followedUsers = $db->fetch_all_assoc("select userid from ".dbprefix."user_follow where userid_follow='$us... | PHP |
<?php
defined('IN_IK') or die('Access Denied.');
switch($ts){
case "two":
$oneid = $_GET['oneid'];
$arrArea = $db->fetch_all_assoc("select * from ".dbprefix."area where referid='$oneid'");
if($arrArea){
echo '<select id="twoid" name="twoid" class="txt">';
echo '<option value="0">请选择</option>';... | PHP |
<?php
defined('IN_IK') or die('Access Denied.');
//用户是否登录
$userid = aac('user')->isLogin();
switch($ts){
//设置头像
case "setface":
//上传
$arrUpload = tsUpload($_FILES['picfile'],$userid,'user/face',array('jpg','gif','png'));
if($arrUpload){
$new['user']->update('user_info',array(
'u... | PHP |
<?php
defined('IN_IK') or die('Access Denied.');
//用户是否登录
$userid = aac('user')->isLogin();
switch($ts){
//发送消息页面
case "message_add":
$touserid = intval($_GET['touserid']);
if($userid == $touserid || !$touserid) tsNotice("Sorry!自己不能给自己发送消息的!& 对方为空!");
$strUser = $new['user']->getOneUse... | PHP |
<?php
defined('IN_IK') or die('Access Denied.');
switch($ts){
case "login":
$jump = $_SERVER['HTTP_REFERER'];
include template("ajax_login");
break;
} | PHP |
<?php
defined('IN_IK') or die('Access Denied.');
//管理入口
if(is_file('app/'.$app.'/action/admin/'.$mg.'.php')){
include_once 'app/'.$app.'/action/admin/'.$mg.'.php';
}else{
tsNotice('sorry:no index!');
} | PHP |
<?php
defined('IN_IK') or die('Access Denied.');
//用户是否登录
$userid = aac('user')->isLogin();
$strUser = aac('user')->getOneUser($userid);
//邀请好友
switch($ts){
case "invite":
$title = '爱客网邀请';
include template("email_invite");
break;
case "sendmail":
$emails = trim($_POST['emails']);
$... | PHP |
<?php
defined('IN_IK') or die('Access Denied.');
//重设密码
$title = '重设密码';
switch($ts){
case "":
$email = trim($_GET['mail']);
$resetpwd = trim($_GET['set']);
$userNum = $new['user']->findCount('user',array(
'email'=>$email,
'resetpwd'=>$resetpwd,
));
if($email=='' || $resetp... | PHP |
<?php
defined('IN_IK') or die('Access Denied.');
//用户空间
$userid = intval($_GET['id']);
if($userid == 0){
header("Location: ".SITE_URL);
exit;
}
$new['user']->isUser($userid);
$strUser = $new['user']->getOneUser($userid);
$strUser['rolename'] = $new['user']->getRole($strUser['count_score']);
... | PHP |
<?php
defined('IN_IK') or die('Access Denied.');
//程序主体
switch($ts){
case "":
if(intval($IK_USER['user']['userid']) > 0) tsNotice("已经登陆啦!");
//记录上次访问地址
$jump = $_SERVER['HTTP_REFERER'];
$title = '登录';
include template("login");
break;
//执行登录
case "do":
if($IK_USER['user'] != ... | PHP |
<?php
defined('IN_IK') or die('Access Denied.');
return array(
'name' => '用户',
'version' => '1.0',
'desc' => '用户中心,积分,头衔',
'url' => 'http://www.12ik.com',
'email' => '160780470@qq.com',
'author' => '小麦',
'author_url' => 'http://www.12ik.com',
'isoption' => '1',
'isinstall' => '1',
'issql' => '1',
... | PHP |
<?php
defined('IN_IK') or die('Access Denied.');
require_once IKDATA."/config.inc.php";
$skin = 'default'; | PHP |
<?php
defined('IN_IK') or die('Access Denied.');
include template("index");
| PHP |
<?php
defined('IN_IK') or die('Access Denied.');
return array(
'name' => '好米窝',
'version' => '1.0',
'desc' => '一个出售域名的地方',
); | PHP |
<?php
defined('IN_IK') or die('Access Denied.');
require_once IKDATA."/config.inc.php";
$skin = 'default'; | PHP |
<?php
defined('IN_IK') or die('Access Denied.');
class haomiwo extends IKApp{
//构造函数
public function __construct($db){
parent::__construct($db);
}
//析构函数
public function __destruct(){
}
} | PHP |
<?php
defined('IN_IK') or die('Access Denied.');
//搜索结果
$userid = intval($IK_USER['user']['userid']);
$kw=urldecode($_GET['kw']);
if($kw==''){
header("Location: ".SITE_URL.tsUrl('search'));
exit;
}
if(strlen($kw)<2) {
header("Location: ".SITE_URL.tsUrl('search'));
exit;
};
switch($ts){
case... | PHP |
<?php
defined('IN_IK') or die('Access Denied.');
switch($ts){
case "":
$title = '搜索';
break;
//搜索小组
case "group":
$title = '搜索小组';
break;
//搜索帖子
case "topic":
$title = '搜索帖子';
break;
//搜索用户
case "user":
$title = '搜索用户';
break;
//搜索日志
case "user":
$title = '搜索日志... | PHP |
<?php
defined('IN_IK') or die('Access Denied.');
return array(
'name' => '搜索',
'version' => '1.0',
'desc' => '搜索话题,小站,小组,成员,日志等',
'url' => 'http://www.12ik.com',
'email' => '160780470@qq.com',
'author' => '小麦',
'author_url' => 'http://www.12ik.com',
'isoption' => '0',
'isinstall' => '1',
'issql' =... | PHP |
<?php
defined('IN_IK') or die('Access Denied.');
class search extends ikApp{
//构造函数
public function __construct($db){
parent::__construct($db);
}
} | PHP |
<?php
defined('IN_IK') or die('Access Denied.');
require_once IKDATA."/config.inc.php";
$skin = 'default'; | PHP |
<?php
defined ( 'IN_IK' ) or die ( 'Access Denied.' ); | PHP |
<?php
echo substr(md5("joyku@sina.cn"),8,16); // 16位MD5加密
| PHP |
<?php
$imgWidth = isset($_REQUEST["width"]) ? intval($_REQUEST["width"]) : 0;
$imgHeight = isset($_REQUEST["height"]) ? intval($_REQUEST["height"]) : 0;
$captcha = new SimpleCaptcha(array('width'=>$imgWidth,'height'=>$imgHeight));
$captcha->CreateImage();
class SimpleCaptcha {
public $width = 120;
... | PHP |
<?php
$messagetext = geturlfile('http://www.12ik.com/12ik/my/text.html');
$subjectarr = pregmessage($messagetext, '<title>[subject]</title>', 'subject');
print_r($subjectarr);
//super site 模式解析器
function pregmessage($message, $rule, $getstr, $limit=1) {
$result = array('0'=>'');
$rule = convertrule($... | PHP |
<?php
$targ_w = $targ_h = 200;
$jpeg_quality = 100;
$x = 80;
$y = 80;
$w = 50;
$h = 50;
$src = '5.jpg';
$img_r = imagecreatefromjpeg($src);
$dst_r = ImageCreateTrueColor( $targ_w, $targ_h );
imagecopyresampled($dst_r,$img_r,0,0,$x,$y,
$targ_w,$targ_h,$w,$h);
header('Content-type: image... | PHP |
<?php
//过滤脚本代码
function cleanJs($text) {
$text = trim ( $text );
$text = stripslashes ( $text );
//完全过滤注释
$text = preg_replace ( '/<!--?.*-->/', '', $text );
//完全过滤动态代码
$text = preg_replace ( '/<\?|\?>/', '', $text );
//完全过滤js
$text = preg_replace ( '/<script?.*\/script>/', '', $text );
//过滤... | PHP |
<?php
/*
欢迎光临
上海网站建设
http://www.webqin.net/
if(isset($_POST[domain])){
*/
header('Content-Type: text/html; charset=utf-8');
/**$con1 = 'http://panda.www.net.cn/cgi-bin/check.cgi?area_domain='.$_POST[domain].$_POST[select].'';**/
$name ='youao,baiao,boao,bozao,goozao,gmiao,beao,tooao';
$names = explode(... | PHP |
<?php
header('Content-Type: text/html; charset=utf-8');
date_default_timezone_set('PRC');//设置默认北京时区
echo '北京时间:'.date('Y-m-d H:i:s',time()).'<br/>';
date_default_timezone_set('Hongkong');//设置默认北京时区
echo '香港时间:'.date('Y-m-d H:i:s',time()).'<br/>';
echo '前1天时间:'.date('Y-m-d H:i:s',time()-86400).'<br/>';
$varia... | PHP |
<?php
//$navOrders = array();
//$email = "charm@163.com,123@444.com,charm11@ddd.com";
//$strs = str_replace ( ',', ',', $email );
//$strtext = explode("," , $strs);
$email = "charm@ddd.com";
$str = explode('@',$email)[0];
echo $str[0]; | PHP |
<?php
//echo urlencode('charm@163.com');
echo rawurlencode('charm@163.com'); | PHP |
<?php
echo time().'<br>';
var_dump(time()-strtotime(date('Y-m-d H:i:s','1353814277')) > 160); | PHP |
<?php
/*
*数据库配置
*/
$IK_DB['sql']='mysql';
$IK_DB['host']='localhost';
$IK_DB['port']='3306';
$IK_DB['user']='root';
$IK_DB['pwd']='';
$IK_DB['name']='12ik';
$IK_DB['pre']='ik_';
define('dbprefix','ik_');
| PHP |
<?php
defined('IN_IK') or die('Access Denied.');
return array (
'site_title' => '爱客网(12IK)开源社区',
'site_subtitle' => '又一个爱客网(12IK)开源社区',
'site_url' => 'http://www.joyku.com/',
'site_email' => 'admin@admin.com',
'site_icp' => '正在备案中',
'isface' => '0',
'site_key' => '12ik',
'site_desc' => '又一个爱客网(12IK)开源社区... | PHP |
<?php
defined('IN_IK') or die('Access Denied.');
return array (
'home' => '首页',
'location' => '同城',
'group' => '小组',
'site' => '小站',
); | PHP |
<?php
return array (
);
?> | PHP |
<?php
defined('IN_IK') or die('Access Denied.');
return array (
'appname' => '小站',
'appdesc' => '尝试喜欢更多小站来发现感兴趣的内容',
'isaudit' => '0',//是否需要审核 0 不审核 1 代表审核
); | PHP |
<?php
defined('IN_IK') or die('Access Denied.');
return array (
'appname' => '邮件',
'appdesc' => '爱客网(12IK)开源社区邮件',
'isenable' => '0',
'mailhost' => 'smtp.sina.cn',
'mailport' => '25',
'mailuser' => '12ik@sina.cn',
'mailpwd' => '7301392',
); | PHP |
<?php
defined('IN_IK') or die('Access Denied.');
return array (
'appname' => '用户',
'appdesc' => '用户中心',
'isenable' => '0',
'isvalidate' => '0',
'isrewrite' => '0',
'isauthcode' => '0',
'isgroup' => '',
); | PHP |
<?php
defined ( 'IN_IK' ) or die ( 'Access Denied.' );
/*
* 12IK爱客社区
* @copyright (c) 2012-3000 12IK.COM All Rights Reserved
* @author wanglijun
* @Email:160780470@qq.com
*/
return array ('zh_cn' => '中文', 'en' => 'English' ); | PHP |
<?php
defined('IN_IK') or die('Access Denied.');
return array (
0 =>
array (
'rolename' => '列兵',
'score_start' => '0',
'score_end' => '5000',
),
1 =>
array (
'rolename' => '下士',
'score_start' => '5000',
'score_end' => '20000',
),
2 =>
array (
'rolename' =>... | PHP |
<?php
/*
*数据库配置
*$Id: config.sample.php 465 2012-04-10 07:51:18Z wanglijun $
*/
$IK_DB ['sql'] = 'mysql';
$IK_DB ['host'] = 'localhost';
$IK_DB ['port'] = '3306';
$IK_DB ['user'] = 'root';
$IK_DB ['pwd'] = '';
$IK_DB ['name'] = '12ik';
$IK_DB ['pre'] = 'ik_';
define ( 'dbprefix', 'ik_' ); | PHP |
<?php
defined('IN_IK') or die('Access Denied.');
return array (
'appname' => '小组',
'appdesc' => '爱客小组',
'iscreate' => '0',
'isaudit' => '0',
); | PHP |
<?php
defined('IN_IK') or die('Access Denied.');
return array (
0 => 'wast_word',
); | PHP |
<?php
defined ( 'IN_IK' ) or die ( 'Access Denied.' );
return array ('name' => 'blue', 'author' => '小麦', 'site' => 'http://www.12ik.com' ); | PHP |
<?php
defined ( 'IN_IK' ) or die ( 'Access Denied.' );
return array ('name' => 'blue', 'author' => '小麦', 'site' => 'http://www.12ik.com' ); | PHP |
<?php
$texto = file_get_contents('nuestra-carta');
preg_match_all('/\<div\sclass\=\"titulo-producto-cuerpo\"\>([^\>]*)\<\/div\>/', $texto, $matches);
$m = $matches[1];
$products = array();
foreach($m as $key => $value) {
$value = $m[$key] = trim($value);
if (preg_match("/^\d+.*/", $value) != 1) {
unset($m[$key]);... | PHP |
<?php
# Save the audio to a URL-accessible directory for playback.
parse_str($_SERVER['QUERY_STRING'], $params);
$name = isset($params['name']) ? $params['name'] : 'output.wav';
$content = file_get_contents('php://input');
$fh = fopen($name, 'w') or die("can't open file");
fwrite($fh, $content);
fclose($fh);
?> | PHP |
<?php
//require section
require_once dirname(__FILE__) . '/shared/config/config.php';
require_once DOCUMENT_ROOT . DIR_SHARED_LIBRARIES . 'lib_date.php';
require_once DOCUMENT_ROOT . DIR_SHARED_API . '/api_contact.php';
$title = 'Hỏi Đáp';
$contact = api_contact::get_contact();
$email = "";
if (!empty($contact['email... | PHP |
<?php
//require section
require_once dirname(__FILE__) . '/shared/config/config.php';
require_once DOCUMENT_ROOT . DIR_SHARED_API . 'api_document_manage.php';
require_once DOCUMENT_ROOT . DIR_SHARED_LIBRARIES . 'lib_redirect.php';
require_once DOCUMENT_ROOT . DIR_SHARED_API . 'api_user.php';
... | PHP |
<?php
require_once dirname(dirname(__FILE__)) . '/shared/config/config.php';
require_once DOCUMENT_ROOT . DIR_SHARED_API . 'api_multi_level.php';
if (!empty($_GET['category_choosen_id'])) {
$category_chosen_id = $_GET['category_choosen_id'];
// echo $category_chosen_id;
$expand_id_list = api_multi_... | PHP |
<?php
require_once dirname(dirname(__FILE__)) . '/shared/config/config.php';
require_once DOCUMENT_ROOT . DIR_SHARED_API . 'api_multi_level.php';
if (!empty($_GET['category_choosen_id'])) {
$category_chosen_id = $_GET['category_choosen_id'];
$expand_id_list = api_multi_level::get_expand_id_list_documen... | PHP |
<?php
//require section
require_once dirname(__FILE__) . '/shared/config/config.php';
require_once DOCUMENT_ROOT . DIR_SHARED_API . 'api_multi_level.php';
require_once DOCUMENT_ROOT . DIR_SHARED_API . 'api_news.php';
require_once DOCUMENT_ROOT . DIR_INCLUDE . 'usable_functions.php';
$title = 'Tin Tức';
?>
<... | PHP |
<?php
require_once dirname(__FILE__) . '/shared/config/config.php';
require_once DOCUMENT_ROOT . DIR_SHARED_API . 'api_security.php';
api_security::logout(); | PHP |
<?php
//require section
require_once dirname(__FILE__) . '/shared/config/config.php';
require_once DOCUMENT_ROOT . DIR_SHARED_API . 'api_news.php';
require_once DOCUMENT_ROOT . DIR_SHARED_API . 'api_multi_level.php';
require_once DOCUMENT_ROOT . DIR_INCLUDE . 'usable_functions.php';
$title = 'Chi tiết tin Tức';
if (!e... | PHP |
<?php
//require section
require_once dirname(__FILE__) . '/shared/config/config.php';
require_once DOCUMENT_ROOT . DIR_SHARED_API . 'api_document.php';
require_once DOCUMENT_ROOT . DIR_SHARED_API . 'api_invoice.php';
require_once DOCUMENT_ROOT . DIR_SHARED_LIBRARIES . 'lib_redirect.php';
$title ... | PHP |
<?php
//require section
require_once dirname(__FILE__) . '/shared/config/config.php';
require_once DOCUMENT_ROOT . DIR_SHARED_API . 'api_security.php';
require_once DOCUMENT_ROOT . DIR_SHARED_API . 'api_news.php';
require_once DOCUMENT_ROOT . DIR_SHARED_API . 'api_invoice.php';
require_once DOCU... | PHP |
<?php
// Initialize
require_once dirname(__FILE__) . '/shared/config/config.php';
$title = 'Giới Thiệu';
// End Initialize
require_once DOCUMENT_ROOT . DIR_SHARED_API . 'api_about_us.php';
$about_us = api_about_us::get_about_us();
require_once DOCUMENT_ROOT . DIR_SHARED_LIBRA... | PHP |
<?php
//require section
require_once dirname(__FILE__) . '/shared/config/config.php';
require_once DOCUMENT_ROOT . DIR_SHARED_API . 'api_security.php';
$title = 'Đăng Kí';
?>
<!DOCTYPE html>
<html>
<head>
<?php
require_once DOCUMENT_ROOT . DIR_INCLUDE . 'head.php';
?>
</head>
<b... | PHP |
<?php
//define('LINK_ROOT', 'http://'. $_SERVER['HTTP_HOST']);
//define('DOCUMENT_ROOT', $_SERVER['DOCUMENT_ROOT']);
define('LINK_ROOT', 'http://' . $_SERVER['HTTP_HOST'] . '/04_huanluyenviencanhan');
define('DOCUMENT_ROOT', $_SERVER['DOCUMENT_ROOT'] . '/04_huanluyenviencanhan');
define('DIR_ADMIN', '/admin/');
... | PHP |
<?php
require_once dirname(__FILE__) . '/config.php';
class connection {
public $con;
public function __construct() {
}
public function open_connect() {
$config = new config();
$db_host = $config->get_db_host();
$db_user = $config->get_db_user();
$... | PHP |
<?php
require_once dirname(dirname(__FILE__)) . '/config/config.php';
require_once DOCUMENT_ROOT . DIR_SHARED_CONFIG . 'connection.php';
class dao_invoice_line {
//Methods
public function __construct() {
}
public function get_all() {
$db = new connection();
$con = $d... | PHP |
<?php
require_once dirname(dirname(__FILE__)) . '/config/config.php';
require_once DOCUMENT_ROOT . DIR_SHARED_CONFIG . 'connection.php';
class dao_invoice {
//Methods
public function __construct() {
}
public function get_all() {
$db = new connection();
$con = $db->op... | PHP |
<?php
require_once dirname(dirname(__FILE__)) . '/config/config.php';
require_once DOCUMENT_ROOT . DIR_SHARED_CONFIG . 'connection.php';
require_once DOCUMENT_ROOT . DIR_SHARED_LIBRARIES . 'lib_date.php';
class dao_news {
//Methods
public function __construct() {
}
public function ge... | PHP |
<?php
require_once dirname(dirname(__FILE__)) . '/config/config.php';
require_once DOCUMENT_ROOT . DIR_SHARED_CONFIG . 'connection.php';
require_once DOCUMENT_ROOT . DIR_SHARED_LIBRARIES . 'lib_date.php';
class dao_news_category {
//Methods
public function __construct() {
}
public fu... | PHP |
<?php
require_once dirname(dirname(__FILE__)) . '/config/config.php';
require_once DOCUMENT_ROOT . DIR_SHARED_CONFIG . 'connection.php';
class dao_buy_status {
//Methods
public function __construct() {
}
public function get_all() {
$db = new connection();
$con = $db-... | PHP |
<?php
require_once dirname(dirname(__FILE__)) . '/config/config.php';
require_once DOCUMENT_ROOT . DIR_SHARED_CONFIG . 'connection.php';
class dao_inv_status {
//Methods
public function __construct() {
}
public function get_all() {
$db = new connection();
$con = $db-... | PHP |
<?php
require_once dirname(dirname(__FILE__)) . '/config/config.php';
require_once DOCUMENT_ROOT . DIR_SHARED_CONFIG . 'connection.php';
require_once DOCUMENT_ROOT . DIR_SHARED_LIBRARIES . 'lib_date.php';
class dao_document {
//Methods
public function __construct() {
}
public functio... | PHP |
<?php
require_once dirname(dirname(__FILE__)) . '/config/config.php';
require_once DOCUMENT_ROOT . DIR_SHARED_CONFIG . 'connection.php';
class dao_user {
//Methods
public function __construct() {
}
public function get_all() {
$db = new connection();
$con = $db->open_... | PHP |
<?php
require_once dirname(dirname(__FILE__)) . '/config/config.php';
require_once DOCUMENT_ROOT . DIR_SHARED_CONFIG . 'connection.php';
class dao_document_category {
//Methods
public function __construct() {
}
public function get_all() {
$db = new connection();
$con... | PHP |
<?php
require_once dirname(dirname(__FILE__)) . '/config/config.php';
require_once DOCUMENT_ROOT . DIR_SHARED_CONFIG . 'connection.php';
/**
* Description of dao_general
* @author Viet Anh
*/
class dao_general
{
public function __construct()
{
}
pub... | PHP |
<?php
/**
* User: Viet Anh
* Date: 30/05/2014
* Time: 16:46
*/
require_once dirname(dirname(__FILE__)) . '/config/config.php';
require_once DOCUMENT_ROOT . DIR_SHARED_CONFIG . 'connection.php';
class dao_document_manage
{
public function __construct()
... | PHP |
<?php
require_once dirname(dirname(__FILE__)) . '/config/config.php';
require_once DOCUMENT_ROOT . DIR_SHARED_CONFIG . 'connection.php';
require_once DOCUMENT_ROOT . DIR_SHARED_LIBRARIES . 'lib_date.php';
class dao_buy_doc {
//Methods
public function __construct() {
}
public function g... | PHP |
<?php
require_once dirname(dirname(__FILE__)) . '/config/config.php';
require_once DOCUMENT_ROOT . DIR_SHARED_CONFIG . 'connection.php';
class dao_super {
protected $table_name = "";
protected $primary_key_column_name = "";
public function __construct() {
}
public function get_al... | PHP |
<?php
require_once dirname(dirname(__FILE__)) . '/config/config.php';
class lib_redirect {
// public static function Redirect($redirect_link, $permanent = false) {
// if (headers_sent() === false) {
// header('Location: ' . LINK_ROOT . $redirect_link, true, ($permanent === true) ? 301 : ... | PHP |
<?php
class lib_upload {
public $input_control_name;
public $upload_location;
public function __construct() {
}
public function upload_file($input_control_name, $upload_location) {
$name = $_FILES[$input_control_name]['name'];
$tmp_name = $_FILES[$input_cont... | PHP |
<?php
class lib_pager {
public $total_page;
public $current_page;
public $page_size;
public $total_list;
public $current_list;
public function __construct() {
}
public function get_total_page($list_total, $page_size) {
return ceil((count($list_total) /... | PHP |
<?php
class lib_data_input {
public $data;
public function __construct() {
}
public function data_input($data) {
$data1 = trim($data);
$data2 = stripslashes($data1);
$data3 = htmlspecialchars($data2);
return $data3;
}
}
| PHP |
<?php
class lib_date {
public function __construct() {
}
public static function get_now() {
return date("Y-m-d H:i:s");
}
}
| PHP |
<?php
require_once dirname(dirname(__FILE__)) . '/config/config.php';
require_once DOCUMENT_ROOT . DIR_SHARED_DAO . "dao_news.php";
require_once DOCUMENT_ROOT . DIR_SHARED_DAO . "dao_news_category.php";
require_once DOCUMENT_ROOT . DIR_SHARED_LIBRARIES . 'lib_redirect.php';
/*
* To change this license header, ... | PHP |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.