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
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Christophe K.
ckval
Commits
5582b34c
Commit
5582b34c
authored
5 years ago
by
ck
Browse files
Options
Downloads
Patches
Plain Diff
Adaptation des version de commit pour le mod et que cela fontionne dans MyBB
parent
943947f5
Branches
Branches containing commit
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
+8
-5
8 additions, 5 deletions
upload/inc/plugins/valck.php
with
8 additions
and
5 deletions
upload/inc/plugins/valck.php
+
8
−
5
View file @
5582b34c
...
...
@@ -5,20 +5,23 @@ if(!defined('IN_MYBB'))
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
$plugins
->
add_hook
(
"global_start"
,
"valck_run"
);
function
valck_info
()
{
/* Versioning of files - dev */
$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
);
return
array
(
'name'
=>
"valck"
,
'description'
=>
"Var
iables de CK pour global a réutiliser dans template
"
,
'website'
=>
"www.ckforum.com"
,
'description'
=>
"Var
for badge about treads count to index
"
,
'website'
=>
"
https://
www.ckforum.com"
,
'author'
=>
"ck"
,
'authorsite'
=>
"https://github.nailis.fr/ckbox/
ddyoyock
/commit/"
.
<?=
$versionAPP
_long
;
?>
.""
,
'authorsite'
=>
"https://github.nailis.fr/ckbox/
ckval
/commit/"
.
$versionAPP
,
'version'
=>
"1.0 - "
.
$versionAPP
,
'compatibility'
=>
"18*"
);
...
...
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