Example #1
0
<?php

if (ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) {
    header("HTTP/1.1 404 Not Found");
    exit;
}
ob_start();
/*
echo '<div style="text-align:center;"><!-- Histats.com  START  -->
<script  type="text/javascript" >
var s_sid = 508946; var st_dominio = 4; 
var cimg = 30; var cwi =130; var che =80;
</script>
<script  type="text/javascript" language="javascript" src="http://s10.histats.com/js9.js"></script>
<noscript><p>
<img  src="http://s4.histats.com/stats/0.gif?508946&1" alt="cool hit counter" /></p>
</noscript>
<!-- Histats.com  END  --></div>';
*/
echo "<table><tr><td>";
include "mod/statistik/counter.php";
include "mod/statistik/online.php";
include "mod/statistik/hits.php";
include "mod/statistik/useronline.php";
echo "\n<img src=\"{url}/images/8.gif\" border=\"0\" alt=\"\" /> Visitors :<b>{$theCount}</b> Users<br />\n<img src=\"{url}/images/9.gif\" border=\"0\" alt=\"\" /> Hits : <b>{$hits}</b> hits<br />\n<img src=\"{url}/images/10.gif\" border=\"0\" alt=\"\" /> Month : <b>" . month() . "</b> Users<br />\n<img src=\"{url}/images/8.gif\" border=\"0\" alt=\"\" /> Today : <b>" . day() . "</b> Users<br />\n<img src=\"{url}/images/9.gif\" border=\"0\" alt=\"\" /> Online : <b>" . useronline() . "</b> Member\n</td></tr></table><br />";
$out = ob_get_contents();
ob_end_clean();
Example #2
0
 }
 $tmp1 = imagecreatetruecolor($tw, $th);
 imagecopyresampled($tmp1, $src1, 0, 0, 0, 0, $tw, $th, $cw, $ch);
 imageconvolution($tmp1, array( // Sharpen image
 array(-1, -1, -1),
 array(-1, 16, -1),
 array(-1, -1, -1)
 ), 8, 0);
 imagejpeg($tmp1, $save2);
 imagedestroy($tmp1);
 imagedestroy($src1);
 //echo "<img src='pics/cover/$user/$user.jpg'  class='preview'>";
 //echo "Uploaded Successfully...!!";
 }
 */
 $upload_dir = "pics/sharepix/" . useronline($user);
 $upld = $upload_dir . "/thumbnail";
 if (!is_dir($upload_dir)) {
     mkdir($upload_dir, 0777);
     chmod($upload_dir, 0777);
 }
 if (!is_dir($upld)) {
     mkdir($upld, 0777);
     chmod($upld, 0777);
 }
 $saveto = $upload_dir . "/" . $picname;
 $saveto_thumb = $upld . "/thumb_" . $picname;
 //....._thumb
 move_uploaded_file($_FILES['sharepix']['tmp_name'], $saveto);
 //move_uploaded_file($_FILES['image']['tmp_name'], $saveto_thumb);
 copy($saveto, $saveto_thumb);
Example #3
0
							<form name="retrieve" action="" method="post">
							<fieldset>
								Username: <input type="text" name="search_string"/>
								<select name="order_by">
									<option>Asc</option>
									<option>Desc</option>
								</select>
								<input type="submit" value="Filter" />
							</fieldset>
							</form>
						</div>
					<table class="tabular" width="100%">
						<form name="accounts" action="" method="post">
							<tr><th>Name</th><th>Status</th><th>Location</th><th>Del</th><th>Check</th></tr>';
while ($account = $sqlr->fetch_array($query)) {
    $output .= '<tr class="tabular_odd"><td><a href="view_users.php?id=' . $account['id'] . '">' . $account['username'] . '</a></td><td>' . useronline($account['username']) . '</td><td>' . userlocation($account['username']) . '</td><td><a href="delete_user.php?id=' . $account['id'] . '"><img src="themes/' . $theme . '/images/delete-icon.png" alt="Delete"/></a></td><td><input type="checkbox" name="del" value="accounts[' . $account['username'] . ']"/></td></tr>';
}
$output .= '</table>
					<div id="accounts_bottom"><input type="button" value="Delete"></div>
					</form>
					</div>
				</div>
			</div>
			<div id="clear">
			</div>
		</div>';
require_once "footer.php";
echo $output;
?>
	
Example #4
0
         imageconvolution($tmp, array(array(-1, -1, -1), array(-1, 16, -1), array(-1, -1, -1)), 8, 0);
         imageconvolution($tmp_thumb, array(array(-1, -1, -1), array(-1, 16, -1), array(-1, -1, -1)), 8, 0);
         imagejpeg($tmp, $saveto);
         imagejpeg($tmp_thumb, $saveto_thumb);
         //....._thumb
         imagedestroy($tmp);
         imagedestroy($tmp_thumb);
         //...._thumb
         imagedestroy($src);
         imagedestroy($src_thumb);
         //......_thumb
         //echo "<img src='pics/profile/$user/$user.jpg'  class='preview'>";
         echo "Uploaded Successfully...!!";
     }
 } elseif (isset($_FILES['cimage']['name']) || isset($_POST['cimage'])) {
     $upload_dir = "pics/cover/" . useronline($user);
     if (!is_dir($upload_dir)) {
         mkdir($upload_dir, 0777);
         chmod($upload_dir, 0777);
     }
     $save2 = $upload_dir . "/{$user}.jpg";
     move_uploaded_file($_FILES['cimage']['tmp_name'], $save2);
     $typeok = TRUE;
     switch ($_FILES['cimage']['type']) {
         case "image/gif":
             $src1 = imagecreatefromgif($save2);
             break;
         case "image/jpeg":
             // Both regular and progressive jpegs
         // Both regular and progressive jpegs
         case "image/pjpeg":