XtraUpload is an open source project powered by Assembla

Assembla offers free public and private SVN/Git repositories and project hosting with bug/issue tracking and collaboration tools.

xtraupload

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
<?php if (!defined('BASEPATH')) exit('No direct script access allowed');
/**
 * XtraUpload
 *
 * A turn-key open source web 2.0 PHP file uploading package requiring PHP v5
 *
 * @package        XtraUpload
 * @author        Matthew Glinski
 * @copyright    Copyright (c) 2006, XtraFile.com
 * @license        http://xtrafile.com/docs/license
 * @link        http://xtrafile.com
 * @since        Version 2.0
 * @filesource
 */

// ------------------------------------------------------------------------

/**
 * XtraUpload Skin DB Model
 *
 * @package        XtraUpload
 * @subpackage    Model
 * @category    Model
 * @author        Matthew Glinski
 * @link        http://xtrafile.com/docs/pages/files
 */

// ------------------------------------------------------------------------

class Skin_db extends Model
{
    public function Skin_db()
    {
        // Call the Model constructor
        parent::Model();
    }

    public function getAllSkins()
    {
        return $this->db->get('skin');
    }

    public function setActiveSkin($name)
    {
        $this->db->where('active', '1');
        $this->db->update('skin', array('active' => '0'));

        $this->db->where('name', $name);
        $this->db->update('skin', array('active' => '1'));
    }

    public function installSkin($file)
    {
        $this->db->insert('skin', array('name' => $file, 'active' => '0'));
    }

    public function deleteSkin($file)
    {
        $this->db->delete('skin', array('name' => $file));
    }
}
?>
Ajax-loader Loading, please wait...