Whinging whining stupid fucks.
This commit is contained in:
@@ -38,7 +38,7 @@ function profile_photo_post(&$a) {
|
||||
$is_default_profile = 1;
|
||||
|
||||
if($_REQUEST['profile']) {
|
||||
$r = q("select id, `is_default` from profile where id = %d and uid = %d limit 1",
|
||||
$r = q("select id, is_default from profile where id = %d and uid = %d limit 1",
|
||||
intval($_REQUEST['profile']),
|
||||
intval(local_user())
|
||||
);
|
||||
@@ -110,7 +110,7 @@ function profile_photo_post(&$a) {
|
||||
// If setting for the default profile, unset the profile photo flag from any other photos I own
|
||||
|
||||
if($is_default_profile) {
|
||||
$r = q("UPDATE `photo` SET `profile` = 0 WHERE `profile` = 1 AND `resource_id` != '%s' AND `uid` = %d",
|
||||
$r = q("UPDATE photo SET profile = 0 WHERE profile = 1 AND resource_id != '%s' AND `uid` = %d",
|
||||
dbesc($base_image['resource_id']),
|
||||
intval(local_user())
|
||||
);
|
||||
@@ -137,11 +137,9 @@ function profile_photo_post(&$a) {
|
||||
);
|
||||
|
||||
info( t('Shift-reload the page or clear browser cache if the new photo does not display immediately.') . EOL);
|
||||
// Update global directory in background
|
||||
$url = $a->get_baseurl() . '/channel/' . $a->user['nickname'];
|
||||
if($url && strlen(get_config('system','directory_submit_url')))
|
||||
proc_run('php',"include/directory.php","$url");
|
||||
|
||||
// Update directory in background
|
||||
proc_run('php',"include/directory.php",$channel['channel_id']);
|
||||
}
|
||||
else
|
||||
notice( t('Unable to process image') . EOL);
|
||||
@@ -257,11 +255,11 @@ function profile_photo_content(&$a) {
|
||||
// go ahead as if we have just uploaded a new photo to crop
|
||||
profile_photo_crop_ui_head($a, $ph);
|
||||
}
|
||||
dbg(1);
|
||||
|
||||
$profiles = q("select id, profile_name as name, is_default as pdefault from profile where uid = %d",
|
||||
intval(local_user())
|
||||
);
|
||||
dbg(0);
|
||||
|
||||
if(! x($a->data,'imagecrop')) {
|
||||
|
||||
$tpl = get_markup_template('profile_photo.tpl');
|
||||
|
||||
@@ -335,8 +335,6 @@ function settings_post(&$a) {
|
||||
|
||||
$allow_location = (((x($_POST,'allow_location')) && (intval($_POST['allow_location']) == 1)) ? 1: 0);
|
||||
$publish = (((x($_POST,'profile_in_directory')) && (intval($_POST['profile_in_directory']) == 1)) ? 1: 0);
|
||||
$net_publish = (((x($_POST,'profile_in_netdirectory')) && (intval($_POST['profile_in_netdirectory']) == 1)) ? 1: 0);
|
||||
$old_visibility = (((x($_POST,'visibility')) && (intval($_POST['visibility']) == 1)) ? 1 : 0);
|
||||
$page_flags = (((x($_POST,'page-flags')) && (intval($_POST['page-flags']))) ? intval($_POST['page-flags']) : 0);
|
||||
$blockwall = (((x($_POST,'blockwall')) && (intval($_POST['blockwall']) == 1)) ? 0: 1); // this setting is inverted!
|
||||
$blocktags = (((x($_POST,'blocktags')) && (intval($_POST['blocktags']) == 1)) ? 0: 1); // this setting is inverted!
|
||||
@@ -959,11 +957,6 @@ function settings_content(&$a) {
|
||||
|
||||
));
|
||||
|
||||
|
||||
|
||||
$invisible = ((! $profile['publish']) ? true : false);
|
||||
|
||||
|
||||
$subdir = ((strlen($a->get_path())) ? '<br />' . t('or') . ' ' . $a->get_baseurl(true) . '/channel/' . $nickname : '');
|
||||
|
||||
$tpl_addr = get_markup_template("settings_nick_set.tpl");
|
||||
@@ -1022,7 +1015,6 @@ function settings_content(&$a) {
|
||||
'$maxreq' => array('maxreq', t('Maximum Friend Requests/Day:'), intval($channel['channel_max_friend_req']) , t('May reduce spam activity')),
|
||||
'$permissions' => t('Default Post Permissions'),
|
||||
'$permdesc' => t("\x28click to open/close\x29"),
|
||||
'$visibility' => $profile['net-publish'],
|
||||
'$aclselect' => populate_acl($a->user,$celeb),
|
||||
'$suggestme' => $suggestme,
|
||||
|
||||
|
||||
Reference in New Issue
Block a user