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
b40d6a3b
Commit
b40d6a3b
authored
5 years ago
by
ck
Browse files
Options
Downloads
Patches
Plain Diff
fichier du plugin
parent
6145d61c
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/ckval.php
+69
-0
69 additions, 0 deletions
upload/inc/plugins/ckval.php
with
69 additions
and
0 deletions
upload/inc/plugins/ckval.php
0 → 100755
+
69
−
0
View file @
b40d6a3b
<?php
/**
* MyBB 1.8
* Copyright 2014 MyBB Group, All Rights Reserved
* test
* Website: http://www.mybb.com
* License: http://www.mybb.com/about/license
*
*/
// Make sure we can't access this file directly from the browser.
if
(
!
defined
(
'IN_MYBB'
))
{
die
(
'This file cannot be accessed directly.'
);
}
function
ckval_info
()
{
/**
* Array of information about the plugin.
* name: The name of the plugin
* description: Description of what the plugin does
* website: The website the plugin is maintained at (Optional)
* author: The name of the author of the plugin
* authorsite: The URL to the website of the author (Optional)
* version: The version number of the plugin
* compatibility: A CSV list of MyBB versions supported. Ex, '121,123', '12*'. Wildcards supported.
* codename: An unique code name to be used by updated from the official MyBB Mods community.
*/
return
array
(
'name'
=>
'CKVAL'
,
'description'
=>
'pour lister mes variables dans MyBB'
,
'website'
=>
'https://blog.ckforum.com'
,
'author'
=>
'CKFORUM'
,
'authorsite'
=>
'https://www.ckforum.com'
,
'version'
=>
'1.0'
,
'compatibility'
=>
'18*'
,
'codename'
=>
'ckval'
);
}
function
ckval_activate
()
{
global
$db
;
$template
=
'<strong>test</strong>'
;
$insert_array
=
array
(
'title'
=>
'ckval_template'
,
'template'
=>
$db
->
escape_string
(
$template
),
'sid'
=>
'-1'
,
'version'
=>
''
,
'dateline'
=>
time
()
);
$db
->
insert_query
(
'templates'
,
$insert_array
);
}
function
ckval_deactivate
()
{
global
$db
;
$db
->
delete_query
(
"templates"
,
"title = 'ckval_template'"
);
}
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