changed git call from https to git readonly
[atutor.git] / mods / pnATutor / pninit.php
1 <?php\r
2 // $Id: pninit.php\r
3 // ----------------------------------------------------------------------\r
4 // POST-NUKE Content Management System\r
5 // Copyright (C) 2002 by the PostNuke Development Team.\r
6 // http://www.postnuke.com/\r
7 // ----------------------------------------------------------------------\r
8 // Based on:\r
9 // PHP-NUKE Web Portal System - http://phpnuke.org/\r
10 // Thatware - http://thatware.org/\r
11 // ----------------------------------------------------------------------\r
12 // LICENSE\r
13 //\r
14 // This program is free software; you can redistribute it and/or\r
15 // modify it under the terms of the GNU General Public License (GPL)\r
16 // as published by the Free Software Foundation; either version 2\r
17 // of the License, or (at your option) any later version.\r
18 //\r
19 // This program is distributed in the hope that it will be useful,\r
20 // but WIthOUT ANY WARRANTY; without even the implied warranty of\r
21 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\r
22 // GNU General Public License for more details.\r
23 //\r
24 // To read the license please visit http://www.gnu.org/copyleft/gpl.html\r
25 // ----------------------------------------------------------------------\r
26 // Filename: 1.0\r
27 // Based on : pnATutor\r
28 // Postnuked  by Cas Nuy\r
29 // Purpose of file:  Initialisation functions for pnATutor\r
30 // ----------------------------------------------------------------------\r
31 \r
32 /**\r
33  * initialise the pnATutor module\r
34  * This function is only ever called once during the lifetime of this module\r
35  */\r
36 function pnATutor_init()\r
37 {\r
38 \r
39     // pnATutor Default Settings\r
40         pnModSetVar(pnATutor, '_loc', '/ATutor');\r
41         pnModSetVar(pnATutor, '_window', 0);\r
42         pnModSetVar(pnATutor, '_db', 'atutor');\r
43         pnModSetVar(pnATutor, '_prf', '');\r
44         pnModSetVar(pnATutor, '_guest', 'n');\r
45         pnModSetVar(pnATutor, '_users', 'n');\r
46         pnModSetVar(pnATutor, '_version','1.3.1');\r
47    return true;\r
48 }\r
49 /**\r
50  * update the pnATutor module\r
51  * This function is only ever called once during the lifetime of this module\r
52  */\r
53 function pnATutor_upgrade()\r
54 {\r
55 pnModSetVar(pnATutor, '_prf', '');\r
56 return true;\r
57 }\r
58 \r
59 \r
60 /**\r
61  * delete the pnATutor module\r
62  * This function is only ever called once during the lifetime of this module\r
63  */\r
64 function pnATutor_delete()\r
65 {\r
66 \r
67 pnModDelVar(pnATutor, '_loc');\r
68 pnModDelVar(pnATutor, '_window');\r
69 pnModDelVar(pnATutor, '_wrap');\r
70 pnModDelVar(pnATutor, '_db');\r
71 pnModDelVar(pnATutor, '_guest');\r
72 pnModDelVar(pnATutor, '_users');\r
73 pnModDelVar(pnATutor, '_version');\r
74 pnModDelVar(pnATutor, '_prf');\r
75 \r
76 return true;\r
77 }\r
78 \r
79 ?>\r