Private GIT

Skip to content
Snippets Groups Projects
Commit 943947f5 authored by ck's avatar ck
Browse files

ajout de vesion de GIT

parent 6b6f5437
Branches
No related tags found
No related merge requests found
...@@ -5,6 +5,9 @@ if(!defined('IN_MYBB')) ...@@ -5,6 +5,9 @@ if(!defined('IN_MYBB'))
die('This file cannot be accessed directly.'); die('This file cannot be accessed directly.');
} }
$versionAPP = exec('cd /home/ck/Mygit/MyBB/ckval/ && git rev-parse --short HEAD', $returnval );
$versionAPP_long = exec('cd /home/ck/Mygit/MyBB/ckval/ && git rev-parse HEAD', $returnval );
// my first hook // my first hook
$plugins->add_hook("global_start", "valck_run"); $plugins->add_hook("global_start", "valck_run");
...@@ -13,10 +16,10 @@ function valck_info() ...@@ -13,10 +16,10 @@ function valck_info()
return array( return array(
'name' => "valck", 'name' => "valck",
'description' => "Variables de CK pour global a réutiliser dans template", 'description' => "Variables de CK pour global a réutiliser dans template",
'website' => "#", 'website' => "www.ckforum.com",
'author' => "ck", 'author' => "ck",
'authorsite' => "#", 'authorsite' => "https://github.nailis.fr/ckbox/ddyoyock/commit/".<?=$versionAPP_long;?>."",
'version' => "1.0", 'version' => "1.0 - ".$versionAPP,
'compatibility' => "18*" 'compatibility' => "18*"
); );
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment