}
    public function subtract_following($tfollowing)
    {
        $tfollowing--;
        return $tfollowing;
    }
    public function update_following($tfollowing, $mno)
    {
        update1('fs_members', 'tfollowing', $tfollowing, array('mno', $mno));
    }
    public function update_follower($tfollower, $mno)
    {
        update1('fs_members', 'tfollower', $tfollower, array('mno', $mno));
    }
}
$ac = new account_settings();
if ($account_seettings_tab == 'account-settings-brand') {
    $brand_selected = $mc->retreive_specific_user_brand_selected($mno, 'order by bmsno desc');
    $all_brands = $mc->get_all_brand(1000);
    $ac->account_settings_brand_next_page($spnp, $mc, $brand_selected, $all_brands);
} else {
    if ($account_seettings_tab == 'account-settings-suggested-member-follow') {
        $ac->account_settings_suggested_member_follow($mno, $mno1, $action, new myclass());
    } else {
        if ($account_seettings_tab == 'account-settings-suggested-member') {
            $members = $mc->get_all_user(900);
            $ac->account_settings_suggested_member_next_prev($spnp, $mno, $members, $mc);
        } else {
            if ($account_seettings_tab == 'account-invitefriends-fb-friends-on-fs') {
                $ac->print_fb_freinds_on_fs($spnp, $mc, $mno);
            } else {
Example #2
0
            //if update the username
            if ($rn == 'username' || $rn == 'email') {
                update1('fs_member_accounts', $rn, $rv, array('mno', $mno));
            } else {
                update1('fs_members', $rn, $rv, array('mno', $mno));
            }
        }
        // If name is being updated then notify all the followers
        if ($isName == TRUE) {
            $_SESSION['noti_table_name'] = TRUE;
            $_SESSION['noti_type'] = 'change-name';
            $_SESSION['fullName'] = $fullName;
            $mc->send_notification_to_follower($mno);
            print 'send notification to follwers change name';
        } else {
            print 'failed to send notification maybe this is not changing name';
        }
        // add or updated keyword
        $mc->fs_search(array('type' => 'add-or-updated-keyword', 'table_name' => 'fs_members', 'table_id' => $mno));
    }
}
class account_settings_codes
{
    public function __construct()
    {
    }
}
$ac = new account_settings();
if ($account_setting_tab == 'profile') {
    $ac->account_save_profile($profile_row_name, $profile_row_name_val, $mno);
}