This commit is contained in:
Daniil Gentili 2017-08-18 13:51:27 +02:00
parent 1ff09e959c
commit 5e5e2e2d7f
3 changed files with 7 additions and 3 deletions

View File

@ -103,8 +103,10 @@ mkdir MadelineProtoBot
cd MadelineProtoBot
git init .
git submodule add https://github.com/danog/MadelineProto
cp -a MadelineProto/*php MadelineProto/tests MadelineProto/bots MadelineProto/.env* .
cd MadelineProto
composer update
cp .env.example .env
cp -a *php tests bots .env* ..
```
Now open `.env` and edit its values as needed.

View File

@ -103,8 +103,10 @@ mkdir MadelineProtoBot
cd MadelineProtoBot
git init .
git submodule add https://github.com/danog/MadelineProto
cp -a MadelineProto/*php MadelineProto/tests MadelineProto/bots MadelineProto/.env* .
cd MadelineProto
composer update
cp .env.example .env
cp -a *php tests bots .env* ..
```
Now open `.env` and edit its values as needed.

View File

@ -10,7 +10,7 @@ See the GNU Affero General Public License for more details.
You should have received a copy of the GNU General Public License along with MadelineProto.
If not, see <http://www.gnu.org/licenses/>.
*/
set_include_path(get_include_path().':'.realpath(dirname(__FILE__).'/../').realpath(dirname(__FILE__).'/../MadelineProto/'));
set_include_path(get_include_path().':'.realpath(dirname(__FILE__).'/../').':'.realpath(dirname(__FILE__).'/../MadelineProto/'));
chdir(dirname(__FILE__).'/../');
require_once 'vendor/autoload.php';
if (file_exists('web_data.php')) {