Scripts    Contact    Donations    Affiliate program    Affiliate login    Mods   


Affiliates:
Scripts:
Script downloads:


/*REPLACE WITH*/



/*FIND*/

if($row[imgname]){$image="View / $crop";}

/*BELOW THAT PUT*/

if($row[videoname]){$video="View";}

/*FIND*/



/*REPLACE WITH*/



/*FIND*/

@unlink($full_path.$images_path.$_GET[image]);
@unlink($full_path.$images_path."temp_".$_GET[image]);

/*ABOVE THAT PUT*/

@unlink($full_path.$videos_path.$_GET[video]);

/*SAVE admin.php*/
/*OPEN adminmembers.php*/
/*FIND*/

if($row[url]){$galurl="View";}

/*REPLACE WITH*/

if($row[url]){$galurl="View";}else{$galurl="View";}

/*OPEN index.php*/
/*FIND*/

elseif($_GET[cat])
{

/*ABOVE THAT PUT*/

elseif($_GET[video])
{
$video=sql_inj_num($_GET[video]);
$result=mysql_query("SELECT * FROM babeloggerv4 WHERE approved='yes' AND '".time()."'>=time AND id='$video' AND videoname!=''");
$result2=mysql_query("SELECT count(*) FROM babeloggerv4 WHERE approved='yes' AND '".time()."'>=time");
}

/*FIND*/

$temp=file_get_contents("templates/template-eachpost.html");

/*REPLACE WITH*/

if($row[videoname] AND $_GET[video])
{
$temp=file_get_contents("templates/template-eachvideo.html");
}
else
{
$temp=file_get_contents("templates/template-eachpost.html");
}

/*FIND*/

$gallery=str_replace("%outurl%","out.php?id=$row[id]",$gallery);

/*REPLACE WITH*/

if($row[videoname])
{
$gallery=str_replace("%outurl%","index.php?video=$row[id]",$gallery);
}
else
{
$gallery=str_replace("%outurl%","out.php?id=$row[id]",$gallery);
}

/*FIND*/

$gallery=str_replace("%imageurl%",$script_url.$images_path.$row[imgname],$gallery);

/*BELOW THAT PUT*/

$gallery=str_replace("%videourl%",$script_url.$videos_path.$row[videoname],$gallery);

/*SAVE index.php*/
/*OPEN comments.php*/
/*FIND*/

$temp=file_get_contents("templates/template-eachpost.html");

/*REPLACE WITH*/

if($row[videoname])
{
$temp=file_get_contents("templates/template-eachvideo.html");
}
else
{
$temp=file_get_contents("templates/template-eachpost.html");
}

/*FIND*/

$gallery=str_replace("%outurl%","out.php?id=$row[id]",$gallery);

/*REPLACE WITH*/

if($row[videoname])
{
$gallery=str_replace("%outurl%","index.php?video=$row[id]",$gallery);
}
else
{
$gallery=str_replace("%outurl%","out.php?id=$row[id]",$gallery);
}

/*FIND*/

$gallery=str_replace("%imageurl%",$script_url.$images_path.$row[imgname],$gallery);

/*BELOW THAT PUT*/

$gallery=str_replace("%videourl%",$script_url.$videos_path.$row[videoname],$gallery);

/*SAVE comments.php*/
/*OPEN msgs.php*/
/*FIND*/

elseif($_GET[msg]=="wrongimgfiletype"){$msg="The image file type that you tried to upload is not allowed.
Click here to go back and use a different image.";}

/*BELOW THAT PUT*/

elseif($_GET[msg]=="wrongvideofiletype"){$msg="The video file type that you tried to upload is not allowed.
Click here to go back and use a different video.";}
elseif($_GET[msg]=="erroruploadingvideo"){$msg="An error occured while uploading your video.
Click here to go back and try again.";}
elseif($_GET[msg]=="errorvideosize"){$msg="The video you are uploading does not meet the requirements.
Click here to go back and upload another video.";}
elseif($_GET[msg]=="videosubmitted"){$msg="Thank you for submitting a video.
Click here to go back and send another.";}

/*SAVE msgs.php*/
/*SAVE THE FOLLOWING INTO YOUR templates FOLDER AS template-eachvideo.html*/













/*
Create a 'videos' folder in the scripts directory and CHMOD it to 777
Add a 'videoname' field to the babeloggerv4 table, or paste the following into phpMyAdmin:
ALTER TABLE `babeloggerv4` ADD `videoname` VARCHAR( 255 ) NOT NULL AFTER `imgname`;

Make sure your sites (server) settings can handle uploading large files
You will (unfortunetely) need to create and upload a thumb for the videos yourself
Video hotlinking security is not covered here but you should disable linking to the files, hosting videos is going to use a lot of bandwidth!
*/

/*OPEN mysql.php*/
/*FIND*/

$script_url=$row[script_url];

/*ABOVE THAT PUT*/

$max_video_filesize="10000000"; //in bytes, 10000000 = 10MB) of submitted images
$videos_path="/videos/";

/*SAVE mysql.php*/
/*OPEN template-submit.html*/
/*FIND*/

URL:

/*REPLACE WITH*/

URL (Leave blank for videos):

/*FIND*/

Image:

/*REPLACE WITH*/

Image/Video:

/*SAVE template-submit.html*/
/*OPEN submit.php*/
/*FIND*/

if(strstr($submit,"%image%")){$submit=str_replace("%image%"," Image URL (JPEG and JPG only, $max_image_filesize bytes max):

OR
Upload Image (JPEG and JPG only, $max_image_filesize bytes max):
",$submit);}else{$submit=$submit;}

/*REPLACE WITH*/

if(strstr($submit,"%image%")){$submit=str_replace("%image%"," Image URL (JPEG and JPG only, $max_image_filesize bytes max):

OR
Upload Image (JPEG and JPG only, $max_image_filesize bytes max):

OR
Upload Video (WMV and AVI only, 10MB filesize maximum):
",$submit);}else{$submit=$submit;}

/*FIND*/

if(strstr($temp,"%image%") && (!$_POST[imageurl] && !$_FILES['uploadimg']['name'])){die(header("Location: $script_url/msgs.php?msg=submiterror"));}elseif(strstr($temp,"%image%")){$crop_image=true;}

/*REPLACE WITH*/

if(strstr($temp,"%image%") && (!$_POST[imageurl] && !$_FILES['uploadimg']['name'] && !$_FILES['uploadvideo']['name'])){die(header("Location: $script_url/msgs.php?msg=submiterror"));}elseif(strstr($temp,"%image%")){$crop_image=true;}

/*FIND*/

if($approved!="yes" AND $ratio_system=="yes")
{

/*ABOVE THAT PUT*/

if($_POST[image]==3 && $_FILES['uploadvideo']['name'])
{
$temp=strtolower($title);
$temp=str_replace(" ", "_", $temp);
for($i=0;$i {
if(preg_match('([0-9]|[a-z]|_)', $temp[$i]))
{
$rnd.=$temp[$i];
}
}
$rnd=$rnd."_".rand(0,1000000);
$videoname=$_FILES['uploadvideo']['name'];
$imgname=$rnd.".jpg";
if(!preg_match("/(.+).(wmv|avi)$/i",$videoname,$matches)){die(header("Location: $script_url/msgs.php?msg=wrongvideofiletype"));}
$extension=$matches[2];
$rnd=$rnd.".$extension";
copy($_FILES['uploadvideo']['tmp_name'],$full_path.$videos_path.$rnd) or die(header("Location: $script_url/msgs.php?msg=erroruploadingvideo"));
$filesize=filesize($full_path.$videos_path.$rnd);
if($filesize>$max_video_filesize){unlink($full_path.$videos_path.$rnd);die(header("Location: $script_url/msgs.php?msg=errorvideosize"));}
mysql_query("INSERT INTO babeloggerv4 (time,title,description,url,category,approved,poster,imgname,videoname,p_ip) VALUES ('".time()."','$title','$description','$url','$category','$crop','$poster','$imgname','$rnd','$ip')");
die(header("Location: $script_url/msgs.php?msg=videosubmitted"));
}

/*SAVE submit.php*/
/*OPEN admin.php*/
/*FIND*/

Image Image/Video $image $image
$video

%title% - %date% - AIM This Gallery - Link To This Gallery

ID=MediaPlayer
Name="mp_426289569"
Width="320"
Height="311"
Src="%videourl%"
AutoSize="1"
AutoStart="0"
ClickToPlay="1"
DisplaySize="0"
EnableContextMenu="1"
EnableFullScreenControls="1"
EnableTracker="1"
TransparentatStart="0"
Mute="0"
PlayCount="1"
ShowControls="1"
ShowAudioControls="1"
ShowDisplay="0"
ShowGotoBar="0"
ShowPositionControls="1"
ShowStatusBar="1"
ShowTracker="1">


Download

%description%

%url% - Clicks: %clicks% - Category: %category%

Submitted By: %poster% - Rating: %rating% %ratebox% - %comments% comment(s)