Ik ben bezig met criminalhosting.nl alleen als ik mijn hosting moet activeren krijg ik steeds deze fout:
De hosting kon helaas niet aangemaakt worden.. Dit kan komen door een incorrect wachtwoord of doordat je pakket al eens eerder aangemaakt is.
Ik kan er niet achter komen waar de fout zit.
Dit is het script:
PHP
<?php
/************************************************************\
* Om deze pagina te zien moet je minimaal ingelogd zijn
\************************************************************/
if( min_toegang( 10 ) ) {
/************************************************************\
* Hosting aanmaken
\************************************************************/
require( 'inc/class/direct/class.httpsocket.php' );
if ( $_SERVER[ 'REQUEST_METHOD' ] == 'POST' ) {
if ( ! empty( $_POST[ 'password' ] ) && strlen( $_POST[ 'password' ] ) >= 5 ) {
$Socket = new HTTPSocket;
$Socket->connect( $core[ 'conf' ][ 'direct' ][ 'server' ], 2222 );
$Socket->set_login( $core[ 'conf' ][ 'direct' ][ 'user' ], $core[ 'conf' ][ 'direct' ][ 'pass' ] );
$Socket->set_method( 'POST' );
$Socket->query( '/CMD_API_ACCOUNT_USER',
array(
'action' => 'create',
'add' => 'Submit',
'username' => 'host' . $lid[ 'id' ],
'email' => $core[ 'lid' ][ 'email' ],
'passwd' => $_POST[ 'password' ],
'passwd2' => $_POST[ 'password' ],
'domain' => $lid[ 'id' ] . '.criminalhosting.nl',
'package' => $core[ 'conf' ][ 'direct' ][ 'package' ],
'ip' => $core[ 'conf' ][ 'direct' ][ 'ip' ],
'notify' => 'yes'
)
);
$Result = $Socket->fetch_body( );
if ( substr( $Result, 0, 7 ) == 'error=0' ) {
mysql_query( "UPDATE leden SET hostpass = '" . mysql_escape_string( $_POST[ 'password' ] ) . "' WHERE id = '" . $lid[ 'id' ] . "'" ) or die( mysql_error( ) );
$core[ 'tpl' ]->assign( 'act_success', 1 );
} else {
$core[ 'tpl' ]->assign( 'act_failure', 1 );
}
} else {
$core[ 'tpl' ]->assign( 'act_failure', 1 );
}
} else {
$core[ 'tpl' ]->assign( 'act_form', 1 );
}
/************************************************************\
* Assign pagina
\************************************************************/
$core[ 'tpl' ]->assign( 'titel', 'Hosting aanmaken' );
$core[ 'tpl' ]->assign( 'pagina', 'pagina/hosting.tpl' );
} else {
/************************************************************\
* Assign pagina
\************************************************************/
$core[ 'tpl' ]->assign( 'titel', 'Geen toegang' );
$core[ 'tpl' ]->assign( 'pagina', 'pagina/geen_toegang.tpl' );
}
/************************************************************\
* Display layout
\************************************************************/
$core[ 'tpl' ]->display( 'layout.tpl' );
?>
Toon Meer
Weet iemand anders het?
Groeten :)!