cURL is not installed. This server won\'t be able to use the remote API'; // Is YOURLS already installed ? if ( yourls_is_installed() ) { $error[] = 'YOURLS already installed.'; // check if .htaccess exists, recreate otherwise. No error checking. if( !file_exists( YOURLS_ABSPATH.'/.htaccess' ) ) { yourls_create_htaccess(); } } // 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 { $warning[] = 'Could not write file .htaccess in YOURLS root directory. You will have to do it manually. See how.'; } // 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', 'Install YOURLS' ); ?>

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 '

 

» YOURLS Administration Page

'; } ?>