Ejemplo n.º 1
0
    /**
     * Activate style.
     *
     * @param int $style_id.
     * @return null
     */
    protected function activate($style_id)
    {
        $sql = 'UPDATE ' . STYLES_TABLE . '
			SET style_active = 1
			WHERE style_id = ' . (int) $style_id;
        $this->db->sql_query($sql);
    }
Ejemplo n.º 2
0
    /**
     * Delete authentication key.
     *
     * @param string $key
     * @return null
     */
    protected function delete_auth_key($key)
    {
        $config_name = 'titania_key_' . $key;
        $sql = 'DELETE FROM ' . $this->table_prefix . 'config
			WHERE config_name = "' . $this->db->sql_escape($config_name) . '"';
        $this->db->sql_query($sql);
    }