function _save($id, $url, $content)
{
    $title = _getTitle($content);
    $keyword = _getKey($content);
    #没想到好的存内容的方法
    $str = <<<Eof
      INSERT INTO WEBPAGE (ID,URL,TITLE,KEYWORDS)
      VALUES ({$id}, "{$url}", "{$title}", "{$keyword}" );
Eof;
    global $db;
    $db->exec($str);
}
Example #2
0
 * Override file repository root
 */
$XF_PATH = '/PMaster/projects/xbox-app/test/';
/**
 * XF_VISIBLE_FILE_EXTENSIONS is a comma separated list of visible file extensions,ie: css,html,png
 * If you want to show 'hidden' folders or files, you need to add '.*'
 *
 */
//$XF_VISIBLE_FILE_EXTENSIONS = '*';
/**
 * XF_VISIBLE_FILE_EXTENSIONS is a comma separated list of hidden file extensions,ie: php,sh
 */
//$XF_HIDDEN_FILE_EXTENSIONS = '.svn,.git,.idea';
/****************************************************************************/
// prohibited plugins, comma separated : 'XShell,XImageEdit,XZoho,XHTMLEditor,XSandbox,XSVN,XLESS'
$XF_PROHIBITED_PLUGINS = _getKey('disabledPlugins', 'XShell,XImageEdit,XZoho,XHTMLEditor,XSandbox,XSVN,XLESS');
//jQuery theme, append the url by &theme=dot-luv ! You can choose from :
// black-tie, blitzer, cupertino, dark-hive, dot-luv,eggplant,excite-bike,flick,hot-sneaks,humanity,le-frog,mint-choc,overcast,pepper-grinder,redmond,smoothness,south-street,start,sunny,swanky-purse,trontastic,ui-darkness,ui-lightness,vader
// see http://jqueryui.com/themeroller/ for more!
//$XF_THEME = _getKey('theme','blitzer');
//
$XAPP_COMPONENTS = array('xblox' => false, 'xideve' => false);
//
//  Define extra variables for client rendering. This array will override existing variables (see xapp/commander/App near '$XAPP_RELATIVE_VARIABLES')
//  The resource variables go into the the client side resource manager 'xide.manager.ResourceManager'
//
/*
$XF_RESOURCE_VARIABLES                  = array(
	//
	//  This is the user name automatically filled into the login form(client/xfile/xbox/login.html) , you may set this to ''
	//  Notice: this isn't setting the user name in the user database (xapp/commander/Users.php)
Example #3
0
$XF_PATH = '/PMaster/projects/xbox-app/test/';
/**
 * XF_VISIBLE_FILE_EXTENSIONS is a comma separated list of visible file extensions,ie: css,html,png
 * If you want to show 'hidden' folders or files, you need to add '.*'
 *
 */
//$XF_VISIBLE_FILE_EXTENSIONS = '*';
/**
 * XF_VISIBLE_FILE_EXTENSIONS is a comma separated list of hidden file extensions,ie: php,sh
 */
//$XF_HIDDEN_FILE_EXTENSIONS = '.svn,.git,.idea';
/****************************************************************************/
// prohibited plugins, comma separated : 'XShell,XImageEdit,XZoho,XHTMLEditor,XSandbox,XSVN,XLESS'
$XF_PROHIBITED_PLUGINS = _getKey('disabledPlugins', 'XShell,XZoho,XHTMLEditor,XSVN,XLESS');
//jQuery theme, append the url by &theme=dot-luv ! You can choose from :
// black-tie, blitzer, cupertino, dark-hive, dot-luv,eggplant,excite-bike,flick,hot-sneaks,humanity,le-frog,mint-choc,overcast,pepper-grinder,redmond,smoothness,south-street,start,sunny,swanky-purse,trontastic,ui-darkness,ui-lightness,vader
// see http://jqueryui.com/themeroller/ for more!
//$XF_THEME = _getKey('theme','blitzer');
//
$XAPP_COMPONENTS = array('xblox' => true, 'xnode' => false);
//
//  Define extra variables for client rendering. This array will override existing variables (see xapp/commander/App near '$XAPP_RELATIVE_VARIABLES')
//  The resource variables go into the the client side resource manager 'xide.manager.ResourceManager'
//
$XF_RESOURCE_VARIABLES = array('FILLED_USER_NAME' => 'admin', 'FILLED_PASSWORD' => 'asdasd', 'COMPONENTS' => json_encode($XAPP_COMPONENTS), 'GLOBAL_FONT_SIZE' => '0.88em', 'ACTION_BUTTON_SIZE' => '1.3em', 'PACKAGE_CONFIG' => 'run-release-debug');
/**
 * Compose XFile configuration
 */
