Psst.. new poll here.
Psst.. new forums here.
Microsoft is blocking us again (TY IP Reputation!) so just use oauth login instead. :)
Paste
Pasted as PHP by BiG_NoBoDy ( 17 years ago )
<?php
function opendb() {
$mysqlas = mysql_connect(DBHOST, DBUSER, DBPASS);
mysql_select_db(DBNAME, $mysqlas);
if (!$mysqlas) {
die("Could not connect: " . mysql_error()); } //end if
} //end opendb()
function closedb() { mysql_close($mysqlas); }
DEFINE ("DBHOST", "127.0.0.1");
DEFINE ("DBNAME", "album");
DEFINE ("DBUSER", "album");
DEFINE ("DBPASS", "album123");
opendb();
closedb();
// Define script constants
DEFINE("IMAGE_BASE", "photos/");
DEFINE("THUMB_BASE", "thumbs/");
DEFINE("MAX_WIDTH", 100);
DEFINE("MAX_HEIGHT", 100);
DEFINE("RESIZE_WIDTH", 480);
DEFINE("RESIZE_HEIGHT", 640);
?>
Revise this Paste
Parent: 12055