vpnmanager 1.0.0

This commit is contained in:
Christoph Haas 2012-07-16 19:40:07 +00:00
parent 68a4fa5922
commit fe740a8619
2 changed files with 7 additions and 19 deletions

View File

@ -84,12 +84,12 @@ else
<th style="border:5px;"><b>Current Chmod</b></th> <th style="border:5px;"><b>Current Chmod</b></th>
</tr> </tr>
<?php <?php
check_perms("/var/www","0777"); check_perms("/srv/www/vhosts_admhaasch/vpn.sprinternet.at/public_html","0775");
check_perms("/etc/openvpn","0777"); check_perms("/etc/openvpn","0775");
check_perms("/etc/openvpn/easy-rsa2","0777"); check_perms("/etc/openvpn/easy-rsa2","0775");
check_perms("/etc/openvpn/easy-rsa2/keys","0777"); check_perms("/etc/openvpn/easy-rsa2/keys","0775");
check_perms("/etc/openvpn/config/server.conf","0777"); check_perms("/etc/openvpn/config/server.conf","0775");
check_perms("/etc/openvpn/config/database","0777"); check_perms("/etc/openvpn/config/database","0775");
?> ?>
</table> </table>
<?php <?php

View File

@ -6,7 +6,7 @@
//------------------------------------------------------------------------------ //------------------------------------------------------------------------------
// Define Script Version // Define Script Version
//------------------------------------------------------------------------------ //------------------------------------------------------------------------------
$version = "2.0.3"; $version = "1.0.0";
//------------------------------------------------------------------------------ //------------------------------------------------------------------------------
@ -154,18 +154,6 @@ PRIMARY KEY (`id`)
) TYPE=MyISAM; ) TYPE=MyISAM;
"); ");
mysql_query ("
CREATE TABLE `proxyrepair` (
`Count` int(11) NOT NULL AUTO_INCREMENT,
`Id` int(11) NOT NULL,
`VPNId` varchar(3) NOT NULL,
`IP` varchar(16) NOT NULL,
`Time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
`RepID` varchar(3) NOT NULL,
PRIMARY KEY (`Count`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=77 ;
");
// Definition des standard Benutzer // Definition des standard Benutzer
$benutzer[0]["IsAdmin"] =1; $benutzer[0]["IsAdmin"] =1;
$benutzer[0]["VPNId"] = "-"; $benutzer[0]["VPNId"] = "-";