fixes
This commit is contained in:
parent
1ff09e959c
commit
5e5e2e2d7f
@ -103,8 +103,10 @@ mkdir MadelineProtoBot
|
|||||||
cd MadelineProtoBot
|
cd MadelineProtoBot
|
||||||
git init .
|
git init .
|
||||||
git submodule add https://github.com/danog/MadelineProto
|
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 .env.example .env
|
||||||
|
cp -a *php tests bots .env* ..
|
||||||
```
|
```
|
||||||
|
|
||||||
Now open `.env` and edit its values as needed.
|
Now open `.env` and edit its values as needed.
|
||||||
|
@ -103,8 +103,10 @@ mkdir MadelineProtoBot
|
|||||||
cd MadelineProtoBot
|
cd MadelineProtoBot
|
||||||
git init .
|
git init .
|
||||||
git submodule add https://github.com/danog/MadelineProto
|
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 .env.example .env
|
||||||
|
cp -a *php tests bots .env* ..
|
||||||
```
|
```
|
||||||
|
|
||||||
Now open `.env` and edit its values as needed.
|
Now open `.env` and edit its values as needed.
|
||||||
|
@ -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.
|
You should have received a copy of the GNU General Public License along with MadelineProto.
|
||||||
If not, see <http://www.gnu.org/licenses/>.
|
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__).'/../');
|
chdir(dirname(__FILE__).'/../');
|
||||||
require_once 'vendor/autoload.php';
|
require_once 'vendor/autoload.php';
|
||||||
if (file_exists('web_data.php')) {
|
if (file_exists('web_data.php')) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user