diff --git a/upload/inc/plugins/ckval.php b/upload/inc/plugins/ckval.php new file mode 100755 index 0000000000000000000000000000000000000000..de2032af94ddd67eb3c92e723077d10e6d360d96 --- /dev/null +++ b/upload/inc/plugins/ckval.php @@ -0,0 +1,69 @@ +<?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'"); +} + +