1234567891011121314151617181920212223 |
- <?php
- require_once "doctrine/bootstrap.php";
- //require_once 'api/vendor/autoload.php';
- //require_once 'api/vendor/yiisoft/yii2/Yii.php';
- //$config = require_once 'api/config/web.php';
- //
- //(new yii\web\Application($config));
- if (!isset($db_hostname))
- {
- require_once 'auth.php';
- }
- require_once 'functions.php';
- //$str = "select * from accounts where last_push_message_sent IS NOT NULL and (last_push_message_sent - last_seen_mobile) > 30 and (NOW() - last_seen_mobile) < 3600";
- $str = "select * from accounts where last_push_message_sent IS NOT NULL and (last_push_message_sent - last_seen_mobile) > 30 and (NOW() - last_seen_mobile) < 600";
- $q = mysqli_query($link, $str);
- while($acc = mysqli_fetch_array($q))
- {
- SendPush($acc['id'], "Check your SMoPP application!", 666);
- }
|