Merge pull request #527 from fermionic/20121106-frost-updates

frost updates
This commit is contained in:
fermionic 2012-11-07 07:41:17 -08:00
commit cbbd68563b
32 changed files with 603 additions and 276 deletions

View file

@ -4,6 +4,8 @@ require_once('Photo.php');
function wall_upload_post(&$a) {
logger("wall upload: starting new upload", LOGGER_DEBUG);
if($a->argc > 1) {
if(! x($_FILES,'media')) {
$nick = $a->argv[1];
@ -160,10 +162,12 @@ function wall_upload_post(&$a) {
if ($_REQUEST['hush']!='yeah') {
/*existing code*/
if(local_user() && intval(get_pconfig(local_user(),'system','plaintext')))
if(local_user() && (intval(get_pconfig(local_user(),'system','plaintext')) || x($_REQUEST['nomce'])) ) {
echo "\n\n" . '[url=' . $a->get_baseurl() . '/photos/' . $page_owner_nick . '/image/' . $hash . '][img]' . $a->get_baseurl() . "/photo/{$hash}-{$smallest}.".$ph->getExt()."[/img][/url]\n\n";
else
}
else {
echo '<br /><br /><a href="' . $a->get_baseurl() . '/photos/' . $page_owner_nick . '/image/' . $hash . '" ><img src="' . $a->get_baseurl() . "/photo/{$hash}-{$smallest}.".$ph->getExt()."\" alt=\"$basename\" /></a><br /><br />";
}
/*existing code*/
} else {