Skip to content
This repository has been archived by the owner on Aug 30, 2020. It is now read-only.

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
rossaddison authored Apr 3, 2020
1 parent 271d234 commit d020447
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 0 deletions.
46 changes: 46 additions & 0 deletions no_subscription_index.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
<?php

//if (!isset($_SERVER['HTTPS']) || $_SERVER['HTTPS'] !== 'on') {
//if(!headers_sent()) {
//header("Status: 301 Moved Permanently");
// header(sprintf(
//'Location: https://%s%s',
//$_SERVER['HTTP_HOST'],
//$_SERVER['REQUEST_URI']
//));
//exit();
//}
//}


defined('YII_DEBUG') or define('YII_DEBUG', true);
defined('YII_ENV') or define('YII_ENV', 'dev');
defined('YII_CONSOLE') or define('YII_CONSOLE', false);

//vendors from composer.json
require (__DIR__ . '/vendor/autoload.php');

//yii framework
require(__DIR__ . '/vendor/yiisoft/yii2/Yii.php');

//aliases
require(__DIR__ . '/common/config/bootstrap.php');

//empty
require(__DIR__ . '/frontend/config/bootstrap.php');

$config = yii\helpers\ArrayHelper::merge(
//filecache and dbmanager
require(__DIR__ . '/common/config/main.php'),

//db component,
require(__DIR__ . '/common/config/main-local.php'),

//etc... UrlManager swiftmailer
require(__DIR__ . '/frontend/config/main.php'),

//cookie validation key
require(__DIR__ . '/frontend/config/main-local.php')
);

(new yii\web\Application($config))->run();
1 change: 1 addition & 0 deletions up8.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
composer update

0 comments on commit d020447

Please sign in to comment.