front page
This commit is contained in:
		| @@ -16,8 +16,8 @@ function home_init(&$a) { | ||||
|  | ||||
| if(! function_exists('home_content')) { | ||||
| function home_content(&$a) { | ||||
|  | ||||
| 	$a->page['footer'] .= "<div class=\"powered\" >Powered by <a href=\"http://mistpark.com\" name=\"Mistpark\" >Mistpark</a></div>"; | ||||
| 	$a->page['header'] .= '<div id="logo">mistpark</div>'; | ||||
| 	$a->page['footer'] .= "<div class=\"powered\" >Powered by <a href=\"http://mistpark.com\" name=\"mistpark\" >mistpark</a></div>"; | ||||
| 	$o .= '<h1>Welcome' . ((x($a->config,'sitename')) ? " to {$a->config['sitename']}" : "" ) . '</h1>'; | ||||
| 	$o .= login(($a->config['register_policy'] == REGISTER_CLOSED) ? 0 : 1); | ||||
| 	return $o; | ||||
|   | ||||
							
								
								
									
										85
									
								
								mod/mail.php
									
									
									
									
									
								
							
							
						
						
									
										85
									
								
								mod/mail.php
									
									
									
									
									
								
							| @@ -1,85 +0,0 @@ | ||||
| <?php | ||||
|  | ||||
|  | ||||
| function mail_post(&$a) { | ||||
|  | ||||
| 	// handles mail created by me, or mail posted to my profile page. | ||||
| 	// If remote we must have a DFRN-url. | ||||
|  | ||||
| 	if((x($_POST,'dfrn_url')) && (strlen($_POST['dfrn_url']))) { | ||||
| 		// get post params | ||||
| 		$remote = true; | ||||
| 		 | ||||
| 		// check blacklist | ||||
|  | ||||
|  | ||||
| 		// scrape url | ||||
|  | ||||
|  | ||||
|  | ||||
| 		// sanitise | ||||
|  | ||||
| 		// store | ||||
|  | ||||
|  | ||||
| 		// notify | ||||
|  | ||||
|  | ||||
| 	} | ||||
|  | ||||
| 	if(local_user()) { | ||||
|  | ||||
|  | ||||
| 		// get data | ||||
|  | ||||
|  | ||||
| 		// sanitise | ||||
|  | ||||
|  | ||||
| 		// store | ||||
|  | ||||
|  | ||||
| 		// notify | ||||
|  | ||||
|  | ||||
|  | ||||
|  | ||||
| 	} | ||||
| 	 | ||||
|  | ||||
|  | ||||
|  | ||||
|  | ||||
|  | ||||
|  | ||||
|  | ||||
|  | ||||
| } | ||||
|  | ||||
|  | ||||
| function mail_content(&$a) { | ||||
|  | ||||
| 	// remot mail | ||||
|  | ||||
|  | ||||
| 	// list mail | ||||
|  | ||||
|  | ||||
|  | ||||
|  | ||||
|  | ||||
| 	// read message | ||||
|  | ||||
|  | ||||
|  | ||||
|  | ||||
| 	// reply | ||||
|  | ||||
|  | ||||
|  | ||||
|  | ||||
| 	// new mail | ||||
|  | ||||
|  | ||||
|  | ||||
| } | ||||
| @@ -8,13 +8,13 @@ function ping_init(&$a) { | ||||
| 		xml_status(0); | ||||
|  | ||||
| 	$r = q("SELECT COUNT(*) AS `total` FROM `item`  | ||||
| 		WHERE `unseen` = 1 AND `uid` = %d", | ||||
| 		WHERE `unseen` = 1 AND `visible` = 1 AND `deleted` = 0 AND `uid` = %d", | ||||
| 		intval($_SESSION['uid']) | ||||
| 	); | ||||
| 	$network = $r[0]['total']; | ||||
|  | ||||
| 	$r = q("SELECT COUNT(*) AS `total` FROM `item`  | ||||
| 		WHERE `unseen` = 1 AND `uid` = %d AND `type` != 'remote' ", | ||||
| 		WHERE `unseen` = 1 AND `visible` = 1 AND `deleted` = 0 AND `uid` = %d AND `type` != 'remote' ", | ||||
| 		intval($_SESSION['uid']) | ||||
| 	); | ||||
| 	$home = $r[0]['total']; | ||||
|   | ||||
| @@ -35,7 +35,7 @@ function wall_upload_post(&$a) { | ||||
| 	$str_image = $ph->imageString(); | ||||
| 	$smallest = 0; | ||||
|  | ||||
| 	$r = q("INSERT INTO `photo` ( `uid`, `resource-id`, `created`, `edited`, `filename`,  | ||||
| 	$r = q("INSERT INTO `photo` ( `uid`, `resource-id`, `created`, `edited`, `filename`, `album`, | ||||
| 		`height`, `width`, `data`, `scale` ) | ||||
| 		VALUES ( %d, '%s', '%s', '%s', '%s', %d, %d, '%s', 0 )", | ||||
| 		intval($_SESSION['uid']), | ||||
| @@ -43,6 +43,7 @@ function wall_upload_post(&$a) { | ||||
| 		datetime_convert(), | ||||
| 		datetime_convert(), | ||||
| 		dbesc(basename($filename)), | ||||
| 		dbesc( t('Wall Photos')), | ||||
| 		intval($height), | ||||
| 		intval($width), | ||||
| 		dbesc($str_image)); | ||||
|   | ||||
| @@ -1,6 +1,6 @@ | ||||
|  | ||||
| a, a:visited { | ||||
| 	color: #4444FF; | ||||
| 	color: #8888FF; | ||||
| 	text-decoration: none; | ||||
| } | ||||
|  | ||||
| @@ -28,6 +28,13 @@ img.photo { | ||||
| 	background: #FFFFFF; | ||||
| } | ||||
|  | ||||
| #logo { | ||||
| 	font-size: 300%; | ||||
| 	color: #A8A8A8; | ||||
| 	font-weight: bold; | ||||
| 	margin-left: 280px; | ||||
| } | ||||
|  | ||||
| aside { | ||||
| 	position: absolute; | ||||
| 	left: 0px; | ||||
| @@ -81,6 +88,13 @@ footer { | ||||
| 	border: 1px solid #FF8888; | ||||
| 	background-color: #FFEEEE; | ||||
| 	padding: 10px; | ||||
| 	-moz-box-shadow: 5px 5px 5px #888888; | ||||
| 	-webkit-box-shadow: 5px 5px 5px #888888; | ||||
| 	box-shadow: 5px 5px 5px #888888; | ||||
| 	-ms-filter: "progid:DXImageTransform.Microsoft.Shadow(Strength=5, Direction=135, Color='#888888')"; | ||||
| 	filter: progid:DXImageTransform.Microsoft.Shadow(Strength=5, Direction=135, Color='#888888'); | ||||
|  | ||||
|  | ||||
| } | ||||
| .nav-link { | ||||
| 	float: right; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user