Ik ben bezig met criminalhosting.nl alleen als ik mijn hosting wil activeren krijg ik steeds deze error:
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.
Het gaat om dit scrupt:
Weet iemand anders het?PHP Code:
<?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' );
?>
Groeten
Brian
Aanvullend bericht:
Niemand?
- Activeren hosting fout
-
04-06-2010, 21:24 #1
- Berichten
- 144
- Lid sinds
- 15 Jaar
Activeren hosting fout
Laatst aangepast door Brian Tukkers : 05-06-2010 om 00:50 Reden: Automatisch samengevoegd.
-
-
06-06-2010, 19:43 #2
- Berichten
- 750
- Lid sinds
- 15 Jaar
kijk of het wachtwoord klopt en of dat account er al niet in staat zoals de melding aangeeft?
Plaats een
- + Advertentie
- + Onderwerp
Marktplaats
Webmasterforum
- Websites algemeen
- Sitechecks
- Marketing
- Domeinen algemeen
- Waardebepaling
- CMS
- Wordpress
- Joomla
- Magento
- Google algemeen
- SEO
- Analytics
- Adsense
- Adwords
- HTML / XHTML
- CSS
- Programmeren
- PHP
- Javascript
- JQuery
- MySQL
- Ondernemen algemeen
- Belastingen
- Juridisch
- Grafisch ontwerp
- Hosting Algemeen
- Hardware Info
- Offtopic