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
/**
* Deprecated multisite admin functions from past WordPress versions and WordPress MU.
* You shouldn't use these functions and look for the alternatives instead. The functions
* will be removed in a later version.
*
* @package WordPress
* @subpackage Deprecated
* @since 3.0.0
*/
/**
* @deprecated 3.0... | zyblog | trunk/zyblog/wp-admin/includes/ms-deprecated.php | PHP | asf20 | 1,995 |
<?php
/**
* Links Manager List Table class.
*
* @package WordPress
* @subpackage List_Table
* @since 3.1.0
* @access private
*/
class WP_Links_List_Table extends WP_List_Table {
function __construct( $args = array() ) {
parent::__construct( array(
'plural' => 'bookmarks',
'screen' => isset( $args['scre... | zyblog | trunk/zyblog/wp-admin/includes/class-wp-links-list-table.php | PHP | asf20 | 5,751 |
<?php
/**
* Misc WordPress Administration API.
*
* @package WordPress
* @subpackage Administration
*/
/**
* {@internal Missing Short Description}}
*
* @since 2.0.0
*
* @return unknown
*/
function got_mod_rewrite() {
$got_rewrite = apache_mod_loaded('mod_rewrite', true);
return apply_filters('got_rewrite',... | zyblog | trunk/zyblog/wp-admin/includes/misc.php | PHP | asf20 | 15,591 |
<?php
/**
* WordPress core upgrade functionality.
*
* @package WordPress
* @subpackage Administration
* @since 2.7.0
*/
/**
* Stores files to be deleted.
*
* @since 2.7.0
* @global array $_old_files
* @var array
* @name $_old_files
*/
global $_old_files;
$_old_files = array(
// 2.0
'wp-admin/import-b2.ph... | zyblog | trunk/zyblog/wp-admin/includes/update-core.php | PHP | asf20 | 32,893 |
<?php
/**
* Includes all of the WordPress Administration API files.
*
* @package WordPress
* @subpackage Administration
*/
if ( ! defined('WP_ADMIN') ) {
// This file is being included from a file other than wp-admin/admin.php, so
// some setup was skipped. Make sure the admin message catalog is loaded since
/... | zyblog | trunk/zyblog/wp-admin/includes/admin.php | PHP | asf20 | 2,443 |
<?php
/**
* Plugins List Table class.
*
* @package WordPress
* @subpackage List_Table
* @since 3.1.0
* @access private
*/
class WP_Plugins_List_Table extends WP_List_Table {
function __construct( $args = array() ) {
global $status, $page;
parent::__construct( array(
'plural' => 'plugins',
'screen' =... | zyblog | trunk/zyblog/wp-admin/includes/class-wp-plugins-list-table.php | PHP | asf20 | 16,615 |
<?php
/**
* WordPress Theme Administration API
*
* @package WordPress
* @subpackage Administration
*/
/**
* Remove a theme
*
* @since 2.8.0
*
* @param string $stylesheet Stylesheet of the theme to delete
* @param string $redirect Redirect to page when complete.
* @return mixed
*/
function delete_theme($st... | zyblog | trunk/zyblog/wp-admin/includes/theme.php | PHP | asf20 | 10,986 |
<?php
/**
* WordPress Image Editor
*
* @package WordPress
* @subpackage Administration
*/
function wp_image_editor($post_id, $msg = false) {
$nonce = wp_create_nonce("image_editor-$post_id");
$meta = wp_get_attachment_metadata($post_id);
$thumb = image_get_intermediate_size($post_id, 'thumbnail');
$sub_sizes ... | zyblog | trunk/zyblog/wp-admin/includes/image-edit.php | PHP | asf20 | 26,355 |
<?php
/**
* WordPress SSH2 Filesystem.
*
* @package WordPress
* @subpackage Filesystem
*/
/**
* WordPress Filesystem Class for implementing SSH2.
*
* To use this class you must follow these steps for PHP 5.2.6+
*
* @contrib http://kevin.vanzonneveld.net/techblog/article/make_ssh_connections_with_php/ - Insta... | zyblog | trunk/zyblog/wp-admin/includes/class-wp-filesystem-ssh2.php | PHP | asf20 | 11,437 |
<?php
/**
* Functions for reading, writing, modifying, and deleting files on the file system.
* Includes functionality for theme-specific files as well as operations for uploading,
* archiving, and rendering output when necessary.
*
* @package WordPress
* @subpackage Administration
*/
/** The descriptions for t... | zyblog | trunk/zyblog/wp-admin/includes/file.php | PHP | asf20 | 42,035 |
<?php
/**
* WordPress Taxonomy Administration API.
*
* @package WordPress
* @subpackage Administration
*/
//
// Category
//
/**
* {@internal Missing Short Description}}
*
* @since 2.0.0
*
* @param unknown_type $cat_name
* @return unknown
*/
function category_exists($cat_name, $parent = 0) {
$id = term_ex... | zyblog | trunk/zyblog/wp-admin/includes/taxonomy.php | PHP | asf20 | 5,745 |
<?php
/**
* Comments and Post Comments List Table classes.
*
* @package WordPress
* @subpackage List_Table
* @since 3.1.0
*/
/**
* Comments List Table class.
*
* @package WordPress
* @subpackage List_Table
* @since 3.1.0
* @access private
*/
class WP_Comments_List_Table extends WP_List_Table {
var $chec... | zyblog | trunk/zyblog/wp-admin/includes/class-wp-comments-list-table.php | PHP | asf20 | 20,767 |
<?php
/**
* WordPress Export Administration API
*
* @package WordPress
* @subpackage Administration
*/
/**
* Version number for the export format.
*
* Bump this when something changes that might affect compatibility.
*
* @since 2.5.0
*/
define( 'WXR_VERSION', '1.2' );
/**
* Generates the WXR export file f... | zyblog | trunk/zyblog/wp-admin/includes/export.php | PHP | asf20 | 16,090 |
<?php
/**
* Base class for displaying a list of items in an ajaxified HTML table.
*
* @package WordPress
* @subpackage List_Table
* @since 3.1.0
*/
/**
* Base class for displaying a list of items in an ajaxified HTML table.
*
* @package WordPress
* @subpackage List_Table
* @since 3.1.0
* @access private
*... | zyblog | trunk/zyblog/wp-admin/includes/class-wp-list-table.php | PHP | asf20 | 22,791 |
<?php
/**
* WordPress Core Ajax Handlers.
*
* @package WordPress
* @subpackage Administration
*/
/*
* No-privilege Ajax handlers.
*/
function wp_ajax_nopriv_autosave() {
$id = isset( $_POST['post_ID'] ) ? (int) $_POST['post_ID'] : 0;
if ( ! $id )
wp_die( -1 );
$message = sprintf( __('<strong>ALERT: You ... | zyblog | trunk/zyblog/wp-admin/includes/ajax-actions.php | PHP | asf20 | 62,346 |
<?php
/**
* Users List Table class.
*
* @package WordPress
* @subpackage List_Table
* @since 3.1.0
* @access private
*/
class WP_Users_List_Table extends WP_List_Table {
var $site_id;
var $is_site_users;
function __construct( $args = array() ) {
parent::__construct( array(
'singular' => 'user',
'plu... | zyblog | trunk/zyblog/wp-admin/includes/class-wp-users-list-table.php | PHP | asf20 | 10,072 |
<?php
/**
* Posts List Table class.
*
* @package WordPress
* @subpackage List_Table
* @since 3.1.0
* @access private
*/
class WP_Posts_List_Table extends WP_List_Table {
/**
* Whether the items should be displayed hierarchically or linearly
*
* @since 3.1.0
* @var bool
* @access protected
*/
var $... | zyblog | trunk/zyblog/wp-admin/includes/class-wp-posts-list-table.php | PHP | asf20 | 36,573 |
<?php
/**
* A File upgrader class for WordPress.
*
* This set of classes are designed to be used to upgrade/install a local set of files on the filesystem via the Filesystem Abstraction classes.
*
* @link http://trac.wordpress.org/ticket/7875 consolidate plugin/theme/core upgrade/install functions
*
* @package W... | zyblog | trunk/zyblog/wp-admin/includes/class-wp-upgrader.php | PHP | asf20 | 60,747 |
<?php
/**
* WordPress Administration Media API.
*
* @package WordPress
* @subpackage Administration
*/
/**
* Defines the default media upload tabs
*
* @since 2.5.0
*
* @return array default tabs
*/
function media_upload_tabs() {
$_default_tabs = array(
'type' => __('From Computer'), // handler action suf... | zyblog | trunk/zyblog/wp-admin/includes/media.php | PHP | asf20 | 80,953 |
<?php
/**
* WordPress Upgrade API
*
* Most of the functions are pluggable and can be overwritten
*
* @package WordPress
* @subpackage Administration
*/
/** Include user install customize script. */
if ( file_exists(WP_CONTENT_DIR . '/install.php') )
require (WP_CONTENT_DIR . '/install.php');
/** WordPress Adm... | zyblog | trunk/zyblog/wp-admin/includes/upgrade.php | PHP | asf20 | 66,303 |
<?php
/**
* WordPress FTP Sockets Filesystem.
*
* @package WordPress
* @subpackage Filesystem
*/
/**
* WordPress Filesystem Class for implementing FTP Sockets.
*
* @since 2.5
* @package WordPress
* @subpackage Filesystem
* @uses WP_Filesystem_Base Extends class
*/
class WP_Filesystem_ftpsockets extends WP_... | zyblog | trunk/zyblog/wp-admin/includes/class-wp-filesystem-ftpsockets.php | PHP | asf20 | 7,865 |
<?php
/**
* WordPress Administration Update API
*
* @package WordPress
* @subpackage Administration
*/
// The admin side of our 1.1 update system
/**
* Selects the first update version from the update_core option
*
* @return object the response from the API
*/
function get_preferred_from_update_core() {
$up... | zyblog | trunk/zyblog/wp-admin/includes/update.php | PHP | asf20 | 11,739 |
<?php
// --------------------------------------------------------------------------------
// PhpConcept Library - Zip Module 2.8.2
// --------------------------------------------------------------------------------
// License GNU/LGPL - Vincent Blavet - August 2009
// http://www.phpconcept.net
// ----------------------... | zyblog | trunk/zyblog/wp-admin/includes/class-pclzip.php | PHP | asf20 | 195,618 |
<?php
/**
* WordPress Theme Install Administration API
*
* @package WordPress
* @subpackage Administration
*/
$themes_allowedtags = array('a' => array('href' => array(), 'title' => array(), 'target' => array()),
'abbr' => array('title' => array()), 'acronym' => array('title' => array()),
'code' => array(), 'pre... | zyblog | trunk/zyblog/wp-admin/includes/theme-install.php | PHP | asf20 | 6,007 |
<?php
/**
* Terms List Table class.
*
* @package WordPress
* @subpackage List_Table
* @since 3.1.0
* @access private
*/
class WP_Terms_List_Table extends WP_List_Table {
var $callback_args;
function __construct( $args = array() ) {
global $post_type, $taxonomy, $action, $tax;
parent::__construct( array(... | zyblog | trunk/zyblog/wp-admin/includes/class-wp-terms-list-table.php | PHP | asf20 | 12,205 |
<?php
/**
* Deprecated admin functions from past WordPress versions. You shouldn't use these
* functions and look for the alternatives instead. The functions will be removed
* in a later version.
*
* @package WordPress
* @subpackage Deprecated
*/
/*
* Deprecated functions come here to die.
*/
/**
* @since 2... | zyblog | trunk/zyblog/wp-admin/includes/deprecated.php | PHP | asf20 | 25,245 |
<?php
/**
* WordPress FTP Filesystem.
*
* @package WordPress
* @subpackage Filesystem
*/
/**
* WordPress Filesystem Class for implementing FTP.
*
* @since 2.5
* @package WordPress
* @subpackage Filesystem
* @uses WP_Filesystem_Base Extends class
*/
class WP_Filesystem_FTPext extends WP_Filesystem_Base {
v... | zyblog | trunk/zyblog/wp-admin/includes/class-wp-filesystem-ftpext.php | PHP | asf20 | 11,140 |
<?php
/**
* Multisite Users List Table class.
*
* @package WordPress
* @subpackage List_Table
* @since 3.1.0
* @access private
*/
class WP_MS_Users_List_Table extends WP_List_Table {
function ajax_user_can() {
return current_user_can( 'manage_network_users' );
}
function prepare_items() {
global $userse... | zyblog | trunk/zyblog/wp-admin/includes/class-wp-ms-users-list-table.php | PHP | asf20 | 8,813 |
<?php
/**
* Create HTML list of nav menu input items.
*
* @package WordPress
* @since 3.0.0
* @uses Walker_Nav_Menu
*/
class Walker_Nav_Menu_Edit extends Walker_Nav_Menu {
/**
* @see Walker_Nav_Menu::start_lvl()
* @since 3.0.0
*
* @param string $output Passed by reference.
*/
function start_lvl(&$out... | zyblog | trunk/zyblog/wp-admin/includes/nav-menu.php | PHP | asf20 | 46,471 |
<?php
/**
* MS Themes List Table class.
*
* @package WordPress
* @subpackage List_Table
* @since 3.1.0
* @access private
*/
class WP_MS_Themes_List_Table extends WP_List_Table {
var $site_id;
var $is_site_themes;
function __construct( $args = array() ) {
global $status, $page;
parent::__construct( arra... | zyblog | trunk/zyblog/wp-admin/includes/class-wp-ms-themes-list-table.php | PHP | asf20 | 11,709 |
<?php
/**
* PemFTP - A Ftp implementation in pure PHP
*
* @package PemFTP
* @since 2.5
*
* @version 1.0
* @copyright Alexey Dotsenko
* @author Alexey Dotsenko
* @link http://www.phpclasses.org/browse/package/1743.html Site
* @license LGPL License http://www.opensource.org/licenses/lgpl-license.html
*/
/**
... | zyblog | trunk/zyblog/wp-admin/includes/class-ftp-pure.php | PHP | asf20 | 5,489 |
<?php
/**
* WordPress Direct Filesystem.
*
* @package WordPress
* @subpackage Filesystem
*/
/**
* WordPress Filesystem Class for direct PHP file and folder manipulation.
*
* @since 2.5
* @package WordPress
* @subpackage Filesystem
* @uses WP_Filesystem_Base Extends class
*/
class WP_Filesystem_Direct exten... | zyblog | trunk/zyblog/wp-admin/includes/class-wp-filesystem-direct.php | PHP | asf20 | 9,558 |
<?php
/**
* Media Library List Table class.
*
* @package WordPress
* @subpackage List_Table
* @since 3.1.0
* @access private
*/
class WP_Media_List_Table extends WP_List_Table {
function __construct( $args = array() ) {
$this->detached = isset( $_REQUEST['detached'] ) || isset( $_REQUEST['find_detached'] );
... | zyblog | trunk/zyblog/wp-admin/includes/class-wp-media-list-table.php | PHP | asf20 | 14,887 |
<?php
/**
* WordPress Post Administration API.
*
* @package WordPress
* @subpackage Administration
*/
/**
* Rename $_POST data from form names to DB post columns.
*
* Manipulates $_POST directly.
*
* @package WordPress
* @since 2.6.0
*
* @param bool $update Are we updating a pre-existing post?
* @param a... | zyblog | trunk/zyblog/wp-admin/includes/post.php | PHP | asf20 | 41,151 |
<?php
/**
* PemFTP - A Ftp implementation in pure PHP
*
* @package PemFTP
* @since 2.5
*
* @version 1.0
* @copyright Alexey Dotsenko
* @author Alexey Dotsenko
* @link http://www.phpclasses.org/browse/package/1743.html Site
* @license LGPL License http://www.opensource.org/licenses/lgpl-license.html
*/
/**
... | zyblog | trunk/zyblog/wp-admin/includes/class-ftp.php | PHP | asf20 | 26,858 |
<?php
/**
* Template WordPress Administration API.
*
* A Big Mess. Also some neat functions that are nicely written.
*
* @package WordPress
* @subpackage Administration
*/
//
// Category Checklists
//
/**
* Walker to output an unordered list of category checkbox <input> elements.
*
* @see Walker
* @see wp_... | zyblog | trunk/zyblog/wp-admin/includes/template.php | PHP | asf20 | 68,382 |
<?php
/**
* WordPress Administration Importer API.
*
* @package WordPress
* @subpackage Administration
*/
/**
* Retrieve list of importers.
*
* @since 2.0.0
*
* @return array
*/
function get_importers() {
global $wp_importers;
if ( is_array($wp_importers) )
uasort($wp_importers, create_function('$a, $b'... | zyblog | trunk/zyblog/wp-admin/includes/import.php | PHP | asf20 | 5,913 |
<?php
/**
* PemFTP - A Ftp implementation in pure PHP
*
* @package PemFTP
* @since 2.5
*
* @version 1.0
* @copyright Alexey Dotsenko
* @author Alexey Dotsenko
* @link http://www.phpclasses.org/browse/package/1743.html Site
* @license LGPL License http://www.opensource.org/licenses/lgpl-license.html
*/
/**
... | zyblog | trunk/zyblog/wp-admin/includes/class-ftp-sockets.php | PHP | asf20 | 8,544 |
<?php
/* Continent and city translations for timezone selection.
* This file is not included anywhere. It exists solely for use by xgettext.
*/
__('Africa', 'continents-cities');
__('Abidjan', 'continents-cities');
__('Accra', 'continents-cities');
__('Addis Ababa', 'continents-cities');
__('Algiers', 'continents-c... | zyblog | trunk/zyblog/wp-admin/includes/continents-cities.php | PHP | asf20 | 17,877 |
<?php
/**
* WordPress Widgets Administration API
*
* @package WordPress
* @subpackage Administration
*/
/**
* Display list of the available widgets.
*
* @since 2.5.0
*/
function wp_list_widgets() {
global $wp_registered_widgets, $sidebars_widgets, $wp_registered_widget_controls;
$sort = $wp_registered_widg... | zyblog | trunk/zyblog/wp-admin/includes/widgets.php | PHP | asf20 | 8,104 |
<?php
/**
* WordPress Bookmark Administration API
*
* @package WordPress
* @subpackage Administration
*/
/**
* Add a link to using values provided in $_POST.
*
* @since 2.0.0
*
* @return int|WP_Error Value 0 or WP_Error on failure. The link ID on success.
*/
function add_link() {
return edit_link();
}
/**... | zyblog | trunk/zyblog/wp-admin/includes/bookmark.php | PHP | asf20 | 7,752 |
<?php
/**
* WordPress Administration Screen API.
*
* @package WordPress
* @subpackage Administration
*/
/**
* Get the column headers for a screen
*
* @since 2.7.0
*
* @param string|WP_Screen $screen The screen you want the headers for
* @return array Containing the headers in the format id => UI String
*/
... | zyblog | trunk/zyblog/wp-admin/includes/screen.php | PHP | asf20 | 29,069 |
<?php
/**
* WordPress Dashboard Widget Administration Screen API
*
* @package WordPress
* @subpackage Administration
*/
/**
* Registers dashboard widgets.
*
* Handles POST data, sets up filters.
*
* @since 2.5.0
*/
function wp_dashboard_setup() {
global $wp_registered_widgets, $wp_registered_widget_control... | zyblog | trunk/zyblog/wp-admin/includes/dashboard.php | PHP | asf20 | 53,467 |
<?php
/**
* Base WordPress Filesystem.
*
* @package WordPress
* @subpackage Filesystem
*/
/**
* Base WordPress Filesystem class for which Filesystem implementations extend
*
* @since 2.5
*/
class WP_Filesystem_Base {
/**
* Whether to display debug data for the connection.
*
* @since 2.5
* @access pub... | zyblog | trunk/zyblog/wp-admin/includes/class-wp-filesystem-base.php | PHP | asf20 | 9,948 |
<?php
/**
* Build Administration Menu.
*
* @package WordPress
* @subpackage Administration
*/
if ( is_network_admin() )
do_action('_network_admin_menu');
elseif ( is_user_admin() )
do_action('_user_admin_menu');
else
do_action('_admin_menu');
// Create list of page plugin hook names.
foreach ($menu as $menu_... | zyblog | trunk/zyblog/wp-admin/includes/menu.php | PHP | asf20 | 6,307 |
<?php
/**
* File contains all the administration image manipulation functions.
*
* @package WordPress
* @subpackage Administration
*/
/**
* Crop an Image to a given size.
*
* @since 2.1.0
*
* @param string|int $src The source file or Attachment ID.
* @param int $src_x The start x position to crop from.
* @... | zyblog | trunk/zyblog/wp-admin/includes/image.php | PHP | asf20 | 13,990 |
<?php
/**
* WordPress Comment Administration API.
*
* @package WordPress
* @subpackage Administration
*/
/**
* {@internal Missing Short Description}}
*
* @since 2.0.0
* @uses $wpdb
*
* @param string $comment_author Author of the comment
* @param string $comment_date Date of the comment
* @return mixed Com... | zyblog | trunk/zyblog/wp-admin/includes/comment.php | PHP | asf20 | 4,500 |
<?php
/**
* WordPress user administration API.
*
* @package WordPress
* @subpackage Administration
*/
/**
* Creates a new user from the "Users" form using $_POST information.
*
* @since 2.0
*
* @return null|WP_Error|int Null when adding user, WP_Error or User ID integer when no parameters.
*/
function add_u... | zyblog | trunk/zyblog/wp-admin/includes/user.php | PHP | asf20 | 13,252 |
<?php
/**
* WordPress Administration Scheme API
*
* Here we keep the DB structure and option values.
*
* @package WordPress
* @subpackage Administration
*/
// Declare these as global in case schema.php is included from a function.
global $wpdb, $wp_queries, $charset_collate;
/**
* The database character colla... | zyblog | trunk/zyblog/wp-admin/includes/schema.php | PHP | asf20 | 32,082 |
<?php
/**
* Comment Management Screen
*
* @package WordPress
* @subpackage Administration
*/
/** Load WordPress Bootstrap */
require_once('./admin.php');
$parent_file = 'edit-comments.php';
$submenu_file = 'edit-comments.php';
wp_reset_vars( array('action') );
if ( isset( $_POST['deletecomment'] ) )
$action =... | zyblog | trunk/zyblog/wp-admin/comment.php | PHP | asf20 | 8,846 |
<?php
/**
* Plugins administration panel.
*
* @package WordPress
* @subpackage Administration
*/
/** WordPress Administration Bootstrap */
require_once('./admin.php');
if ( ! current_user_can('activate_plugins') )
wp_die( __( 'You do not have sufficient permissions to manage plugins for this site.' ) );
$wp_li... | zyblog | trunk/zyblog/wp-admin/plugins.php | PHP | asf20 | 19,111 |
<?php
/**
* Dashboard Administration Screen
*
* @internal This file should be parseable by PHP4.
*
* @package WordPress
* @subpackage Administration
*/
/** Load WordPress Bootstrap */
require_once('./admin.php');
/** Load WordPress dashboard API */
require_once(ABSPATH . 'wp-admin/includes/dashboard.php');
wp... | zyblog | trunk/zyblog/wp-admin/index.php | PHP | asf20 | 6,436 |
<?php
/**
* Bootstrap file for setting the ABSPATH constant
* and loading the wp-config.php file. The wp-config.php
* file will then load the wp-settings.php file, which
* will then set up the WordPress environment.
*
* If the wp-config.php file is not found then an error
* will be displayed asking the visitor t... | zyblog | trunk/zyblog/wp-load.php | PHP | asf20 | 2,408 |
<?php
/**
* Used to set up and fix common variables and include
* the WordPress procedural and class library.
*
* Allows for some configuration in wp-config.php (see default-constants.php)
*
* @internal This file must be parsable by PHP4.
*
* @package WordPress
*/
/**
* Stores the location of the WordPress d... | zyblog | trunk/zyblog/wp-settings.php | PHP | asf20 | 9,899 |
<?php
/**
* Outputs the OPML XML format for getting the links defined in the link
* administration. This can be used to export links from one blog over to
* another. Links aren't exported by the WordPress export, so this file handles
* that.
*
* This file is not added by default to WordPress theme pages when outp... | zyblog | trunk/zyblog/wp-links-opml.php | PHP | asf20 | 1,997 |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>WordPress › 说明</title>
<link rel="stylesheet" href="wp-admin/css/install... | zyblog | trunk/zyblog/readme.html | HTML | asf20 | 8,535 |
<?php
/**
* WordPress Cron Implementation for hosts, which do not offer CRON or for which
* the user has not set up a CRON job pointing to this file.
*
* The HTTP request to this file will not slow down the visitor who happens to
* visit when the cron job is needed to run.
*
* @package WordPress
*/
ignore_user... | zyblog | trunk/zyblog/wp-cron.php | PHP | asf20 | 2,718 |
<?php
/**
* Gets the email message from the user's mailbox to add as
* a WordPress post. Mailbox connection information must be
* configured under Settings > Writing
*
* @package WordPress
*/
/** Make sure that the WordPress bootstrap has run before continuing. */
require(dirname(__FILE__) . '/wp-load.php');
if... | zyblog | trunk/zyblog/wp-mail.php | PHP | asf20 | 7,723 |
<?php
/**
* WordPress 基础配置文件。
*
* 本文件包含以下配置选项:MySQL 设置、数据库表名前缀、密钥、
* WordPress 语言设定以及 ABSPATH。如需更多信息,请访问
* {@link http://codex.wordpress.org/zh-cn:%E7%BC%96%E8%BE%91_wp-config.php
* 编辑 wp-config.php} Codex 页面。MySQL 设置具体信息请咨询您的空间提供商。
*
* 这个文件用在于安装程序自动生成 wp-config.php 配置文件,
* 您可以手动复制这个文件,并重命名为“wp-conf... | zyblog | trunk/zyblog/wp-config.php | PHP | asf20 | 3,299 |
<?php
/**
* Front to the WordPress application. This file doesn't do anything, but loads
* wp-blog-header.php which does and tells WordPress to load the theme.
*
* @package WordPress
*/
/**
* Tells WordPress to load the WordPress theme and output it.
*
* @var bool
*/
define('WP_USE_THEMES', true);
/** Loads ... | zyblog | trunk/zyblog/index.php | PHP | asf20 | 395 |
package cn.nju.zyy.model.hello;
import org.springframework.stereotype.Component;
@Component
public class MessageStore {
private String message;
public MessageStore() {
setMessage("Hello Struts2");
}
public String getMessage() {
return message;
}
public void setMessage(String message) ... | zyy-struts-demo | trunk/src/cn/nju/zyy/model/hello/MessageStore.java | Java | asf20 | 454 |
package cn.nju.zyy.model.person;
import java.util.List;
import org.hibernate.HibernateException;
import org.hibernate.Session;
import org.hibernate.SessionFactory;
import org.hibernate.Transaction;
import org.springframework.beans.factory.annotation.Autowired;
public class PersonDAOImpl implements PersonDA... | zyy-struts-demo | trunk/src/cn/nju/zyy/model/person/PersonDAOImpl.java | Java | asf20 | 2,362 |
package cn.nju.zyy.model.person;
import java.util.Arrays;
import java.util.HashSet;
import java.util.Set;
import javax.persistence.CollectionTable;
import javax.persistence.Column;
import javax.persistence.ElementCollection;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import j... | zyy-struts-demo | trunk/src/cn/nju/zyy/model/person/Person.java | Java | asf20 | 3,848 |
package cn.nju.zyy.model.person;
import java.util.List;
public interface PersonDAO {
public long savePerson(Person person);
public List<Person> listPerson();
public Person getPerson(long id);
public void update(Person person);
public void delete(long id);
}
| zyy-struts-demo | trunk/src/cn/nju/zyy/model/person/PersonDAO.java | Java | asf20 | 281 |
package cn.nju.zyy.model.person;
public class State {
private String stateAbbr;
private String stateName;
public State(String stateAbbr, String stateName) {
this.stateAbbr = stateAbbr;
this.stateName = stateName;
}
public String getStateAbbr() {
return stateAbbr;
}
public void setState... | zyy-struts-demo | trunk/src/cn/nju/zyy/model/person/State.java | Java | asf20 | 591 |
package cn.nju.zyy.service.person;
import cn.nju.zyy.model.person.Person;
public interface EditService {
Person getPerson();
void savePerson(Person person);
}
| zyy-struts-demo | trunk/src/cn/nju/zyy/service/person/EditService.java | Java | asf20 | 176 |
package cn.nju.zyy.service.person;
import java.util.ArrayList;
import java.util.List;
import java.util.NoSuchElementException;
import java.util.SortedMap;
import java.util.TreeMap;
import org.apache.log4j.Logger;
import org.springframework.stereotype.Component;
import cn.nju.zyy.model.person.Person;
@C... | zyy-struts-demo | trunk/src/cn/nju/zyy/service/person/PersonService.java | Java | asf20 | 2,341 |
package cn.nju.zyy.service.person;
import org.springframework.stereotype.Component;
import cn.nju.zyy.model.person.Person;
@Component
public class EditServiceInMemory implements EditService {
private static Person person;
private static String[] carModels = { "Ford", "Nissan" };
static {
person =... | zyy-struts-demo | trunk/src/cn/nju/zyy/service/person/EditServiceInMemory.java | Java | asf20 | 1,212 |
package cn.nju.zyy.action.hello;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import cn.nju.zyy.model.hello.MessageStore;
import com.opensymphony.xwork2.ActionSupport;
@Component
public class HelloAction extends ActionSupport {
private... | zyy-struts-demo | trunk/src/cn/nju/zyy/action/hello/HelloAction.java | Java | asf20 | 1,353 |
package cn.nju.zyy.action.person;
import java.util.ArrayList;
import java.util.List;
import org.apache.struts2.convention.annotation.Action;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import cn.nju.zyy.model.person.Person;
import cn.nju.z... | zyy-struts-demo | trunk/src/cn/nju/zyy/action/person/EditAction.java | Java | asf20 | 1,914 |
package cn.nju.zyy.action.person;
import java.util.ArrayList;
import java.util.List;
import org.apache.struts2.convention.annotation.Action;
import org.springframework.stereotype.Component;
import cn.nju.zyy.model.person.Person;
import cn.nju.zyy.model.person.State;
import com.opensymphony.xwork2.ActionS... | zyy-struts-demo | trunk/src/cn/nju/zyy/action/person/RegisterAction.java | Java | asf20 | 2,219 |
package cn.nju.zyy.action.person;
import java.util.ArrayList;
import java.util.List;
import org.apache.struts2.convention.annotation.Action;
import org.apache.struts2.convention.annotation.Result;
import org.apache.struts2.convention.annotation.Results;
import org.springframework.beans.factory.annotation.Auto... | zyy-struts-demo | trunk/src/cn/nju/zyy/action/person/PersonAction.java | Java | asf20 | 2,894 |
<#include "/${parameters.templateDir}/xhtml/controlheader.ftl" />
<#include "/${parameters.templateDir}/MyTheme_simple/checkboxlist.ftl" />
<#include "/${parameters.templateDir}/xhtml/controlfooter.ftl" /><#nt/> | zyy-struts-demo | trunk/WebContent/template/MyTheme/checkboxlist.ftl | FreeMarker | asf20 | 213 |
<#assign itemCount = 0/>
<#if parameters.list??>
<@s.iterator value="parameters.list">
<#assign itemCount = itemCount + 1/>
<#if parameters.listKey??>
<#assign itemKey = stack.findValue(parameters.listKey)/>
<#else>
<#assign itemKey = stack.findValue('top')/>
</#if>... | zyy-struts-demo | trunk/WebContent/template/MyTheme_simple/checkboxlist.ftl | FreeMarker | asf20 | 1,670 |
<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UT... | zyy-struts-demo | trunk/WebContent/WEB-INF/content/index.jsp | Java Server Pages | asf20 | 1,753 |
<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UT... | zyy-struts-demo | trunk/WebContent/WEB-INF/content/hello/hello-success.jsp | Java Server Pages | asf20 | 685 |
<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme() + "://"
+ request.getServerName() + ":" + request.getServerPort()
+ path + "/";
%>
<!DOC... | zyy-struts-demo | trunk/WebContent/WEB-INF/content/person/person-list.jsp | Java Server Pages | asf20 | 1,518 |
<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme() + "://"
+ request.getServerName() + ":" + request.getServerPort()
+ path + "/";
%>
<!DOCTYP... | zyy-struts-demo | trunk/WebContent/WEB-INF/content/person/person-input.jsp | Java Server Pages | asf20 | 1,508 |
<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UT... | zyy-struts-demo | trunk/WebContent/WEB-INF/content/person/register-success.jsp | Java Server Pages | asf20 | 585 |
<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme() + "://"
+ request.getServerName() + ":" + request.getServerPort()
+ path + "/";
%>
<!DOCTYP... | zyy-struts-demo | trunk/WebContent/WEB-INF/content/person/edit-input.jsp | Java Server Pages | asf20 | 1,408 |
<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme() + "://"
+ request.getServerName() + ":" + request.getServerPort()
+ path + "/";
%>
<!DOCTYP... | zyy-struts-demo | trunk/WebContent/WEB-INF/content/person/register-input.jsp | Java Server Pages | asf20 | 1,413 |
<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UT... | zyy-struts-demo | trunk/WebContent/WEB-INF/content/person/edit-success.jsp | Java Server Pages | asf20 | 559 |
<?php
// On démarre la session
session_start();
if (isset($_POST['remember']) && empty($_COOKIE['pseudo']))
{
//si cookie vide
setcookie('pseudo', $_POST['login1'], time() + 3600*24*3, null, null, false, true);
}
else if(isset($_POST['remember']) && !empty($_COOKIE['pseudo']))
{
// si cookie non vide
setcookie('ps... | zzchatmb | trunk/testphpunit/checkFr.php | PHP | mit | 1,991 |
<?php
require ('checkFr.php');
if (isset($_POST['remember']) && empty($_COOKIE['pseudo']))
{
//si cookie vide
setcookie('pseudo', $_POST['login1'], time() + 3600*24*3, null, null, false, true);
}
else if(isset($_POST['remember']) && !empty($_COOKIE['pseudo']))
{
// si cookie non vide
setcookie('pseudo', '... | zzchatmb | trunk/testphpunit/chatFr.php | PHP | mit | 6,720 |
<?php
if (isset($_POST['remember']) && empty($_COOKIE['pseudo']))
{
//si cookie vide
setcookie('pseudo', $_POST['login1'], time() + 3600*24*3, null, null, false, true);
}
else if(isset($_POST['remember']) && !empty($_COOKIE['pseudo']))
{
// si cookie non vide
setcookie('pseudo', '', 0, null, null, false, ... | zzchatmb | trunk/testphpunit/signupFr.php | PHP | mit | 3,169 |
<?php
require_once("chatFr.php");
class test extends PHPUnit_Framework_TestCase
{
public function setUp()
{
echo "I run before each test\n";
}
public function testRegister()
{
$this->assertFileExists('/home/mbaye/Documents/dev web/mess_sessionFr.txt');
}
public function testfilewrite()
{... | zzchatmb | trunk/testphpunit/TestchatFr.php | PHP | mit | 1,080 |
<?php
require_once("checkFr.php");
class test extends PHPUnit_Framework_TestCase
{
public function setUp()
{
echo "I run before each test\n";
}
public function testRegister()
{
$this->assertFileExists('/home/mbaye/Documents/devweb/registerFr.txt');
}
public function testOnline()
{... | zzchatmb | trunk/testphpunit/TestcheckFr.php | PHP | mit | 1,158 |
<?php
require_once("signupFr.php");
class test extends PHPUnit_Framework_TestCase
{
public function setUp()
{
echo "I run before each test\n";
}
public function testmanage()
{
$login="mama";
$pwd="passe";
$this->assertFalse(manage($login, $pwd));
}
public function TearDown()
{
echo "I run a... | zzchatmb | trunk/testphpunit/TestsignFr.php | PHP | mit | 350 |
#titre {
color: #FF1493;
}
#words{
color: white;
}
#transparent{
opacity:0;
filter:alpha(opacity=0); /* For IE8 and earlier */
}
body{
background-image: url("image.gif");
}
/*
margin-top: 15px;
height: 200px;
border-radius: 5px;
background: url('images/sanfrancisco.jpg') no-repeat;
position: relative;
box-shado... | zzchatmb | trunk/anglais/styleEng.css | CSS | mit | 851 |
<?php
require ('checkEng.php');
if (isset($_POST['remember']) && empty($_COOKIE['pseudo']))
{
//si cookie vide
setcookie('pseudo', $_POST['login1'], time() + 3600*24*3, null, null, false, true);
}
else if(isset($_POST['remember']) && !empty($_COOKIE['pseudo']))
{
// si cookie non vide
setcookie('pseudo', ... | zzchatmb | trunk/anglais/chatEng.php | PHP | mit | 6,555 |
<?php
//démarrage de la session
session_start();
if (isset($_POST['remember']) && empty($_COOKIE['pseudo']))
{
//si cookie vide
setcookie('pseudo', $_POST['login1'], time() + 3600*24*3, null, null, false, true);
}
else if(isset($_POST['remember']) && !empty($_COOKIE['pseudo']))
{
// si cookie non vide
setcookie('p... | zzchatmb | trunk/anglais/authentifEng.php | PHP | mit | 3,241 |
<?php
// On démarre la session
session_start();
if (isset($_POST['remember']) && empty($_COOKIE['pseudo']))
{
//si cookie vide
setcookie('pseudo', $_POST['login1'], time() + 3600*24*3, null, null, false, true);
}
else if(isset($_POST['remember']) && !empty($_COOKIE['pseudo']))
{
// si cookie non vide
setcookie('ps... | zzchatmb | trunk/anglais/checkEng.php | PHP | mit | 1,977 |
<?php
if (isset($_POST['remember']) && empty($_COOKIE['pseudo']))
{
//si cookie vide
setcookie('pseudo', $_POST['login1'], time() + 3600*24*3, null, null, false, true);
}
else if(isset($_POST['remember']) && !empty($_COOKIE['pseudo']))
{
// si cookie non vide
setcookie('pseudo', '', 0, null, null, false, ... | zzchatmb | trunk/anglais/signupEng.php | PHP | mit | 3,129 |
<?php
session_start();
if (isset($_POST['remember']) && empty($_COOKIE['pseudo']))
{
//si cookie vide
setcookie('pseudo', $_POST['login1'], time() + 3600*24*3, null, null, false, true);
}
else if(isset($_POST['remember']) && !empty($_COOKIE['pseudo']))
{
// si cookie non vide
setcookie('pseudo', '', 0, nu... | zzchatmb | trunk/anglais/logoutEng.php | PHP | mit | 1,487 |
//Fonction qui colorie les cases
function underline(block, erreur)
{
if(erreur)
block.style.backgroundColor = "red";
else
block.style.backgroundColor = "green";
}
// Fonction vérifiant le login
function checklogin(block)
{
var space = /\s/g;
// Le login doit avoir une taille >5 et ne... | zzchatmb | trunk/anglais/signupEng.js | JavaScript | mit | 2,579 |
<?php
require ('checkEng.php');
if ($_SESSION['login1'] == NULL) {
header('Location: authentifEng.php');
}
else {
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<link ... | zzchatmb | trunk/anglais/profileEng.php | PHP | mit | 1,601 |
<html>
<head>
<title>chat-mb</title>
<link rel="stylesheet" type="text/css" href="./francais/styleFr.css" />
<center></br>
<h1 id="words"><FONT SIZE="9" >
<a><img src="./francais/image/chatzz2.png" border="0" /></a>
</FONT></h1>
</center>
</head>
<body>
</br></br></br></br></br></br... | zzchatmb | trunk/index.html | HTML | mit | 637 |
<?php
// On démarre la session
session_start();
if (isset($_POST['remember']) && empty($_COOKIE['pseudo']))
{
//si cookie vide
setcookie('pseudo', $_POST['login1'], time() + 3600*24*3, null, null, false, true);
}
else if(isset($_POST['remember']) && !empty($_COOKIE['pseudo']))
{
// si cookie non vide
setcookie('ps... | zzchatmb | trunk/francais/checkFr.php | PHP | mit | 1,989 |
<?php
session_start();
if (isset($_POST['remember']) && empty($_COOKIE['pseudo']))
{
//si cookie vide
setcookie('pseudo', $_POST['login1'], time() + 3600*24*3, null, null, false, true);
}
else if(isset($_POST['remember']) && !empty($_COOKIE['pseudo']))
{
// si cookie non vide
setcookie('pseudo', '', 0, nu... | zzchatmb | trunk/francais/logoutFr.php | PHP | mit | 1,477 |
<?php
require ('checkFr.php');
if ($_SESSION['login1'] == NULL) {
header('Location: authentifFr.php');
}
else {
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<link re... | zzchatmb | trunk/francais/profileFr.php | PHP | mit | 1,601 |