diff --git a/upload/inc/plugins/valck.php b/upload/inc/plugins/valck.php index 824cdd40c634fe8a83d57f50cee7fdab8024759e..39a5b99b36739d4b1ef8777878bcf5741c37d2b6 100755 --- a/upload/inc/plugins/valck.php +++ b/upload/inc/plugins/valck.php @@ -6,7 +6,7 @@ if(!defined('IN_MYBB')) } -// my first hook +// my first hook! $plugins->add_hook("global_start", "valck_run"); function valck_info() @@ -14,8 +14,11 @@ function valck_info() /* Versioning of files - dev */ -$versionAPP = exec('cd /home/ck/AddOn_Mybb/ckval/ && git rev-parse --short HEAD', $returnval ); -$versionAPP_long = exec('cd /home/ck/AddOn_Mybb/ckval/ && git rev-parse HEAD', $returnval ); +//$versionAPP = exec('cd /home/ck/AddOn_Mybb/ckval/ && git rev-parse --short HEAD', $returnval ); +//$versionAPP_long = exec('cd /home/ck/AddOn_Mybb/ckval/ && git rev-parse HEAD', $returnval ); + +// a retravailler voir : https://stackoverflow.com/questions/7447472/how-could-i-display-the-current-git-branch-name-at-the-top-of-the-page-of-my-de + // descrition of plugin $ckdescription = <<<EOT @@ -31,7 +34,7 @@ EOT; 'website' => "https://www.ckforum.com", 'author' => "ck", 'authorsite' => "http://github.nailis.fr/ckbox/ckval/-/blob/master/upload/inc/plugins/valck.php", - 'version' => "1.2 - ".$versionAPP, + 'version' => "1.3 - ".$branchname, 'compatibility' => "18*" ); } @@ -61,7 +64,7 @@ global $mybb, $lang, $db, $valck_run; $db->free_result($query); // fin requete message aujourdui - + if ($newposts > 0) { // Get new treads - nouveau sujet like search getnew // If there aren't any new posts, there is no point in wasting two more queries