diff --git a/protected/modules/yiigii/YiiGiiModule.php b/protected/modules/yiigii/YiiGiiModule.php deleted file mode 100644 index f33bdebea0..0000000000 --- a/protected/modules/yiigii/YiiGiiModule.php +++ /dev/null @@ -1,28 +0,0 @@ -setImport(array( - 'yiigii.forms.*', - 'yiigii.controllers.*', - 'yiigii.*', - )); - } - - public static function onWebApplicationInit($event) { - - Yii::app()->setModules(array( - 'gii' => array( - 'class' => 'system.gii.GiiModule', - 'password' => HSetting::Get('password', 'yiigii'), - // If removed, Gii defaults to localhost only. Edit carefully to taste. - 'ipFilters' => explode(",", str_replace(" ", "",HSetting::Get('ipFilters', 'yiigii'))), - 'generatorPaths' => array( - 'bootstrap.gii', - ), - ), - )); - } - -} diff --git a/protected/modules/yiigii/autostart.php b/protected/modules/yiigii/autostart.php deleted file mode 100644 index b82a83574d..0000000000 --- a/protected/modules/yiigii/autostart.php +++ /dev/null @@ -1,17 +0,0 @@ -moduleManager->register(array( - 'id' => 'yiigii', - 'title' => Yii::t('YiiGiiModule.base', 'Yii - Gii Module'), - 'description' => Yii::t('YiiGiiModule.base', 'Includes Yiis Automatic Code Generator (Gii)'), - 'class' => 'application.modules.yiigii.YiiGiiModule', - 'import' => array( - 'application.modules.yiigii.*', - ), - 'configRoute' => '//yiigii/config/index', - // Events to Catch - 'events' => array( - array('class' => 'WebApplication', 'event' => 'onInit', 'callback' => array('YiiGiiModule', 'onWebApplicationInit')), - ), -)); -?> diff --git a/protected/modules/yiigii/controllers/ConfigController.php b/protected/modules/yiigii/controllers/ConfigController.php deleted file mode 100644 index 9c4f507627..0000000000 --- a/protected/modules/yiigii/controllers/ConfigController.php +++ /dev/null @@ -1,69 +0,0 @@ - 'Yii::app()->user->isAdmin()', - ), - array('deny', // deny all users - 'users' => array('*'), - ), - ); - } - - /** - * Configuration Action for Super Admins - */ - public function actionIndex() { - - Yii::import('yiigii.forms.*'); - - $form = new ConfigureForm; - - // uncomment the following code to enable ajax-based validation - if (isset($_POST['ajax']) && $_POST['ajax'] === 'configure-form') { - echo CActiveForm::validate($form); - Yii::app()->end(); - } - - if (isset($_POST['ConfigureForm'])) { - $_POST['ConfigureForm'] = Yii::app()->input->stripClean($_POST['ConfigureForm']); - $form->attributes = $_POST['ConfigureForm']; - - if ($form->validate()) { - - $form->password = HSetting::Set('password', $form->password, 'yiigii'); - $form->ipFilters = HSetting::Set('ipFilters', $form->ipFilters, 'yiigii'); - - $this->redirect(Yii::app()->createUrl('yiigii/config/index')); - } - } else { - - $form->password = HSetting::Get('password', 'yiigii'); - $form->ipFilters = HSetting::Get('ipFilters', 'yiigii'); - } - - $this->render('index', array('model' => $form)); - } - -} - -?> diff --git a/protected/modules/yiigii/forms/ConfigureForm.php b/protected/modules/yiigii/forms/ConfigureForm.php deleted file mode 100644 index 1fc9798e26..0000000000 --- a/protected/modules/yiigii/forms/ConfigureForm.php +++ /dev/null @@ -1,30 +0,0 @@ - Yii::t('YiiGiiModule.base', 'Gii Password'), - 'ipFilters' => Yii::t('YiiGiiModule.base', 'Limit IPs (Comma Separated)'), - ); - } - -} diff --git a/protected/modules/yiigii/messages/de/base.php b/protected/modules/yiigii/messages/de/base.php deleted file mode 100644 index 95e0414cd9..0000000000 --- a/protected/modules/yiigii/messages/de/base.php +++ /dev/null @@ -1,26 +0,0 @@ - '', - 'Gii Password' => '', - 'If removed, Gii defaults to localhost only. Edit carefully to taste.' => '', - 'Includes Yiis Automatic Code Generator (Gii)' => '', - 'Limit IPs (Comma Separated)' => '', - 'Yii - Gii Module' => '', -); diff --git a/protected/modules/yiigii/messages/fr/base.php b/protected/modules/yiigii/messages/fr/base.php deleted file mode 100644 index 95e0414cd9..0000000000 --- a/protected/modules/yiigii/messages/fr/base.php +++ /dev/null @@ -1,26 +0,0 @@ - '', - 'Gii Password' => '', - 'If removed, Gii defaults to localhost only. Edit carefully to taste.' => '', - 'Includes Yiis Automatic Code Generator (Gii)' => '', - 'Limit IPs (Comma Separated)' => '', - 'Yii - Gii Module' => '', -); diff --git a/protected/modules/yiigii/module.json b/protected/modules/yiigii/module.json deleted file mode 100644 index 69c2fb2944..0000000000 --- a/protected/modules/yiigii/module.json +++ /dev/null @@ -1,11 +0,0 @@ -l -{ "id": "yiigii", - "name": "Yii Gii Integration", - "description": "Integrates Yii Code Generator for HumHub Developers", - "keywords": ["yii", "gii", "development"], - "version": "0.9", - "humhub": { - "minVersion": "0.5", - "maxVersion": "0.7" - } -} \ No newline at end of file diff --git a/protected/modules/yiigii/views/config/index.php b/protected/modules/yiigii/views/config/index.php deleted file mode 100644 index 6f68344c9e..0000000000 --- a/protected/modules/yiigii/views/config/index.php +++ /dev/null @@ -1,33 +0,0 @@ -
- -CHtml::link($this->createAbsoluteUrl('//gii'),$this->createUrl('//gii')))); ?> - -beginWidget('CActiveForm', array( - 'id' => 'configure-form', - 'enableAjaxValidation' => true, - )); -?> - -errorSummary($model); ?> - -