Private GIT

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

fichier du plugin

parent 6145d61c
Branches
No related tags found
No related merge requests found
<?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'");
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment