Private GIT
Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
ckval
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Christophe K.
ckval
Commits
01964856
Commit
01964856
authored
5 years ago
by
ck
Browse files
Options
Downloads
Patches
Plain Diff
Descrition and version update
parent
5582b34c
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
upload/inc/plugins/valck.php
+11
-2
11 additions, 2 deletions
upload/inc/plugins/valck.php
with
11 additions
and
2 deletions
upload/inc/plugins/valck.php
+
11
−
2
View file @
01964856
...
@@ -16,17 +16,26 @@ function valck_info()
...
@@ -16,17 +16,26 @@ function valck_info()
$versionAPP
=
exec
(
'cd /home/ck/Mygit/MyBB/ckval/ && git rev-parse --short HEAD'
,
$returnval
);
$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
);
$versionAPP_long
=
exec
(
'cd /home/ck/Mygit/MyBB/ckval/ && git rev-parse HEAD'
,
$returnval
);
// descrition of plugin
$ckdescription
=
<<<EOT
Var for badge about treads count to index <br />
<span style="display: inline-block; margin: 2px 0; padding: 4px; background-color:mediumseagreen; font-size: 9px; color: #fff">
Version du git <a href="https://github.nailis.fr/ckbox/ckval/commit/{$versionAPP_long}" target="_blank" >{$versionAPP_long}</a>
</span>
EOT;
return
array
(
return
array
(
'name'
=>
"valck"
,
'name'
=>
"valck"
,
'description'
=>
"Var for badge about treads count to index"
,
'description'
=>
$ckdescription
,
'website'
=>
"https://www.ckforum.com"
,
'website'
=>
"https://www.ckforum.com"
,
'author'
=>
"ck"
,
'author'
=>
"ck"
,
'authorsite'
=>
"https://github.nailis.fr/ckbox/ckval/
commit/
"
.
$versionAPP
,
'authorsite'
=>
"https://github.nailis.fr/ckbox/ckval/"
.
$versionAPP
,
'version'
=>
"1.0 - "
.
$versionAPP
,
'version'
=>
"1.0 - "
.
$versionAPP
,
'compatibility'
=>
"18*"
'compatibility'
=>
"18*"
);
);
}
}
// function execute by index
function
valck_run
()
function
valck_run
()
{
{
global
$mybb
,
$lang
,
$db
,
$valck_run
;
global
$mybb
,
$lang
,
$db
,
$valck_run
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment