Permalink
Browse files

full source init from svn

  • Loading branch information...
iwater committed Apr 22, 2009
1 parent 40168fe commit d6a60020bdc885b5be66ed2fefd8b9641aa54354
Showing with 9,573 additions and 0 deletions.
  1. +58 −0 Application.php
  2. +41 −0 ApplicationCache.php
  3. +24 −0 Class.php
  4. +8 −0 Compatible/BasePage.php
  5. +5 −0 Compatible/BaseTableObject.php
  6. +3 −0 Compatible/Chinese.php
  7. +1,074 −0 Compatible/CordaEmbedder.php
  8. +3 −0 Compatible/HessianClient.php
  9. +3 −0 Compatible/HessianService.php
  10. +3 −0 Compatible/Pagination.php
  11. +3 −0 Compatible/Smarty.php
  12. +3 −0 Compatible/SqlCommand.php
  13. +3 −0 Compatible/htmlMimeMail5.php
  14. +83 −0 Controller.php
  15. +35 −0 Controller/Ajax.php
  16. +56 −0 Controller/Brower.php
  17. +37 −0 Controller/Cli.php
  18. +33 −0 Controller/Hessian.php
  19. +86 −0 Controller/JSON.php
  20. +29 −0 Controller/PHP.php
  21. +50 −0 Data/DataSet/Schema/Database.php
  22. +44 −0 Data/DataSet/Schema/XML.php
  23. +124 −0 DataObject.php
  24. +202 −0 DistributedFileSystem.php
  25. +58 −0 Exception.php
  26. +83 −0 Filter.php
  27. +29 −0 Filter/Cache.php
  28. +20 −0 Filter/OB.php
  29. +23 −0 Filter/Session.php
  30. +36 −0 Filter/StorageCookie.php
  31. +19 −0 Filter/StorageSession.php
  32. +17 −0 Filter/User.php
  33. +213 −0 Framework/Config.php
  34. +25 −0 Framework/Context.php
  35. +47 −0 Framework/Registry.php
  36. +16 −0 Framework/Storage.php
  37. +1 −0 Framework/config.xml
  38. +13 −0 Interface/Runnable.php
  39. +13 −0 Interface/User.php
  40. +96 −0 KDO/MsSqlCommand.php
  41. +105 −0 KDO/MySqlCommand.php
  42. +116 −0 KDO/PostgreSqlCommand.php
  43. +228 −0 KDO/SqlCommand.php
  44. +64 −0 KDO/SqlCommandIterator.php
  45. +95 −0 KISS.php
  46. +12 −0 NULLObject.php
  47. +383 −0 ORM/BaseTableAdmin.php
  48. +594 −0 ORM/BaseTableObject.php
  49. +24 −0 ORM/BaseTableObjectProxy.php
  50. +378 −0 ORM/BaseViewObject.php
  51. +60 −0 Object.php
  52. +160 −0 PDOSqlCommand.php
  53. +99 −0 PDO_MySqlCommand.php
  54. +143 −0 Page.php
  55. +90 −0 Parse.php
  56. +32 −0 Proxy.php
  57. +24 −0 ProxyFactory.php
  58. +88 −0 SQLObject.php
  59. +161 −0 Tools/Builder.php
  60. +4 −0 Tools/Builder/template/base/tpl.BaseTableAdmin.htm
  61. +1 −0 Tools/Builder/template/base/tpl.base_delete.htm
  62. +29 −0 Tools/Builder/template/base/tpl.base_insert.htm
  63. +27 −0 Tools/Builder/template/base/tpl.base_list.htm
  64. +29 −0 Tools/Builder/template/base/tpl.base_search.htm
  65. +22 −0 Tools/Builder/template/base/tpl.base_select.htm
  66. +26 −0 Tools/Builder/template/base/tpl.base_update.htm
  67. +13 −0 Tools/Builder/template/base/tpl.class.manager.htm
  68. +42 −0 Tools/Builder/template/base/tpl.class.mapping.htm
  69. +42 −0 Tools/Builder/template/base/tpl.class.view.mapping.htm
  70. +1 −0 Tools/Builder/template/base/tpl.input.date.htm
  71. +1 −0 Tools/Builder/template/base/tpl.input.file.htm
  72. +2 −0 Tools/Builder/template/base/tpl.input.file.insert.htm1
  73. +1 −0 Tools/Builder/template/base/tpl.input.password.htm
  74. +4 −0 Tools/Builder/template/base/tpl.input.select.htm
  75. +1 −0 Tools/Builder/template/base/tpl.input.text.htm
  76. +1 −0 Tools/Builder/template/base/tpl.input.textarea.htm
  77. +51 −0 Tools/Builder/template/tpl.config.htm
  78. +2 −0 Tools/Builder/template/tpl.footer.htm
  79. +15 −0 Tools/Builder/template/tpl.guide.htm
  80. +12 −0 Tools/Builder/template/tpl.header.htm
  81. +51 −0 Tools/Builder/template/tpl.list.htm
  82. +7 −0 Tools/Builder/template/tpl.menu.htm
  83. +28 −0 Tools/Builder/template/tpl.show.htm
  84. +52 −0 Tools/Clean.php
  85. +20 −0 Tools/Compiler.php
  86. +24 −0 Tools/Debug.php
  87. +151 −0 Tools/JS.php
  88. +134 −0 Tools/SVN.php
  89. +7 −0 Tools/Status.php
  90. +784 −0 Tools/WebSvn.php
  91. +811 −0 Tools/WebSvn.php.bak
  92. +5 −0 Tools/config.ini-dist
  93. +39 −0 Util/Cache.php
  94. +204 −0 Util/Chart.php
  95. +67 −0 Util/DBSession.php
  96. +277 −0 Util/Debug.php
  97. +181 −0 Util/Excel.php
  98. +157 −0 Util/File.php
  99. +30 −0 Util/FileCache.php
  100. +42 −0 Util/MEMSession.php
  101. +60 −0 Util/Pagination.php
  102. +62 −0 Util/Permission.php
  103. +57 −0 Util/String.php
  104. +422 −0 Util/Util.php
