code
stringlengths
1
2.01M
repo_name
stringlengths
3
62
path
stringlengths
1
267
language
stringclasses
231 values
license
stringclasses
13 values
size
int64
1
2.01M
<?php class MenuItem { /** * * Enter description here ... * @param MenuItem $a * @param MenuItem $b */ static function compare($a, $b ) { if ($a->order == $b->order) { return 0; } return ($a->order < $b->order) ? -1 : 1; } /** * Identifier like 'home' , 'abo...
0query
tags/1.4/0query/core/classes/MenuItem.class.php
PHP
gpl2
1,369
<?php $CONF['home']= "home" ; $CONF['cleanurls'] = true ; $CONF['template'] = 'portfolio' ; $CONF['plugins'] = array('sitemap');
0query
tags/1.4/0query/config.php
PHP
gpl2
137
<?php /* * @author Ignacio Vazquez - ivazquez at adooxen.com * @version 1.4 Beta * */ define ('ROOT',dirname(__FILE__)); include_once "config.php" ; include_once 'core/functions.php'; include_once 'core/classes/Content.class.php'; include_once "core/classes/MenuItem.class.php" ; include_o...
0query
tags/1.4/0query/index.php
PHP
gpl2
526
<h2 class="contact">Contact Me</h2> <p>At has veri feugait placerat, in semper offendit praesent his. Omnium impetus facilis sed at, ex viris tincidunt ius. Unum eirmod dignissim id quo. Sit te atomorum quaerendum neglegentur, his primis tamquam et. Eu quo quot veri alienum, ea eos nullam luptatum accusamus. E...
0query
tags/1.1 Beta/0query/content/pages/3. Contact/index.php
Hack
gpl2
986
<h2 class="intro"> <strong>Just</strong> a simple <strong>website</strong> framework <span class="sub">.. and Anything more</span> </h2> <div class="clear"></div> <p> Ea mei nullam facete, omnis oratio offendit ius cu. Doming takimata repudiandae usu an, mei dicant takimata id, pri eleifend inimicus euripidis...
0query
tags/1.1 Beta/0query/content/pages/1. Home/index.php
Hack
gpl2
504
<li class="<?php if ($this->active) echo "active" ?>"> <a href="<?php echo $this->link?>"><?php echo $this->title ?></a> </li>
0query
tags/1.1 Beta/0query/templates/gelsheet/menu-item.php
PHP
gpl2
129
$(document).ready(function() { $('#home-slide').cycle('fade'); });
0query
tags/1.1 Beta/0query/templates/gelsheet/js/gelsheet.js
JavaScript
gpl2
75
<!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html dir="ltr" xmlns="http://www.w3.org/1999/xhtml" lang="en-US"> <head> <title>Gelsheet: The opensource web spreadsheet</title> <meta http-equiv="Content-Type" content="text/html; charset=UT...
0query
tags/1.1 Beta/0query/templates/gelsheet/header.php
PHP
gpl2
2,207
Not found
0query
tags/1.1 Beta/0query/templates/gelsheet/404.php
Hack
gpl2
9
je ul, ol {list-style-type: none;} table, tbody, fieldset {margin:0;padding:0;border:none;} p,.p {text-align: left;margin-bottom: 1em;} p.halfp, .halfp{margin-bottom:.5em;} hr{ margin: 1.5em 0; border:none; border-bottom: 1px dashed #ccc;} strong,b, th, label, .fboxes h4{font-weight: bold; font-family: palatino...
0query
tags/1.1 Beta/0query/templates/gelsheet/style.css
CSS
gpl2
9,758
<div id="footer" class="fix"><br> <div class="footcols_container"> <div class="content fix"> Powered by <a href="#">MinCMS</a> | Designed by <a href="http://www.gelsheet.org">Home</a>Designed By Powered by <a href="http://www.gelsheet.org">Gelsheet - The opensource online spreadsheet</a> About | Co...
0query
tags/1.1 Beta/0query/templates/gelsheet/footer.php
Hack
gpl2
389
<?php include_once 'header.php' ?> <div id="main_content" class="fix" > <div class="content fix"> <?php $page->output() ;?> </div> <!-- end .content --> </div> <?php include_once 'footer.php' ?>
0query
tags/1.1 Beta/0query/templates/gelsheet/index.php
PHP
gpl2
214
<li> <a class="wintrolink wanchorLink <?php if ($this->active) echo "active" ?>" href="<?php echo $this->link?>"><?php echo $this->title ?></a> </li>
0query
tags/1.1 Beta/0query/templates/portfolio/menu-item.php
PHP
gpl2
156
div#fancy_overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; display: none; z-index: 30; } div#fancy_loading { position: absolute; height: 40px; width: 40px; cursor: pointer; display: none; overflow: hidden; background: transparent; z-index: 100; } div#fancy_loa...
0query
tags/1.1 Beta/0query/templates/portfolio/js/jquery.fancybox-1.2.6.css
CSS
gpl2
4,579
/******* *** Anchor Slider by Cedric Dugas *** *** Http://www.position-absolute.com *** Never have an anchor jumping your content, slide it. Don't forget to put an id to your anchor ! You can use and modify this script for any project you want, but please leave this comment as credit. *****/ ...
0query
tags/1.1 Beta/0query/templates/portfolio/js/jquery.anchor.js
JavaScript
gpl2
975
<!DOCTYPE html> <html lang="en"> <head> <title>MinCMS - The easyest way to build your site</title> <meta http-equiv="content-type" content="text/html; charset=UTF-8" /> <!--[if IE]> <script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script> <![endif]--> <!--[if...
0query
tags/1.1 Beta/0query/templates/portfolio/header.php
PHP
gpl2
1,213
<?php get_header()?> <h2>Not found</h2> <?php get_footer()?>
0query
tags/1.1 Beta/0query/templates/portfolio/404.php
PHP
gpl2
62
header { position: absolute; left: 0; } #intro h2 { margin-bottom: 100px; } h2.work { width: 800px; }
0query
tags/1.1 Beta/0query/templates/portfolio/ie7.css
CSS
gpl2
102
* { margin: 0; padding: 0; outline: 0; } /* HTML5 tags */ header, section, footer, aside, nav, article, figure { display: block; } @font-face { font-family: Keffeesatz; src: url(YanoneKaffeesatz-Light.otf) format("opentype") } @font-face { font-family: KeffeesatzBold; src: url(YanoneKaffeesatz-Bold.otf) format("open...
0query
tags/1.1 Beta/0query/templates/portfolio/style.css
CSS
gpl2
5,803
</section> <footer> <ul> <li>Powered by <a href="http://code.google.com/p/0query/"> 0Query </a> <li>Designed by: <a href="http://www.inspectelement.com">Inspect Element</a> </ul> </footer> </section> </body> </html>
0query
tags/1.1 Beta/0query/templates/portfolio/footer.php
Hack
gpl2
262
<?php get_header() ?> <?php get_page() ?> <?php get_footer() ?>
0query
tags/1.1 Beta/0query/templates/portfolio/index.php
PHP
gpl2
64
<?php function get_header() { global $page ; if ( file_exists(TEMPLATE_PATH."header.php") ){ include_once TEMPLATE_PATH."header.php"; } } function get_footer() { global $page ; if ( file_exists(TEMPLATE_PATH."footer.php") ){ include_once TEMPLATE_PATH."footer.php"; } } function get_sidebar(){} functi...
0query
tags/1.1 Beta/0query/core/template_engine.php
PHP
gpl2
533
<?php global $CONF ; global $page ; define ('TEMPLATES_PATH',"templates/") ; define ('TEMPLATE_PATH', TEMPLATES_PATH."/".$CONF['template']."/") ; $pages_dir = "content/pages/" ; $content = new Content (); $main_menu = new Menu(); $main_menu->name = "mainMenu" ; // Scan pages files $fir...
0query
tags/1.1 Beta/0query/core/bootstrap.php
PHP
gpl2
1,207
<?php /** * * Enter description here ... * @author pepe * */ class Content { /** * * Enter description here ... * @var Page */ var $current_page = null ; /** * * Enter description here ... * @var unknown_type */ var $home = null ; /** * * Enter descrip...
0query
tags/1.1 Beta/0query/core/classes/Content.class.php
PHP
gpl2
1,408
<?php class Page { var $path ; var $alias ; var $id ; var $css = null ; var $content ; function __construct($path = null , $alias = null, $id = null ) { $this->alias = $alias ; $this->path = "content/pages/$path/"; $this->id = ($id) ? $id : $alias ; } function outp...
0query
tags/1.1 Beta/0query/core/classes/Page.class.php
PHP
gpl2
1,231
<?php class Menu { var $output ; /** * * Enter description here ... * @var unknown_type */ var $items = array (); /** * Identifier of the menu */ var $name = null ; private $_items_index = array (); function output() { if ($this->output) return $this->output...
0query
tags/1.1 Beta/0query/core/classes/Menu.class.php
PHP
gpl2
945
<?php class MenuItem { /** * * Enter description here ... * @param MenuItem $a * @param MenuItem $b */ static function compare($a, $b ) { if ($a->order == $b->order) { return 0; } return ($a->order < $b->order) ? -1 : 1; } /** * Identifier like 'home' , 'a...
0query
tags/1.1 Beta/0query/core/classes/MenuItem.class.php
PHP
gpl2
1,371
<?php $CONF['home']= "home" ; $CONF['cleanurls'] = true ; $CONF['template'] = 'portfolio' ; $CONF['autoSitemap'] = true ; //TODO will be available on future versions
0query
tags/1.1 Beta/0query/config.php
PHP
gpl2
172
<?php /* * @author Pepe - pepe at phpepe.com */ include_once "config.php" ; include_once 'core/classes/Content.class.php'; include_once "core/classes/MenuItem.class.php" ; include_once "core/classes/Menu.class.php" ; include_once "core/classes/Page.class.php" ; include_once "core/template_eng...
0query
tags/1.1 Beta/0query/index.php
PHP
gpl2
369
#!/usr/bin/python2.4 # # Copyright 2007 The Python-Twitter Developers # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by...
1101391i-pythontwitter
setup.py
Python
asf20
2,254
#!/usr/bin/python2.4 # # Copyright 2007 The Python-Twitter Developers # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by...
1101391i-pythontwitter
get_access_token.py
Python
asf20
3,192
#include "Python.h" #include "structmember.h" #if PY_VERSION_HEX < 0x02060000 && !defined(Py_TYPE) #define Py_TYPE(ob) (((PyObject*)(ob))->ob_type) #endif #if PY_VERSION_HEX < 0x02050000 && !defined(PY_SSIZE_T_MIN) typedef int Py_ssize_t; #define PY_SSIZE_T_MAX INT_MAX #define PY_SSIZE_T_MIN INT_MIN #define PyInt_F...
1101391i-pythontwitter
simplejson/_speedups.c
C
asf20
75,169
"""Implementation of JSONEncoder """ import re try: from simplejson._speedups import encode_basestring_ascii as c_encode_basestring_ascii except ImportError: c_encode_basestring_ascii = None try: from simplejson._speedups import make_encoder as c_make_encoder except ImportError: c_make_encoder = None ...
1101391i-pythontwitter
simplejson/encoder.py
Python
asf20
15,836
"""Implementation of JSONDecoder """ import re import sys import struct from simplejson.scanner import make_scanner try: from simplejson._speedups import scanstring as c_scanstring except ImportError: c_scanstring = None __all__ = ['JSONDecoder'] FLAGS = re.VERBOSE | re.MULTILINE | re.DOTALL def _floatconst...
1101391i-pythontwitter
simplejson/decoder.py
Python
asf20
12,032
r"""JSON (JavaScript Object Notation) <http://json.org> is a subset of JavaScript syntax (ECMA-262 3rd edition) used as a lightweight data interchange format. :mod:`simplejson` exposes an API familiar to users of the standard library :mod:`marshal` and :mod:`pickle` modules. It is the externally maintained version of ...
1101391i-pythontwitter
simplejson/__init__.py
Python
asf20
12,503
r"""Using simplejson from the shell to validate and pretty-print:: $ echo '{"json":"obj"}' | python -msimplejson.tool { "json": "obj" } $ echo '{ 1.2:3.4}' | python -msimplejson.tool Expecting property name: line 1 column 2 (char 2) """ import simplejson def main(): import sys if l...
1101391i-pythontwitter
simplejson/tool.py
Python
asf20
908
"""JSON token scanner """ import re try: from simplejson._speedups import make_scanner as c_make_scanner except ImportError: c_make_scanner = None __all__ = ['make_scanner'] NUMBER_RE = re.compile( r'(-?(?:0|[1-9]\d*))(\.\d+)?([eE][-+]?\d+)?', (re.VERBOSE | re.MULTILINE | re.DOTALL)) def py_make_scan...
1101391i-pythontwitter
simplejson/scanner.py
Python
asf20
2,227
<!doctype html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html><head><title>Python: module twitter</title> </head><body bgcolor="#f0f0f8"> <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="heading"> <tr bgcolor="#7799ee"> <td valign=bottom>&nbsp;<br> <font color="#ffffff" face="helvetica, arial">...
1101391i-pythontwitter
doc/twitter.html
HTML
asf20
132,276
#!/usr/bin/python2.4 '''Load the latest update for a Twitter user and leave it in an XHTML fragment''' __author__ = 'dewitt@google.com' import codecs import getopt import sys import twitter TEMPLATE = """ <div class="twitter"> <span class="twitter-user"><a href="http://twitter.com/%s">Twitter</a>: </span> <span...
1101391i-pythontwitter
examples/twitter-to-xhtml.py
Python
asf20
1,685
#!/usr/bin/python2.4 '''Post a message to twitter''' __author__ = 'dewitt@google.com' import ConfigParser import getopt import os import sys import twitter USAGE = '''Usage: tweet [options] message This script posts a message to Twitter. Options: -h --help : print this help --consumer-key : the twit...
1101391i-pythontwitter
examples/tweet.py
Python
asf20
4,205
#!/usr/bin/python2.4 # # Copyright 2007 The Python-Twitter Developers # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by...
1101391i-pythontwitter
examples/shorten_url.py
Python
asf20
2,072
#!/usr/bin/python2.4 # # Copyright 2007 The Python-Twitter Developers # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by...
1101391i-pythontwitter
twitter.py
Python
asf20
129,982
#!/usr/bin/python2.4 # -*- coding: utf-8 -*-# # # Copyright 2007 The Python-Twitter Developers # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2...
1101391i-pythontwitter
twitter_test.py
Python
asf20
27,102
#!/bin/sh # START-COMMIT HOOK # # The start-commit hook is invoked before a Subversion txn is created # in the process of doing a commit. Subversion runs this hook # by invoking a program (script, executable, binary, etc.) named # 'start-commit' (for which this file is a template) # with the following ordered...
1071017tese
trunk/1071017tese --username barbara.cidalia@gmail.com/hooks/start-commit.tmpl
Shell
asf20
2,845
#!/bin/sh # PRE-COMMIT HOOK # # The pre-commit hook is invoked before a Subversion txn is # committed. Subversion runs this hook by invoking a program # (script, executable, binary, etc.) named 'pre-commit' (for which # this file is a template), with the following ordered arguments: # # [1] REPOS-PATH (t...
1071017tese
trunk/1071017tese --username barbara.cidalia@gmail.com/hooks/pre-commit.tmpl
Shell
asf20
3,513
#!/bin/sh # PRE-LOCK HOOK # # The pre-lock hook is invoked before an exclusive lock is # created. Subversion runs this hook by invoking a program # (script, executable, binary, etc.) named 'pre-lock' (for which # this file is a template), with the following ordered arguments: # # [1] REPOS-PATH (the pat...
1071017tese
trunk/1071017tese --username barbara.cidalia@gmail.com/hooks/pre-lock.tmpl
Shell
asf20
2,513
#!/bin/sh # POST-COMMIT HOOK # # The post-commit hook is invoked after a commit. Subversion runs # this hook by invoking a program (script, executable, binary, etc.) # named 'post-commit' (for which this file is a template) with the # following ordered arguments: # # [1] REPOS-PATH (the path to this rep...
1071017tese
trunk/1071017tese --username barbara.cidalia@gmail.com/hooks/post-commit.tmpl
Shell
asf20
2,027
#!/bin/sh # PRE-COMMIT HOOK # # The pre-commit hook is invoked before a Subversion txn is # committed. Subversion runs this hook by invoking a program # (script, executable, binary, etc.) named 'pre-commit' (for which # this file is a template), with the following ordered arguments: # # [1] REPOS-PATH (t...
1071017tese
trunk/1071017tese --username barbara.cidalia@gmail.com/hooks/.svn/text-base/pre-commit.tmpl.svn-base
Shell
asf20
3,513
#!/bin/sh # PRE-REVPROP-CHANGE HOOK # # The pre-revprop-change hook is invoked before a revision property # is added, modified or deleted. Subversion runs this hook by invoking # a program (script, executable, binary, etc.) named 'pre-revprop-change' # (for which this file is a template), with the following or...
1071017tese
trunk/1071017tese --username barbara.cidalia@gmail.com/hooks/.svn/text-base/pre-revprop-change.tmpl.svn-base
Shell
asf20
2,852
#!/bin/sh # PRE-LOCK HOOK # # The pre-lock hook is invoked before an exclusive lock is # created. Subversion runs this hook by invoking a program # (script, executable, binary, etc.) named 'pre-lock' (for which # this file is a template), with the following ordered arguments: # # [1] REPOS-PATH (the pat...
1071017tese
trunk/1071017tese --username barbara.cidalia@gmail.com/hooks/.svn/text-base/pre-lock.tmpl.svn-base
Shell
asf20
2,513
#!/bin/sh # POST-REVPROP-CHANGE HOOK # # The post-revprop-change hook is invoked after a revision property # has been added, modified or deleted. Subversion runs this hook by # invoking a program (script, executable, binary, etc.) named # 'post-revprop-change' (for which this file is a template), with the # f...
1071017tese
trunk/1071017tese --username barbara.cidalia@gmail.com/hooks/.svn/text-base/post-revprop-change.tmpl.svn-base
Shell
asf20
2,345
#!/bin/sh # POST-LOCK HOOK # # The post-lock hook is run after a path is locked. Subversion runs # this hook by invoking a program (script, executable, binary, etc.) # named 'post-lock' (for which this file is a template) with the # following ordered arguments: # # [1] REPOS-PATH (the path to this repos...
1071017tese
trunk/1071017tese --username barbara.cidalia@gmail.com/hooks/.svn/text-base/post-lock.tmpl.svn-base
Shell
asf20
1,682
#!/bin/sh # PRE-UNLOCK HOOK # # The pre-unlock hook is invoked before an exclusive lock is # destroyed. Subversion runs this hook by invoking a program # (script, executable, binary, etc.) named 'pre-unlock' (for which # this file is a template), with the following ordered arguments: # # [1] REPOS-PATH ...
1071017tese
trunk/1071017tese --username barbara.cidalia@gmail.com/hooks/.svn/text-base/pre-unlock.tmpl.svn-base
Shell
asf20
2,193
#!/bin/sh # START-COMMIT HOOK # # The start-commit hook is invoked before a Subversion txn is created # in the process of doing a commit. Subversion runs this hook # by invoking a program (script, executable, binary, etc.) named # 'start-commit' (for which this file is a template) # with the following ordered...
1071017tese
trunk/1071017tese --username barbara.cidalia@gmail.com/hooks/.svn/text-base/start-commit.tmpl.svn-base
Shell
asf20
2,845
#!/bin/sh # POST-COMMIT HOOK # # The post-commit hook is invoked after a commit. Subversion runs # this hook by invoking a program (script, executable, binary, etc.) # named 'post-commit' (for which this file is a template) with the # following ordered arguments: # # [1] REPOS-PATH (the path to this rep...
1071017tese
trunk/1071017tese --username barbara.cidalia@gmail.com/hooks/.svn/text-base/post-commit.tmpl.svn-base
Shell
asf20
2,027
#!/bin/sh # POST-UNLOCK HOOK # # The post-unlock hook runs after a path is unlocked. Subversion runs # this hook by invoking a program (script, executable, binary, etc.) # named 'post-unlock' (for which this file is a template) with the # following ordered arguments: # # [1] REPOS-PATH (the path to this...
1071017tese
trunk/1071017tese --username barbara.cidalia@gmail.com/hooks/.svn/text-base/post-unlock.tmpl.svn-base
Shell
asf20
1,609
#!/bin/sh # POST-UNLOCK HOOK # # The post-unlock hook runs after a path is unlocked. Subversion runs # this hook by invoking a program (script, executable, binary, etc.) # named 'post-unlock' (for which this file is a template) with the # following ordered arguments: # # [1] REPOS-PATH (the path to this...
1071017tese
trunk/1071017tese --username barbara.cidalia@gmail.com/hooks/post-unlock.tmpl
Shell
asf20
1,609
#!/bin/sh # PRE-REVPROP-CHANGE HOOK # # The pre-revprop-change hook is invoked before a revision property # is added, modified or deleted. Subversion runs this hook by invoking # a program (script, executable, binary, etc.) named 'pre-revprop-change' # (for which this file is a template), with the following or...
1071017tese
trunk/1071017tese --username barbara.cidalia@gmail.com/hooks/pre-revprop-change.tmpl
Shell
asf20
2,852
#!/bin/sh # POST-LOCK HOOK # # The post-lock hook is run after a path is locked. Subversion runs # this hook by invoking a program (script, executable, binary, etc.) # named 'post-lock' (for which this file is a template) with the # following ordered arguments: # # [1] REPOS-PATH (the path to this repos...
1071017tese
trunk/1071017tese --username barbara.cidalia@gmail.com/hooks/post-lock.tmpl
Shell
asf20
1,682
#!/bin/sh # POST-REVPROP-CHANGE HOOK # # The post-revprop-change hook is invoked after a revision property # has been added, modified or deleted. Subversion runs this hook by # invoking a program (script, executable, binary, etc.) named # 'post-revprop-change' (for which this file is a template), with the # f...
1071017tese
trunk/1071017tese --username barbara.cidalia@gmail.com/hooks/post-revprop-change.tmpl
Shell
asf20
2,345
#!/bin/sh # PRE-UNLOCK HOOK # # The pre-unlock hook is invoked before an exclusive lock is # destroyed. Subversion runs this hook by invoking a program # (script, executable, binary, etc.) named 'pre-unlock' (for which # this file is a template), with the following ordered arguments: # # [1] REPOS-PATH ...
1071017tese
trunk/1071017tese --username barbara.cidalia@gmail.com/hooks/pre-unlock.tmpl
Shell
asf20
2,193
<?php $dbhost = 'localhost:3306'; $dbuser = 'root'; $dbpw = 'root'; $dbname = 'china100'; $database = 'mysql'; $pconnect = '0'; $charset = 'utf8'; ?> <?php //$dbhost = '121.15.221.95:3306'; //$dbuser = 's510437db0'; //$dbpw = 'g53vzqta'; //$dbname = 's510437db0'; //$database = 'mysql'; //$pconnect = '0...
100-forum
trunk/v1/config/database.php
PHP
asf20
348
function getVal(id) { return $("#" + id).val(); } function getAttr(id, attr) { return $("#" + id).attr(attr) } /**//************************************************************************ | 函数名称: setCookie | | 函数功能: 设置cookie函数 ...
100-forum
trunk/v1/js/admin/admin.js
JavaScript
asf20
2,564
<?php return array ( 'sys_name'=>'中国百分百网', 'fr_theme' => 'simple', 'cookpifix'=>'100china_' );
100-forum
trunk/v1/data/sysinfo.php
PHP
asf20
118
<?php define('DR', dirname(__FILE__)); require 'include/front.php'; ?>
100-forum
trunk/v1/index.php
PHP
asf20
75
<?php class Welcome extends AdminAction{ function index(){ $sysinfo = loadData('sysinfo.php'); $this->data['title'] = $sysinfo['sys_name'].' - 登入'; template('welcome',$this->data); } function login(){ $db = $this->getDB(); $username = P('username'); $userpass = P('userpass'); $rember...
100-forum
trunk/v1/admin/welcome.php
PHP
asf20
1,278
<?php class Article extends AdminAction{ function alist(){ $this->data['selectitem'] = 'article'; template('art_alist',$this->data); } }
100-forum
trunk/v1/admin/article.php
PHP
asf20
155
<?php include incTemplate('panel_top.php'); ?> <?php print_r($HTTP_COOKIE_VARS);?> <?php include incTemplate('panel_bottom.php'); ?>
100-forum
trunk/v1/admin/template/art_alist.php
PHP
asf20
134
</div> </div> <div class="footer"> <p><span class="fl">感谢您使用中国百分百论坛系统</span> <span class="fr">当前版本:1.0</span> </p> </div> </div> </body> </html>
100-forum
trunk/v1/admin/template/panel_bottom.php
Hack
asf20
193
<?php include incTemplate('header.php'); ?> <script type="text/javascript"> $(function(){ $(".sp_btn").button(); $(".sp_btn").click(function(){ var username = getVal("username"); var userpass = getVal("userpass"); var rember = getAttr("rember","checked")=="checked"?1:0; $.post('admin.php/welcome/logi...
100-forum
trunk/v1/admin/template/welcome.php
PHP
asf20
2,456
<div class="navbar"> <div class="icon32" id="icon-index"><br> </div> <span>控制板</span></div> <div class="dashboard"> <div class="metabox-holder"></div> <div class="column"> <div class="portlet"> <div class="portlet-header">概况</div> <div class="portlet-content"> <div class="port_left"> <p class="sub">内容</p> <...
100-forum
trunk/v1/admin/template/console_panel.php
Hack
asf20
3,149
<div class="menulist"> <div class="menu"> <ul> <li <?php if($selectitem == 'control'){?>class="top"<?php }?>> <div class="menu-img control "></div> <div class="toggle" id="tg_control"></div> <?php if($selectitem == 'control'){ ?> <div class="menu-arrow"><div></div></div> <a class="itemselect">控制板...
100-forum
trunk/v1/admin/template/menulist.php
PHP
asf20
3,161
<?php include incTemplate('header.php'); ?> <script type="text/javascript"> var menuarray ='<?php echo $menulist;?>'; var menuadds = '<?php echo $menulist;?>'; var cookpifix = '<?php echo $sysinfo['cookpifix'];?>'; var menulist = '<?php echo $menulist;?>'; $(function(){ $(".menu ul li").hover( function ()...
100-forum
trunk/v1/admin/template/panel_top.php
PHP
asf20
5,214
<?php include incTemplate('panel_top.php'); ?> <?php print_r($_COOKIE);?> <?php include incTemplate('console_panel.php'); ?> <?php include incTemplate('panel_bottom.php'); ?>
100-forum
trunk/v1/admin/template/console.php
PHP
asf20
177
<!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> <base href="<?php echo HH;?>" /> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title><?php echo $title;?></ti...
100-forum
trunk/v1/admin/template/header.php
PHP
asf20
708
*{ font-family: "Microsoft YaHei", Segoe UI, Tahoma, Arial, Verdana, sans-serif; } body { margin: 0px; padding: 0px; font-size: 12px; } html,body { height: 100%; } ul { list-style: none; margin: 0px; padding: 0px; } .fl{float:left;} .fr{float:right;} .menulist{ background-color: #ECEC...
100-forum
trunk/v1/admin/template/css/style.css
CSS
asf20
4,583
.postbox p,.postbox ul,.postbox ol,.postbox blockquote,#wp-version-message { font-size: 12px; } .edit-box { display: none; } h3:hover .edit-box { display: inline; } form .input-text-wrap { background: #fff; border-style: solid; border-width: 1px; padding: 2px 3px; border-color: #ccc; } #dashboard-widgets f...
100-forum
trunk/v1/admin/template/css/load-styles.css
CSS
asf20
92,109
<?php print_r($_COOKIE); //phpinfo();
100-forum
trunk/v1/phpinfo.php
PHP
asf20
39
<?php define('DR', dirname(__FILE__)); require 'include/admin.php';
100-forum
trunk/v1/admin.php
PHP
asf20
71
<?php class Welcome extends FrontAction{ function index(){ template('index',$this->data); } }
100-forum
trunk/v1/require/welcome.php
PHP
asf20
102
<?php function loadAdmin($action){ require 'admin/'.$action.'.php'; $action = ucfirst($action); $act = new $action();; return $act; } function template($page,$data=null){ if(sizeof($data)>=1){ extract($data); } if(is_array($page)){ foreach($page as $p){ require 'admin/template/'.$p.'.php';...
100-forum
trunk/v1/include/admin_fun.php
PHP
asf20
818
<script type="text/javascript"> var jumpnum = 1; function setJumpNum(jump){ jumpnum = jump; } </script> <?php class PageSplit{ function getPageCount($pagesize,$rownums){ $pagecount = (int)($rownums%$pagesize==0?(int)($rownums/$pagesize):(int)(($rownums/$pagesize)+1)); return $pagecount; } function...
100-forum
trunk/v1/include/front_pagesplit.php
PHP
asf20
5,362
<?php class AdminAction{ public $data; public $lang; function __construct(){ $this->loadData(); $this->init(); } function init(){ $this->getMenuList(); } function loadData(){ global $sysinfo; $this->data = array(); $this->data['sysinfo'] = $sysinfo; } function getMenuLis...
100-forum
trunk/v1/include/admin_action.php
PHP
asf20
859
<?php class FrontAction{ public $data; function __construct(){ $this->data = array(); } function getDB(){ require 'config/db.php'; require 'inc/mysql.php'; return $db = new mysql($dbhost, $dbuser, $dbpw, $dbname, $pconnect,$charset); } }
100-forum
trunk/v1/include/front_action.php
PHP
asf20
269
<?php !defined('HH') && exit('Forbidden'); class mysql{ private $db_host; //数据库主机 private $db_user; //数据库用户名 private $db_pwd; //数据库用户名密码 private $db_database; //数据库名 private $conn; //数据库连接标识; private $result; //执行query命令的结果资源标识 private $sql; //sql执行语句 private $row; //返...
100-forum
trunk/v1/include/mysql.php
PHP
asf20
14,666
<?php session_start(); function P($key){ return $_POST["$key"]; } function G($key){ return $_GET["$key"]; } function getSession($key){ return $_SESSION[$key]; } function setSession($key,$value){ $_SESSION[$key] = $value; } function setCk($name,$value,$expire){ global $sysinfo; setcookie($sysinfo['...
100-forum
trunk/v1/include/fun.php
PHP
asf20
2,112
<?php session_start(); define('HH','http://'.$_SERVER['HTTP_HOST'].'/'); define('HT',HH.'admin/template/'); require 'include/fun.php'; require 'include/admin_fun.php'; require 'include/admin_action.php'; $sysinfo = loadData('sysinfo.php'); $nav=$_SERVER['REQUEST_URI']; $script=$_SERVER['SCRIPT_NAME']; $...
100-forum
trunk/v1/include/admin.php
PHP
asf20
725
<?php session_start(); define('HH','http://'.$_SERVER['HTTP_HOST'].'/'); require DR.'/include/fun.php'; require DR.'/include/front_fun.php'; require DR.'/include/front_action.php'; /*加载必要的系统信息*/ $sysinfo = loadData('sysinfo.php'); $nav=$_SERVER['REQUEST_URI']; $nav=str_replace('.html','',$nav); $script=...
100-forum
trunk/v1/include/front.php
PHP
asf20
808
<?php /*前台方法*/ /** * 加载ACTION文件 * @param $action * @return 加载ACTION的实例 */ function loadAction($action){ require DR.'/require/'.$action.'.php'; $action = ucfirst($action); if (class_exists($action)) { $act = new $action();; return $act; } } function template($page,$data=null){ global $sysin...
100-forum
trunk/v1/include/front_fun.php
PHP
asf20
948
<?php session_start(); $_SESSION['re_code']=''; $type = 'gif'; $width= 38; $height= 18; header("Content-type: image/".$type); srand((double)microtime()*1000000); $randval = randStr(4,"ALL"); if($type!='gif' && function_exists('imagecreatetruecolor')){ $im = @imagecreatetruecolor($width,$height); }else{ ...
100-forum
trunk/v1/include/checkcode.php
PHP
asf20
2,036
<?php class File{ function uploadfile($filename,$loacation){ $ftype = getSuffix($_FILES[$filename]["name"]); $attachid = uuid2(); $fname = $attachid.$ftype; $datestr = date('Y-m-d'); if(!file_exists(DR.'/'.$loacation.'/'.$datestr)){ mkdir(DR.'/'.$loacation.'/'.$datestr); } $floc = DR.'/'....
100-forum
trunk/v1/include/lib/file.php
PHP
asf20
640
<!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; charset=utf-8" /> <title>Keep It Simple</title> <base href="<?php echo HT;?>" /> <link r...
100-forum
trunk/v1/themes/simple/index.php
PHP
asf20
15,373
/* 960 Grid System ~ Core CSS. Learn more ~ http://960.gs/ Licensed under GPL and MIT. */ /* =Containers --------------------------------------------------------------------------------*/ .container_12, .container_16 { margin-left: auto; margin-right: auto; width: 960px; } /* =Grid >> Global -----------------...
100-forum
trunk/v1/themes/simple/css/960.css
CSS
asf20
6,121
/* http://meyerweb.com/eric/thoughts/2007/05/01/reset-reloaded/ */ html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, font, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var,dl, dt, dd, ol, ul, li, field...
100-forum
trunk/v1/themes/simple/css/reset.css
CSS
asf20
996
*{ font-family: "Microsoft YaHei", Segoe UI, Tahoma, Arial, Verdana, sans-serif; } body { font: 12px/165% 'Lucida Grande', Verdana, Helvetica, sans-serif; color: #666666; margin: 0; padding: 0 0 50px 0; background: #F6F5F5 url(../images/bg.gif) repeat-x; text-align: center; } /* Links */ a:link,...
100-forum
trunk/v1/themes/simple/css/KeepItSimple.css
CSS
asf20
11,812
/* theme screen stylesheets */ /* import stylesheets and hide from ie/mac \*/ @import url("reset.css"); @import url("960.css"); @import url("KeepItSimple.css"); /* end import/hide */
100-forum
trunk/v1/themes/simple/css/screen.css
CSS
asf20
189
using System; using System.Collections.Generic; using System.ComponentModel; using System.Drawing; using System.Data; using System.Linq; using System.Text; using System.Windows.Forms; namespace _1042009_1042034 { public partial class UctBaoCaoMatDoSuDungPhong : UserControl { public UctBao...
1042034-tdhau-project1
trunk/src/1042009-1042034/1042009-1042034/UctBaoCaoMatDoSuDungPhong.cs
C#
asf20
563
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Drawing; namespace _1042009_1042034 { class MyColor { public static readonly Color Default = Color.BurlyWood; public static readonly Color Change = Color.Aquamarine; publ...
1042034-tdhau-project1
trunk/src/1042009-1042034/1042009-1042034/MyColor.cs
C#
asf20
719
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Windows.Forms; using DTO; namespace _1042009_1042034 { class ComboBoxLoaiPhong:ComboBox { public void Load() { List<LoaiPhongDTO> lst = Business.LoaiPhongService.LayDanhS...
1042034-tdhau-project1
trunk/src/1042009-1042034/1042009-1042034/ComboBoxLoaiPhong.cs
C#
asf20
507
using System; using System.Collections.Generic; using System.ComponentModel; using System.Drawing; using System.Data; using System.Linq; using System.Text; using System.Windows.Forms; using DTO; namespace _1042009_1042034 { public partial class uctThemDanhMucPhong : UserControl { public ...
1042034-tdhau-project1
trunk/src/1042009-1042034/1042009-1042034/uctThemDanhMucPhong.cs
C#
asf20
10,097