Argos CMS is a modern responsive multigaming system integrated with phpBB 3.3x.Built with custom MVC framework and works great with php 8.x and phpbb 3.3.x
Features:The package contains the following folders/files (forum folder is not included):
<?php
if(count(get_included_files()) == 1) exit("Direct access not permitted."); //Don't edit
$ext_version = '1.0';
//When ext is ON, this runs:
$sql_insert = "";
//When ext is OFF, this runs:
$sql_drop = "";
In code above you can set extension version and set SQL tables/queries for extension.
<?php
if(count(get_included_files()) == 1) exit("Direct access not permitted."); //Don't edit
$ext_version = '1.0';
$custom_page_name = "last_time";
$custom_page_title = "Last time";
//When ext is ON, this runs:
$sql_insert = "INSERT INTO ".$this->argos_db_prefix."pages (page_name,page_title,menu_type,type) VALUES('".$custom_page_name."','".$custom_page_title."','menu','ext');";
//When ext is OFF, this runs:
$sql_drop = "DELETE FROM ".$this->argos_db_prefix."pages WHERE page_name='".$custom_page_name."';";
<?php
namespace ext\pok4;
use \PDO;
if (count(get_included_files()) == 1) exit("Direct access not permitted."); //Don't edit
class last_time extends \App\Controllers\BaseController {
public function __construct() {
parent::__construct();
//Multilanguage support (with get_current_language() function from functions.php)
if (get_current_language() == 'bg') {
$this->lang= array_merge($this->lang, [
'ext_last_time_text'=>'Дата и час: ',
]);
}
if (get_current_language() == 'en') {
$this->lang= array_merge($this->lang, [
'ext_last_time_text'=>'Date and time: ',
]);
}
if (get_current_language() == 'ru') {
$this->lang= array_merge($this->lang, [
'ext_last_time_text'=>'Дата и время:',
]);
}
if (get_current_language() == 'es') {
$this->lang= array_merge($this->lang, [
'ext_last_time_text'=>'Fecha y hora:',
]);
}
}
public function custom_page() {
if (str_contains(request_uri(), '/pages/last_time')) { //check that we on the current page we defined in sql.php
//our custom page content
return $this->lang['ext_last_time_text']. date('d.m.y h:i:s',time());
}
}
//our load function and set the one above to print...
public function load() {
add_event('core_event_inside_custom_menu', [$this->custom_page()]);
}
};
$load_ext = new last_time;
$load_ext->load();
namespace ext\pok4; use \PDO;namespaces is only using in ways that you works with ajax in extensions. (you can remove it or change pok4 with the name of your folder extension)
class last_time extends \App\Controllers\BaseControllerI suggest you to place the name of the class with the name of your ext folder. (for example you must have this dir now /ext/pok4/last_time). Now the name of the class must be last_time.
$load_ext = new last_time; $load_ext->load();new last_time; - that must be the name of your class which you declared above... If you type another name - you will get a error... If you make everything the result is custom page with current time and multilanguage support, demo:
<?php
$ext_language = [
'ext_magazine_expire_days'=>'The rights in the servers are valid for',
'ext_magazine_days'=>'days',
'ext_magazine_flags'=>'flags',
];
Now you can use $this->lang['ext_magazine_flags']; (for example), in your extensions. You must create all files with current supported languages. (en.php,bg.php,es.php,fr.php and ru.php) in lang/ folder.
You can see all of current extensions with multilanguage support and you can catch what we mean from examples above...
$template_events = [
'core_event_head_append'=>'template_event_head_append',(demo) (you can insert code in head section)
'core_event_after_header'=>'template_event_after_header',(demo) (you can insert code after header)
'core_event_before_header'=>'template_event_before_header',(demo) (you can insert code before header)
'core_event_after_slider'=>'template_event_after_slider',(demo) (you can insert code after slider)
'core_event_after_chat'=>'template_event_after_chat',(demo) (you can insert code after chat)
'core_event_before_left_menu'=>'template_event_before_left_menu',(demo) (you can insert code before left menu (news))
'core_event_after_left_menu'=>'template_event_after_left_menu',(demo) (you can insert code after left menu (last topics))
'core_event_before_right_menu'=>'template_event_before_right_menu',(demo) (you can insert code before right menu)
'core_event_after_right_menu'=>'template_event_after_right_menu',(demo) (you can insert code after right menu)
'core_event_after_news'=>'template_event_after_news',(demo) (you can insert code after news)
'core_event_after_comments'=>'template_event_after_comments',(demo) (you can insert code after comments)
'core_event_before_footer'=>'template_event_before_footer',(demo) (you can insert code before footer)
'core_event_after_footer'=>'template_event_after_footer',(demo) (you can insert code after footer)
'core_event_inside_multipurpose_menu'=>'template_event_inside_multipurpose_menu',(demo) (you can insert code in multipurpose menu)
'core_event_before_dropbox'=>'template_event_before_dropbox',(demo) (you can insert code before upload image)
'core_event_before_files'=>'template_event_before_files',(demo) (you can insert code before files)
'core_event_before_upload_videos'=>'template_event_before_upload_videos',(demo) (you can insert code before upload videos)
'core_event_after_contact_description'=>'template_event_after_contact_description',(demo) (you can insert code after contact description)
'core_event_inside_custom_menu'=>'template_event_inside_custom_menu',(demo) (you can insert code in custom pages with menus)
'core_event_inside_custom_w_menu'=>'template_event_inside_custom_w_menu',(demo) (you can insert code in custom pages without menus)
'core_event_js_libs_insert'=>'template_event_js_libs_insert',(demo) (you can insert js libs after default ones in templates)
'core_event_inside_script_tag'=>'template_event_inside_script_tag',(demo) (you can insert js code in head ready event)
//admin events
'core_admin_event_ext_pages'=>'template_admin_event_ext_pages',(demo) (you can insert links in sidebar from extensions)
'core_admin_event_custom_pages_ext'=>'template_admin_event_custom_pages_ext',(demo) (you can insert code from exension on custom page)
'core_admin_event_after_home'=>'template_admin_event_after_home',(demo) (you can insert code in admin panel after home page content)
'core_admin_event_before_home'=>'template_admin_event_before_home',(demo) (you can insert code in admin panel before home page content)
'core_admin_event_inside_script_tag'=>'template_admin_event_inside_script_tag',(demo) (you can insert js code in this event without script tags)
'core_admin_event_after_jquery'=>'template_admin_event_after_jquery',(demo) (you can insert js libs in this event)
'core_admin_event_head_append'=>'template_admin_event_head_append',(demo) (you can insert things in head section in admin panel area)
];
{{#is_logged}}
your functions here...
{{/is_logged}}
{{^is_logged}}
else if not logged... (guest)
{{/is_logged}}