function uninstall()
 {
     global $conf;
     conf_delete_param('forecast_conf');
     $q = 'DROP VIEW forecast;';
     pwg_query($q);
 }
 function uninstall()
 {
     global $conf;
     conf_delete_param('flickr2piwigo');
     self::rrmdir(PHPWG_ROOT_PATH . $conf['data_location'] . 'flickr_cache/');
 }
 function uninstall()
 {
     global $conf;
     conf_delete_param('cdnplus_conf');
 }
 function uninstall()
 {
     conf_delete_param('oauth');
     pwg_query('ALTER TABLE `' . USER_INFOS_TABLE . '` DROP `oauth_id`;');
     @unlink($this->file);
 }
 function uninstall()
 {
     conf_delete_param('AdminTools');
 }
 function uninstall()
 {
     $this->cleanUp();
     conf_delete_param('gdThumb');
 }
 function uninstall()
 {
     pwg_query('DROP TABLE `' . $this->table . '`;');
     conf_delete_param('guestbook');
 }
 function uninstall()
 {
     conf_delete_param('Fotorama');
 }
function plugin_uninstall()
{
    conf_delete_param('url_uploader_mode');
}
    /**
     * API method
     * Return full list of users, themes and languages
     */
    public static function ws_get_data($params)
    {
        global $conf;
        // get users
        $query = '
SELECT
  ' . $conf['user_fields']['id'] . ' AS id,
  ' . $conf['user_fields']['username'] . ' AS username,
  status
FROM ' . USERS_TABLE . ' AS u
  INNER JOIN ' . USER_INFOS_TABLE . ' AS i
    ON ' . $conf['user_fields']['id'] . ' = user_id
  ORDER BY CONVERT(' . $conf['user_fields']['username'] . ', CHAR)
;';
        $out['users'] = array_from_query($query);
        // get themes
        include_once PHPWG_ROOT_PATH . 'admin/include/themes.class.php';
        $themes = new themes();
        foreach (array_keys($themes->db_themes_by_id) as $theme) {
            if (!empty($theme)) {
                $out['themes'][] = $theme;
            }
        }
        // get languages
        foreach (get_languages() as $code => $name) {
            $out['languages'][] = array('id' => $code, 'name' => $name);
        }
        conf_delete_param('multiview_invalidate_cache');
        return $out;
    }
Exemple #11
0
 function delete()
 {
     // delete configuration
     conf_delete_param('smartpocket');
 }
 function uninstall()
 {
     conf_delete_param('sortorders');
 }