예제 #1
0
 function uninstall()
 {
     global $conf;
     conf_delete_param('forecast_conf');
     $q = 'DROP VIEW forecast;';
     pwg_query($q);
 }
예제 #2
0
 function uninstall()
 {
     global $conf;
     conf_delete_param('flickr2piwigo');
     self::rrmdir(PHPWG_ROOT_PATH . $conf['data_location'] . 'flickr_cache/');
 }
예제 #3
0
 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');
 }
예제 #6
0
 function uninstall()
 {
     $this->cleanUp();
     conf_delete_param('gdThumb');
 }
예제 #7
0
 function uninstall()
 {
     pwg_query('DROP TABLE `' . $this->table . '`;');
     conf_delete_param('guestbook');
 }
예제 #8
0
 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;
    }
예제 #11
0
 function delete()
 {
     // delete configuration
     conf_delete_param('smartpocket');
 }
예제 #12
0
 function uninstall()
 {
     conf_delete_param('sortorders');
 }