Skip to content

Commit

Permalink
fix creation of dynamic property deprecation warnings in bubba gui
Browse files Browse the repository at this point in the history
  • Loading branch information
gordonb3 committed Jul 9, 2024
1 parent 066ba76 commit 6c8f233
Show file tree
Hide file tree
Showing 29 changed files with 110 additions and 28 deletions.
4 changes: 3 additions & 1 deletion bubba-frontend/admin/controllers/Ajax_album.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php
class Ajax_album extends CI_Controller {
require_once "Mycontroller.php";

class Ajax_album extends My_CI_Controller {

var $json_data=Array(
'error' => 1,
Expand Down
4 changes: 3 additions & 1 deletion bubba-frontend/admin/controllers/Ajax_backup.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php
class Ajax_backup extends CI_Controller {
require_once "Mycontroller.php";

class Ajax_backup extends My_CI_Controller {
const accounts_file = '/etc/bubba/remote_accounts.yml';
const local_jobs_file = '/etc/bubba/local_backup_jobs.yml';
const remote_jobs_file = '/etc/bubba/remote_backup_jobs.yml';
Expand Down
4 changes: 3 additions & 1 deletion bubba-frontend/admin/controllers/Ajax_disk.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php
class Ajax_disk extends CI_Controller {
require_once "Mycontroller.php";

class Ajax_disk extends My_CI_Controller {

var $json_data=Array(
'error' => 1,
Expand Down
4 changes: 3 additions & 1 deletion bubba-frontend/admin/controllers/Ajax_network.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php
class Ajax_network extends CI_Controller {
require_once "Mycontroller.php";

class Ajax_network extends My_CI_Controller {

var $json_data=Array(
'error' => true,
Expand Down
4 changes: 3 additions & 1 deletion bubba-frontend/admin/controllers/Ajax_notify.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php
class Ajax_notify extends CI_Controller {
require_once "Mycontroller.php";

class Ajax_notify extends My_CI_Controller {

var $json_data=Array(
'error' => 1,
Expand Down
4 changes: 3 additions & 1 deletion bubba-frontend/admin/controllers/Ajax_session.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
<?php

class Ajax_session extends CI_Controller {
require_once "Mycontroller.php";

class Ajax_session extends My_CI_Controller {
public $json_data = array();
public function __construct() {
parent::__construct();
Expand Down
4 changes: 3 additions & 1 deletion bubba-frontend/admin/controllers/Ajax_settings.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php
class Ajax_Settings extends CI_Controller {
require_once "Mycontroller.php";

class Ajax_Settings extends My_CI_Controller {

var $json_data=Array(
'error' => 1,
Expand Down
4 changes: 3 additions & 1 deletion bubba-frontend/admin/controllers/Ajax_status.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php
class Ajax_status extends CI_Controller {
require_once "Mycontroller.php";

class Ajax_status extends My_CI_Controller {

var $json_data=Array(
'error' => 1,
Expand Down
4 changes: 3 additions & 1 deletion bubba-frontend/admin/controllers/Ajax_upload.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php
class Ajax_upload extends CI_Controller {
require_once "Mycontroller.php";

class Ajax_upload extends My_CI_Controller {

var $json_data=Array(
'error' => 1,
Expand Down
4 changes: 3 additions & 1 deletion bubba-frontend/admin/controllers/Album.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
<?php

class Album extends CI_Controller {
require_once "Mycontroller.php";

class Album extends My_CI_Controller {
function __construct() {
parent::__construct();
require_once(APPPATH."/legacy/defines.php");
Expand Down
4 changes: 3 additions & 1 deletion bubba-frontend/admin/controllers/Backup.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
<?php

class Backup extends CI_Controller {
require_once "Mycontroller.php";

class Backup extends My_CI_Controller {
public function __construct() {
parent::__construct();
require_once(APPPATH."/legacy/defines.php");
Expand Down
4 changes: 3 additions & 1 deletion bubba-frontend/admin/controllers/Disk.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
<?php

class Disk extends CI_Controller{
require_once "Mycontroller.php";

class Disk extends My_CI_Controller{

function __construct(){
parent::__construct();
Expand Down
4 changes: 3 additions & 1 deletion bubba-frontend/admin/controllers/Downloads.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
<?php

class Downloads extends CI_Controller{
require_once "Mycontroller.php";

class Downloads extends My_CI_Controller{

var $sorted=false;
var $dl=false;
Expand Down
4 changes: 3 additions & 1 deletion bubba-frontend/admin/controllers/Filemanager.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
<?php

class Filemanager extends CI_Controller{
require_once "Mycontroller.php";

class Filemanager extends My_CI_Controller{

var $sortarray=false;
var $lspath=false;
Expand Down
4 changes: 3 additions & 1 deletion bubba-frontend/admin/controllers/Help.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
<?php

class Help extends CI_Controller{
require_once "Mycontroller.php";

class Help extends My_CI_Controller{

/* A couple of pages contains the same content and/or the same help text */
private $index_map = array(
Expand Down
4 changes: 3 additions & 1 deletion bubba-frontend/admin/controllers/Image.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php
class Image extends CI_Controller {
require_once "Mycontroller.php";

class Image extends My_CI_Controller {
function __construct() {
parent::__construct();
require_once(APPPATH."/legacy/defines.php");
Expand Down
4 changes: 3 additions & 1 deletion bubba-frontend/admin/controllers/Login.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php
class Login extends CI_Controller{
require_once "Mycontroller.php";

class Login extends My_CI_Controller{
function index($strip=""){

require_once(APPPATH."/legacy/defines.php");
Expand Down
4 changes: 3 additions & 1 deletion bubba-frontend/admin/controllers/Logout.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
<?php

class Logout extends CI_Controller{
require_once "Mycontroller.php";

class Logout extends My_CI_Controller{

function __construct(){
parent::__construct();
Expand Down
4 changes: 3 additions & 1 deletion bubba-frontend/admin/controllers/Mail.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
<?php

class Mail extends CI_Controller{
require_once "Mycontroller.php";

class Mail extends My_CI_Controller{

function __construct(){
parent::__construct();
Expand Down
4 changes: 3 additions & 1 deletion bubba-frontend/admin/controllers/Music.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
<?php

class Music extends CI_Controller{
require_once "Mycontroller.php";

class Music extends My_CI_Controller{

function __construct(){
parent::__construct();
Expand Down
26 changes: 26 additions & 0 deletions bubba-frontend/admin/controllers/Mycontroller.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
<?php

class My_CI_Controller extends CI_Controller{

public $Auth_model;
public $config;
public $menu;
public $session;
public $security;
public $system;
public $disk_model;
public $networkmanager;
public $router;
public $notify;
public $log;
public $lang;
public $benchmark;
public $browser_cap;
public $gettext;
public $spyc;
public $hooks;
public $input;
public $output;
public $uri;
public $utf8;
}
4 changes: 3 additions & 1 deletion bubba-frontend/admin/controllers/Network.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
<?php

class Network extends CI_Controller{
require_once "Mycontroller.php";

class Network extends My_CI_Controller{

function __construct(){
parent::__construct();
Expand Down
4 changes: 3 additions & 1 deletion bubba-frontend/admin/controllers/Services.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php
class Services extends CI_Controller{
require_once "Mycontroller.php";

class Services extends My_CI_Controller{

function __construct(){
parent::__construct();
Expand Down
4 changes: 3 additions & 1 deletion bubba-frontend/admin/controllers/Settings.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
<?php

class Settings extends CI_Controller{
require_once "Mycontroller.php";

class Settings extends My_CI_Controller{

function __construct(){
parent::__construct();
Expand Down
4 changes: 3 additions & 1 deletion bubba-frontend/admin/controllers/Shutdown.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php
class Shutdown extends CI_Controller{
require_once "Mycontroller.php";

class Shutdown extends My_CI_Controller{

function __construct(){
parent::__construct();
Expand Down
4 changes: 3 additions & 1 deletion bubba-frontend/admin/controllers/Stat.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
<?php

class Stat extends CI_Controller{
require_once "Mycontroller.php";

class Stat extends My_CI_Controller{

function __construct(){
parent::__construct();
Expand Down
4 changes: 3 additions & 1 deletion bubba-frontend/admin/controllers/Upload.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
<?php

class Upload extends CI_Controller{
require_once "Mycontroller.php";

class Upload extends My_CI_Controller{

function __construct(){
parent::__construct();
Expand Down
4 changes: 3 additions & 1 deletion bubba-frontend/admin/controllers/Users.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
<?php

class Users extends CI_Controller{
require_once "Mycontroller.php";

class Users extends My_CI_Controller{

function __construct(){
parent::__construct();
Expand Down
4 changes: 3 additions & 1 deletion bubba-frontend/admin/controllers/Wizard.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php
class wizard extends CI_Controller {
require_once "Mycontroller.php";

class wizard extends My_CI_Controller {

function __construct() {
parent::__construct();
Expand Down

0 comments on commit 6c8f233

Please sign in to comment.