mirror of
https://github.com/claudehohl/Stikked.git
synced 2025-04-26 04:51:08 -05:00
wait
This commit is contained in:
parent
b4bda63aea
commit
0c473679b8
@ -16,81 +16,6 @@ class Languages extends CI_Model
|
|||||||
function __construct()
|
function __construct()
|
||||||
{
|
{
|
||||||
parent::__construct();
|
parent::__construct();
|
||||||
|
|
||||||
if (!$this->db->table_exists('pastes'))
|
|
||||||
{
|
|
||||||
$this->db->simple_query(<<<EOT
|
|
||||||
--
|
|
||||||
-- Table structure for table `languages`
|
|
||||||
--
|
|
||||||
|
|
||||||
CREATE TABLE IF NOT EXISTS `languages` (
|
|
||||||
`code` varchar(12) character set utf8 collate utf8_unicode_ci NOT NULL,
|
|
||||||
`description` varchar(32) character set utf8 collate utf8_unicode_ci NOT NULL
|
|
||||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
|
|
||||||
|
|
||||||
--
|
|
||||||
-- Dumping data for table `languages`
|
|
||||||
--
|
|
||||||
|
|
||||||
INSERT INTO `languages` (`code`, `description`) VALUES
|
|
||||||
('c', 'C'),
|
|
||||||
('css', 'CSS'),
|
|
||||||
('cpp', 'C++'),
|
|
||||||
('html4strict', 'HTML (4 Strict)'),
|
|
||||||
('java', 'Java'),
|
|
||||||
('perl', 'Perl'),
|
|
||||||
('php', 'PHP'),
|
|
||||||
('python', 'Python'),
|
|
||||||
('ruby', 'Ruby'),
|
|
||||||
('text', 'Plain Text'),
|
|
||||||
('asm', 'ASM (Nasm Syntax)'),
|
|
||||||
('xhtml', 'XHTML'),
|
|
||||||
('actionscript', 'Actionscript'),
|
|
||||||
('ada', 'ADA'),
|
|
||||||
('apache', 'Apache Log'),
|
|
||||||
('applescript', 'AppleScript'),
|
|
||||||
('autoit', 'AutoIT'),
|
|
||||||
('bash', 'Bash'),
|
|
||||||
('bptzbasic', 'BptzBasic'),
|
|
||||||
('c_mac', 'C for Macs'),
|
|
||||||
('csharp', 'C#'),
|
|
||||||
('ColdFusion', 'coldfusion'),
|
|
||||||
('delphi', 'Delphi'),
|
|
||||||
('eiffel', 'Eiffel'),
|
|
||||||
('fortran', 'Fortran'),
|
|
||||||
('freebasic', 'FreeBasic'),
|
|
||||||
('gml', 'GML'),
|
|
||||||
('groovy', 'Groovy'),
|
|
||||||
('inno', 'Inno'),
|
|
||||||
('java5', 'Java 5'),
|
|
||||||
('javascript', 'Javascript'),
|
|
||||||
('latex', 'LaTeX'),
|
|
||||||
('mirc', 'mIRC'),
|
|
||||||
('mysql', 'MySQL'),
|
|
||||||
('nsis', 'NSIS'),
|
|
||||||
('objc', 'Objective C'),
|
|
||||||
('ocaml', 'OCaml'),
|
|
||||||
('oobas', 'OpenOffice BASIC'),
|
|
||||||
('orcale8', 'Orcale 8 SQL'),
|
|
||||||
('pascal', 'Pascal'),
|
|
||||||
('plsql', 'PL/SQL'),
|
|
||||||
('qbasic', 'Q(uick)BASIC'),
|
|
||||||
('robots', 'robots.txt'),
|
|
||||||
('scheme', 'Scheme'),
|
|
||||||
('sdlbasic', 'SDLBasic'),
|
|
||||||
('smalltalk', 'Smalltalk'),
|
|
||||||
('smarty', 'Smarty'),
|
|
||||||
('sql', 'SQL'),
|
|
||||||
('tcl', 'TCL'),
|
|
||||||
('vbnet', 'VB.NET'),
|
|
||||||
('vb', 'Visual BASIC'),
|
|
||||||
('winbatch', 'Winbatch'),
|
|
||||||
('xml', 'XML'),
|
|
||||||
('z80', 'z80 ASM');
|
|
||||||
EOT;
|
|
||||||
);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function valid_language($lang)
|
function valid_language($lang)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user