[fix] remove dl() and mysql_connect() check, since we now use PDO
This commit is contained in:
parent
474bdbd4ae
commit
dfb0329241
|
@ -29,11 +29,6 @@
|
||||||
----------------------------------------------------------------------
|
----------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
|
|
||||||
if(!function_exists('mysql_connect')) {
|
|
||||||
if(!dl("mysql.so"))
|
|
||||||
exit(1);
|
|
||||||
}
|
|
||||||
|
|
||||||
// don't check my authentication !
|
// don't check my authentication !
|
||||||
if(!chdir("/usr/share/alternc/panel"))
|
if(!chdir("/usr/share/alternc/panel"))
|
||||||
exit(1);
|
exit(1);
|
||||||
|
|
|
@ -1,12 +1,6 @@
|
||||||
#!/usr/bin/php
|
#!/usr/bin/php
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
// We check that mysql php module is loaded
|
|
||||||
if(!function_exists('mysql_connect')) {
|
|
||||||
if(!dl("mysql.so"))
|
|
||||||
exit(1);
|
|
||||||
}
|
|
||||||
|
|
||||||
// If we upgrade directly to 3.1 the panel directory change
|
// If we upgrade directly to 3.1 the panel directory change
|
||||||
$panel='';
|
$panel='';
|
||||||
if(chdir("/usr/share/alternc/panel")) $panel='/usr/share/alternc/panel';
|
if(chdir("/usr/share/alternc/panel")) $panel='/usr/share/alternc/panel';
|
||||||
|
|
|
@ -1,12 +1,6 @@
|
||||||
#!/usr/bin/php
|
#!/usr/bin/php
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
// We check that mysql php module is loaded
|
|
||||||
if(!function_exists('mysql_connect')) {
|
|
||||||
if(!dl("mysql.so"))
|
|
||||||
exit(1);
|
|
||||||
}
|
|
||||||
|
|
||||||
// If we upgrade directly to 3.1 the panel directory change
|
// If we upgrade directly to 3.1 the panel directory change
|
||||||
$panel='';
|
$panel='';
|
||||||
if(chdir("/usr/share/alternc/panel")) $panel='/usr/share/alternc/panel';
|
if(chdir("/usr/share/alternc/panel")) $panel='/usr/share/alternc/panel';
|
||||||
|
|
|
@ -1,12 +1,6 @@
|
||||||
#!/usr/bin/php
|
#!/usr/bin/php
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
// We check that mysql php module is loaded
|
|
||||||
if(!function_exists('mysql_connect')) {
|
|
||||||
if(!dl("mysql.so"))
|
|
||||||
exit(1);
|
|
||||||
}
|
|
||||||
|
|
||||||
// If we upgrade directly to 3.1 the panel directory change
|
// If we upgrade directly to 3.1 the panel directory change
|
||||||
$panel='';
|
$panel='';
|
||||||
if(chdir("/usr/share/alternc/panel")) $panel='/usr/share/alternc/panel';
|
if(chdir("/usr/share/alternc/panel")) $panel='/usr/share/alternc/panel';
|
||||||
|
|
|
@ -1,12 +1,6 @@
|
||||||
#!/usr/bin/php
|
#!/usr/bin/php
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
// We check that mysql php module is loaded
|
|
||||||
if(!function_exists('mysql_connect')) {
|
|
||||||
if(!dl("mysql.so"))
|
|
||||||
exit(1);
|
|
||||||
}
|
|
||||||
|
|
||||||
// we don't check our AlternC session
|
// we don't check our AlternC session
|
||||||
if(!chdir("/usr/share/alternc/panel"))
|
if(!chdir("/usr/share/alternc/panel"))
|
||||||
exit(1);
|
exit(1);
|
||||||
|
|
|
@ -1,12 +1,6 @@
|
||||||
#!/usr/bin/php
|
#!/usr/bin/php
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
// We check that mysql php module is loaded
|
|
||||||
if(!function_exists('mysql_connect')) {
|
|
||||||
if(!dl("mysql.so"))
|
|
||||||
exit(1);
|
|
||||||
}
|
|
||||||
|
|
||||||
// we don't check our AlternC session
|
// we don't check our AlternC session
|
||||||
if(!chdir("/usr/share/alternc/panel"))
|
if(!chdir("/usr/share/alternc/panel"))
|
||||||
exit(1);
|
exit(1);
|
||||||
|
|
|
@ -1,12 +1,6 @@
|
||||||
#!/usr/bin/php
|
#!/usr/bin/php
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
// We check that mysql php module is loaded
|
|
||||||
if(!function_exists('mysql_connect')) {
|
|
||||||
if(!dl("mysql.so"))
|
|
||||||
exit(1);
|
|
||||||
}
|
|
||||||
|
|
||||||
// we don't check our AlternC session
|
// we don't check our AlternC session
|
||||||
if(!chdir("/usr/share/alternc/panel"))
|
if(!chdir("/usr/share/alternc/panel"))
|
||||||
exit(1);
|
exit(1);
|
||||||
|
|
|
@ -1,12 +1,6 @@
|
||||||
#!/usr/bin/php
|
#!/usr/bin/php
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
// We check that mysql php module is loaded
|
|
||||||
if(!function_exists('mysql_connect')) {
|
|
||||||
if(!dl("mysql.so"))
|
|
||||||
exit(1);
|
|
||||||
}
|
|
||||||
|
|
||||||
// we don't check our AlternC session
|
// we don't check our AlternC session
|
||||||
if(!chdir("/usr/share/alternc/panel"))
|
if(!chdir("/usr/share/alternc/panel"))
|
||||||
exit(1);
|
exit(1);
|
||||||
|
|
Loading…
Reference in New Issue