1234567891011121314151617181920212223242526272829303132333435 |
- <?php
- session_start();
- if (!$_SESSION['pass'] && !$_SESSION['login'])
- return;
- use Doctrine\Common\Collections\ArrayCollection;
- use Doctrine\Common\Collections\Collection;
- use Doctrine\Common\Collections\Criteria;
- require_once "doctrine/bootstrap.php";
- require_once "functions.php";
- //require_once "server.php";
- require_once "auth.php";
- require_once 'CheckPoint.php';
- require_once 'CheckPointType.php';
- use \CheckPoints\CheckPoint;
- 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));
- /**
- * @var $proj Project
- *
- */
- $id = $_REQUEST['id'];
- $proj = Project::Find($id);
- $proj->checkPointsWrite();
|