Articles: finish admin refactor, uploads hardening, and attachment sorting (0.262)
This commit is contained in:
@@ -12,10 +12,21 @@ session_start();
|
||||
/* połączenie z bazą ustawić wg własnych preferencji */
|
||||
require_once dirname( __FILE__ ) . '/../../config.php';
|
||||
require_once dirname( __FILE__ ) . '/../../autoload/class.S.php';
|
||||
require_once dirname( __FILE__ ) . '/../../autoload/admin/factory/class.Articles.php';
|
||||
require_once dirname( __FILE__ ) . '/../../autoload/admin/factory/class.Pages.php';
|
||||
require_once dirname( __FILE__ ) . '/../../autoload/admin/factory/class.ShopCategory.php';
|
||||
require_once dirname( __FILE__ ) . '/../../autoload/admin/factory/class.ShopProduct.php';
|
||||
|
||||
$legacyFactoryFiles = [
|
||||
'/../../autoload/admin/factory/class.Articles.php',
|
||||
'/../../autoload/admin/factory/class.Pages.php',
|
||||
'/../../autoload/admin/factory/class.ShopCategory.php',
|
||||
'/../../autoload/admin/factory/class.ShopProduct.php',
|
||||
];
|
||||
|
||||
foreach ( $legacyFactoryFiles as $legacyFactoryFile )
|
||||
{
|
||||
$legacyFactoryPath = dirname( __FILE__ ) . $legacyFactoryFile;
|
||||
if ( file_exists( $legacyFactoryPath ) )
|
||||
require_once $legacyFactoryPath;
|
||||
}
|
||||
|
||||
require_once dirname( __FILE__ ) . '/../../autoload/shop/class.Product.php';
|
||||
require_once dirname( __FILE__ ) . '/../../libraries/medoo/medoo.php';
|
||||
|
||||
@@ -35,4 +46,4 @@ $mdb = new medoo( [
|
||||
'username' => $database['user'],
|
||||
'password' => $database['password'],
|
||||
'charset' => 'utf8'
|
||||
] );
|
||||
] );
|
||||
|
||||
Reference in New Issue
Block a user