-
Notifications
You must be signed in to change notification settings - Fork 193
一些改进 #11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
一些改进 #11
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1 +1,11 @@ | ||
| .DS_Store | ||
| INSTALL.txt | ||
| LICENSE.txt | ||
| README.txt | ||
| demos/ | ||
| extras/documentation | ||
| .buildpath | ||
| .settings | ||
| .settings/ | ||
| .idea/ | ||
| /idea | ||
| .project |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,6 +1,6 @@ | ||
| <?php | ||
|
|
||
| if( !defined('IN') ) die('bad request'); | ||
| if (!defined('IN')) die('bad request'); | ||
|
|
||
|
|
||
| class coreController | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,5 +1,4 @@ | ||
| <?php | ||
|
|
||
| if( !defined('AROOT') ) die('NO AROOT!'); | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 不要做删掉一个空行这种无意义的事情。这种无意义的diff会扰乱我们的视线。 There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ...你们好严格
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
| if( !defined('DS') ) define( 'DS' , DIRECTORY_SEPARATOR ); | ||
|
|
||
|
|
@@ -9,9 +8,14 @@ | |
| define( 'ROOT' , dirname( __FILE__ ) . DS ); | ||
| define( 'CROOT' , ROOT . 'core' . DS ); | ||
|
|
||
| // define | ||
| // define | ||
| error_reporting(E_ALL^E_NOTICE); | ||
| ini_set( 'display_errors' , true ); | ||
| if (defined('DEBUG') && DEBUG) { | ||
| ini_set( 'display_errors' , 1 ); | ||
| } | ||
| else { | ||
| ini_set( 'display_errors' , 0 ); | ||
| } | ||
|
|
||
| include_once( CROOT . 'lib' . DS . 'core.function.php' ); | ||
| @include_once( AROOT . 'lib' . DS . 'app.function.php' ); | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -4,7 +4,9 @@ | |
| /**** load lp framework ***/ | ||
| define( 'DS' , DIRECTORY_SEPARATOR ); | ||
| define( 'AROOT' , dirname( __FILE__ ) . DS ); | ||
| define('DEBUG', true); | ||
|
|
||
| //ini_set('include_path', dirname( __FILE__ ) . DS .'_lp' ); | ||
| include_once( '_lp'.DS .'lp.init.php' ); | ||
| //include_once( '_lp'.DS .'lp.init.php' ); | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 如果你想更改代码,就改。不要注释掉原有的代码。如果你的理由是:为了让别人看清楚之前的代码。那么就更不需要注释,直接删除即可。因为git就是追溯代码的工具。 |
||
| include AROOT . '_lp'.DS .'lp.init.php'; | ||
| /**** lp framework init finished ***/ | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
让原本的代码保持原本的样子,尤其是代码风格。