$XF_CONFIG = array("DEFAULT_STORE_OPTIONS" => array("fields" => 1663, "includeList" => $XF_VISIBLE_FILE_EXTENSIONS, "excludeList" => $XF_HIDDEN_FILE_EXTENSIONS), "LAYOUT_PRESET" => XF_LAYOUT_PRESET_SINGLE, "PANEL_OPTIONS" => array("ALLOW_NEW_TABS" => true, "ALLOW_MULTI_TAB" => false, "ALLOW_INFO_VIEW" => true, "ALLOW_LOG_VIEW" => true, "ALLOW_BREADCRUMBS" => true, "ALLOW_CONTEXT_MENU" => true, "ALLOW_LAYOUT_SELECTOR" => true, "ALLOW_SOURCE_SELECTOR" => true, "ALLOW_COLUMN_RESIZE" => true, "ALLOW_COLUMN_REORDER" => true, "ALLOW_COLUMN_HIDE" => true, "ALLOW_MAIN_MENU" => true, "ALLOW_ACTION_TOOLBAR" => true), "ALLOWED_ACTIONS" => array(0, 1, 1, 1, 1, 1, 0, 1, 1, 0, 1, 1, 1, 0, 0, 0, 1, 1, 0, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1), "FILE_PANEL_OPTIONS_LEFT" => array("LAYOUT" => XF_PANEL_MODE_LIST, "AUTO_OPEN" => "true"), "FILE_PANEL_OPTIONS_MAIN" => array("LAYOUT" => XF_PANEL_MODE_LIST, "AUTO_OPEN" => "true"), "FILE_PANEL_OPTIONS_RIGHT" => array("LAYOUT" => XF_PANEL_MODE_LIST, "AUTO_OPEN" => "true"));
$XF_THEME = _getKey('theme', 'minimal');
Example #4
0
//
// $XAPP_COMPONENTS = array(
//	'XBLOX' => true,
//	'XIDE_VE' => _getKey('xide',false)
//);
/**
 * Define extra variables for client rendering. This array will override existing variables (see xapp/commander/App near '$XAPP_RELATIVE_VARIABLES')
 * The resource variables go into the the client side resource manager 'xide.manager.ResourceManager'
 */
/*
$XF_RESOURCE_VARIABLES                  = array(

	'FILLED_USER_NAME'          => 'admin',

	'FILLED_PASSWORD'           => 'asdasd',

	'COMPONENTS'                => json_encode($XAPP_COMPONENTS),

	'GLOBAL_FONT_SIZE'          => XApp_Service_Entry_Utils::isMobile() ? '1.1em' : '0.88em',

	'ACTION_BUTTON_SIZE'        => XApp_Service_Entry_Utils::isMobile() ? '1.5em' : '1.3em'

	'PACKAGE_CONFIG'            => 'run-release-debug'

);
*/
/**
 * Compose XFile configuration
 */
$XF_PROHIBITED_PLUGINS = _getKey('disabledPlugins', 'XSVN,XLESS,XHTMLEditor,XZoho');
$XF_CONFIG = array("DEFAULT_STORE_OPTIONS" => array("fields" => 1663, "includeList" => $XF_VISIBLE_FILE_EXTENSIONS, "excludeList" => $XF_HIDDEN_FILE_EXTENSIONS), "LAYOUT_PRESET" => XF_LAYOUT_PRESET_SINGLE, "PANEL_OPTIONS" => array("ALLOW_NEW_TABS" => true, "ALLOW_MULTI_TAB" => false, "ALLOW_INFO_VIEW" => true, "ALLOW_LOG_VIEW" => true, "ALLOW_BREADCRUMBS" => true, "ALLOW_CONTEXT_MENU" => true, "ALLOW_LAYOUT_SELECTOR" => true, "ALLOW_SOURCE_SELECTOR" => false, "ALLOW_COLUMN_RESIZE" => true, "ALLOW_COLUMN_REORDER" => true, "ALLOW_COLUMN_HIDE" => true, "ALLOW_MAIN_MENU" => true, "ALLOW_ACTION_TOOLBAR" => true), "ALLOWED_ACTIONS" => array(0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1), "FILE_PANEL_OPTIONS_LEFT" => array("LAYOUT" => XF_PANEL_MODE_LIST, "AUTO_OPEN" => "true"), "FILE_PANEL_OPTIONS_MAIN" => array("LAYOUT" => XF_PANEL_MODE_LIST, "AUTO_OPEN" => "true"), "FILE_PANEL_OPTIONS_RIGHT" => array("LAYOUT" => XF_PANEL_MODE_LIST, "AUTO_OPEN" => "true"));