first commit

This commit is contained in:
2024-10-23 13:44:50 +02:00
commit b6107b8c75
7924 changed files with 1087672 additions and 0 deletions

View File

@@ -0,0 +1,21 @@
<?
namespace front\factory;
class Shop
{
static public function baselinker_settings( $admin = false )
{
global $mdb;
if ( !$settings = \Cache::fetch( 'baselinker_settings' ) or $admin )
{
$results = $mdb -> select( 'pp_shop_baselinker_settings', '*' );
if ( is_array( $results ) ) foreach ( $results as $row )
$settings[ $row['name'] ] = $row['value'];
if ( !$admin)
\Cache::store( 'baselinker_settings', $settings );
}
return $settings;
}
}