mod_rewrite not found. Check this with your server admin.'; if ( !yourls_check_database_version() ) $error[] = 'MySQL version is too old. Ask your server admin for an upgrade.'; if ( !yourls_check_php_version() ) $error[] = 'PHP version is too old. Ask your server admin for an upgrade.'; // Check additional stuff if ( !yourls_check_curl() ) $warning[] = 'PHP extension cURL is not installed. This server won\'t be able to use the remote API'; if ( !yourls_check_bcmath() ) $warning[] = 'PHP extension BC Math is not installed. Config setting YOURLS_URL_CONVERT forced to 36'; // Is YOURLS already installed ? if ( yourls_is_installed() ) $error[] = 'YOURLS already installed.'; // Start install if possible and needed if ( isset($_REQUEST['install']) && count( $error ) == 0 ) { // Create/update .htaccess file if ( yourls_create_htaccess() ) { $success[] = 'File .htaccess successfully created/updated.'; } else { $error[] = 'Could not write file .htaccess in YOURLS root directory. You will have to do it manually.'; } // Create SQL tables $install = yourls_create_sql_tables(); if ( isset( $install['error'] ) ) $error = array_merge( $error, $install['error'] ); if ( isset( $install['success'] ) ) $success = array_merge( $success, $install['success'] ); } // Start output yourls_html_head( 'install' ); ?>

YOURLS

0 ) { echo "'; } } // Display install button or link to admin area if applicable if( !yourls_is_installed() && !isset($_REQUEST['install']) ) { echo '

 

'; } else { if( count($error) == 0 ) echo '

 

» YOURS Administration Page

'; } ?>