View
@@ -0,0 +1,58 @@
+<?php
+/**
+ * 定义全局应用容器
+ *
+ * PHP versions 5
+ *
+ * @category KISS
+ * @package Application
+ * @author iwater <iwater@gmail.com>
+ * @license http://www.opensource.org/licenses/bsd-license.php BSD
+ * @link http://kissphp.cn
+ *
+ */
+
+/**
+ * 定义全局应用容器
+ *
+ * @category KISS
+ * @package Application
+ * @author iwater <iwater@gmail.com>
+ * @license http://www.opensource.org/licenses/bsd-license.php BSD
+ * @link http://kissphp.cn
+ */
+class KISS_Application
+{
+ const ON = 1;
+ const OFF = 0;
+
+ public static $session_status = self::OFF;
+ public static $charset = 'gbk';
+ public static $mode = 'online';
+
+ /**
+ * session 初始化
+ *
+ * @return void
+ */
+ public static function sessionStart()
+ {
+ if (self::OFF == self::$session_status) {
+ session_name(self::getUniqueAppName());
+ session_start();
+ self::$session_status = self::ON;
+ }
+ }
+
+ /**
+ * 取得当前应用的唯一标示串
+ *
+ * @return string
+ */
+ public static function getUniqueAppName()
+ {
+ $root_path = KISS_Framework_Config::getSystemPath('root');
+ return 'A'.strtoupper(substr(md5($root_path), 0, 7));
+ }
+}
+?>
View
@@ -0,0 +1,41 @@
+<?php
+/**
+ * $Id: Runnable.php 10 2007-03-09 16:42:11Z matao $
+ * @package KISS
+ */
+/**
+ * 可以直接运行的程序必须实现此接口
+ * @package KISS
+ */
+class KISS_Application {
+ const ON = 1;
+ const OFF = 0;
+
+ public static $session_status = self::OFF;
+
+ public static function session_start() {
+ if (self::OFF == self::$session_status) {
+ session_name(self::getUniqueAppName());
+ session_start ();
+ self::$session_status = self::ON;
+ }
+ }
+
+ public static function getUniqueAppName() {
+ if (xcache_isset('app_name')) {
+ return xcache_get('app_name');
+ }
+ $app_name = 'A'.strtoupper(substr(md5(KISS_Framework_Config::getSystemPath('root')),0,7));
+ if (!xcache_set('app_name', $app_name)) {
+
+ }
+ return $app_name;
+ }
+
+ public static function getSystemPath($pPathName) {
+ if (!xcache_isset('sp_'.$pPathName)) {
+ xcache_set("count", load_count_from_mysql());
+ }
+ }
+}
+?>
View
@@ -0,0 +1,24 @@
+<?php
+class KISS_Class {
+ public static function getClassStaticMember($pClass, $pMember) {
+ $return = '';
+ $script = "if(isset({$pClass}::\${$pMember})){\$return = {$pClass}::\${$pMember};}";
+ eval($script);
+ return $return;
+ }
+
+ public static function getClassConstant($pClass, $pMember) {
+ $u_name = APP_NAME.'cc:'.$pClass.':'.$pMember;
+ if (xcache_isset($u_name)) {
+ return xcache_get($u_name);
+ }
+ $const = "{$pClass}::{$pMember}";
+ if (defined($const)) {
+ xcache_set($u_name, constant($const));
+ return constant($const);
+ }
+ xcache_set($u_name, '');
+ return '';
+ }
+}
+?>
View
@@ -0,0 +1,8 @@
+<?php
+class BasePage extends KISS_Page {
+ public function __construct(){
+ trigger_error('BasePage ÒѾ­¸üÃûΪ KISS_Page');
+ parent::__construct();
+ }
+}
+?>
@@ -0,0 +1,5 @@
+<?php
+class BaseTableObject extends KISS_ORM_BaseTableObject {
+
+}
+?>
View
@@ -0,0 +1,3 @@
+<?php
+require_once("Chinese/class.Chinese.php");
+?>
Oops, something went wrong.

0 comments on commit d6a6002

Please sign in to comment.