Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 11 additions & 1 deletion .gitignore
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
2 changes: 1 addition & 1 deletion _lp/core/controller/core.class.php
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');

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

让原本的代码保持原本的样子,尤其是代码风格。



class coreController
Expand Down
10 changes: 7 additions & 3 deletions _lp/lp.init.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
<?php

if( !defined('AROOT') ) die('NO AROOT!');

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

不要做删掉一个空行这种无意义的事情。这种无意义的diff会扰乱我们的视线。

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

...你们好严格

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

我并没有merge的权力。实际上,你的代码要通过 @easychen 的认可才能合并。

而且,我和 @easychen 并不认识。

if( !defined('DS') ) define( 'DS' , DIRECTORY_SEPARATOR );

Expand All @@ -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' );
Expand Down
4 changes: 3 additions & 1 deletion index.php
Original file line number Diff line number Diff line change
Expand Up @@ -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' );

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

如果你想更改代码,就改。不要注释掉原有的代码。如果你的理由是:为了让别人看清楚之前的代码。那么就更不需要注释,直接删除即可。因为git就是追溯代码的工具。

include AROOT . '_lp'.DS .'lp.init.php';
/**** lp framework init finished ***/