Sngine - The Ultimate PHP Social Network Platform Script

Sngine - The Ultimate PHP Social Network Platform Script V3.13 Patch 5 - Nulled

No permission to download

kais30

New member
May 22, 2022
0
0
0
I have a question about uploading pictures. When I upload a profile picture, then it opens to the crop and save box, i can not crop the picture at all, is it because the picture is already cropped to size or something else is wrong. Also when i click the SAVE button , the box still remains in the screen and does not disappear until i click the X at the top right out of it… is this the way it is made. Is there anyone who can help me out?
 

kais30

New member
May 22, 2022
0
0
0
Im Sorry, to double Post, but I have this issue,.. which breaks my head,.. I search and search...

Does anybody know,... an alternative Solution for the Issue,.. that the "Save Button" does not redirect,..
Or how to solve,.. it...

Its enough for me,.. if the button changes,.. after uploading, to,.. "Already Uploaded" or redirect the site after success,. to profil site,..

does anybody know,.. in which file the profil picture upload is written?
Does anybody have the same issue,. or is it maybe something, with permission or server??
Cropping doesn't work, that's sad enough

Please help me,.. Thank you very much
 

Attachments

  • Bildschirmfoto 2021-10-05 um 15.49.14.png
    Bildschirmfoto 2021-10-05 um 15.49.14.png
    480.5 KB · Views: 14
  • Bildschirmfoto 2021-10-05 um 15.49.41.png
    Bildschirmfoto 2021-10-05 um 15.49.41.png
    485.3 KB · Views: 14

XZNT

Active member
Jul 17, 2020
279
106
43
yruz.one
Im Sorry, to double Post, but I have this issue,.. which breaks my head,.. I search and search...

Does anybody know,... an alternative Solution for the Issue,.. that the "Save Button" does not redirect,..
Or how to solve,.. it...

Its enough for me,.. if the button changes,.. after uploading, to,.. "Already Uploaded" or redirect the site after success,. to profil site,..

does anybody know,.. in which file the profil picture upload is written?
Does anybody have the same issue,. or is it maybe something, with permission or server??
Cropping doesn't work, that's sad enough

Please help me,.. Thank you very much
It seems that the crop indicator is sitting in the same pixel (no secondary dot to crop)
 
  • Love
Reactions: ManuelAlex

kais30

New member
May 22, 2022
0
0
0
It seems that the crop indicator is sitting in the same pixel (no secondary dot to crop)
hey first of all, thank you soo much for your answer :)
How can I solve the issue, in worst case, I do not need the cropper,.. it will be fine,...

I will that the customer, gets redirected, to his profile page.... or gets a notification "your profil pic was successfully saved"

because I click on save, and he save it, but he don't redirect the customer to the profile page or says okay, its saved...

I found the code, here

<?php
/**
* ajax -> users -> image crop
*
* @package Sngine
* @author Zamblek
*/

// fetch bootstrap
require('../../../bootstrap.php');

// check AJAX Request
is_ajax();

// user access
user_access(true);

// check demo account
if($user->_data['user_demo']) {
modal("ERROR", __("Demo Restriction"), __("You can't do this with demo account"));
}

// validate inputs
if(!isset($_POST['id']) || !is_numeric($_POST['id'])) {
_error(403);
}
if(!isset($_POST['x']) || !is_numeric($_POST['x'])) {
_error(403);
}
if(!isset($_POST['y']) || !is_numeric($_POST['y'])) {
_error(403);
}
if(!isset($_POST['height']) || !is_numeric($_POST['height'])) {
_error(403);
}
if(!isset($_POST['width']) || !is_numeric($_POST['width'])) {
_error(403);
}

try {

switch ($_POST['handle']) {
case 'user':
// crop user profile picture
/* get full picture */
$get_picture = $db->query(sprintf("SELECT posts_photos.source FROM users INNER JOIN posts_photos ON users.user_picture_id = posts_photos.photo_id WHERE users.user_id = %s", secure($user->_data['user_id'], 'int') )) or _error("SQL_ERROR_THROWEN");
if($get_picture->num_rows == 0) {
_error(403);
}
$picture = $get_picture->fetch_assoc();
$full_picture = $picture['source'];
/* prepare update query */
$_POST['id'] = $user->_data['user_id'];
$table_name = "users";
$table_picture_field = "user_picture";
$table_id_field = "user_id";
break;

case 'page':
// crop page profile picture
/* check the page & get full picture */
$get_page = $db->query(sprintf("SELECT posts_photos.source FROM pages INNER JOIN posts_photos ON pages.page_picture_id = posts_photos.photo_id WHERE pages.page_id = %s", secure($_POST['id'], 'int') )) or _error("SQL_ERROR_THROWEN");
if($get_page->num_rows == 0) {
_error(403);
}
$page = $get_page->fetch_assoc();
/* check if the user is the page admin */
if(!$user->check_page_adminship($user->_data['user_id'], $_POST['id'])) {
_error(403);
}
$full_picture = $page['source'];
/* prepare update query */
$table_name = "pages";
$table_picture_field = "page_picture";
$table_id_field = "page_id";
break;

case 'group':
// crop group profile picture
/* check the group & get full picture */
$get_group = $db->query(sprintf("SELECT posts_photos.source FROM `groups` INNER JOIN posts_photos ON `groups`.group_picture_id = posts_photos.photo_id WHERE `groups`.group_id = %s", secure($_POST['id'], 'int') )) or _error("SQL_ERROR_THROWEN");
if($get_group->num_rows == 0) {
_error(403);
}
$group = $get_group->fetch_assoc();
/* check if the user is the group admin */
if(!$user->check_group_adminship($user->_data['user_id'], $_POST['id'])) {
_error(403);
}
$full_picture = $group['source'];
/* prepare update query */
$table_name = "groups";
$table_picture_field = "group_picture";
$table_id_field = "group_id";
break;

default:
_error(400);
break;
}

// save profile picture
if($system['s3_enabled'] || $system['digitalocean_enabled'] || $system['ftp_enabled']) {
$image_url = $system['system_uploads'].'/'.$full_picture;
} else {
$image_url = ABSPATH.$system['uploads_directory'].'/'.$full_picture;
}
$image_name = save_picture_from_url($image_url, true);

// update profile picture
$db->query(sprintf("UPDATE %s SET %s = %s WHERE %s = %s", $table_name, $table_picture_field, secure($image_name), $table_id_field, secure($_POST['id'], 'int') )) or _error("SQL_ERROR_THROWEN");

// return & exit
return_json();

} catch (Exception $e) {
modal("ERROR", __("Error"), $e->getMessage());
}

?>
 

kais30

New member
May 22, 2022
0
0
0
so for now I suppose, that the amazon s3 don't support, cropping pictures,.. is that possible,.. tha, this is because of amazon s3?

I hope, anyone can help me out,..work the whole day on a solution
 

XZNT

Active member
Jul 17, 2020
279
106
43
yruz.one
so for now I suppose, that the amazon s3 don't support, cropping pictures,.. is that possible,.. tha, this is because of amazon s3?

I hope, anyone can help me out,..work the whole day on a solution
Sngine does this : Uploads a pic, and when you crop it then it uploads the cropped pic, so it registers as a brand new file Aws has nothing to do woth cropping, it serves as CDN for the pics, cropping is on your end
 

anonbrax

Member
Aug 17, 2019
59
23
8
Save guys, all right with you?

There is bug in script when using digital ocean storage, the problem occurs when uploading videos, the other types of files seem to work fine.

The problems that occur are as follows:

The video is uploaded to Space at Digital Ocean, but instead of it being stored in something like /uploads/videos/2021/10, it is stored in /uploads;

Also there is a problem with renaming the file, when checking/copying the direct link of the video that can be copied through the player, the name and path to the video look correct, something like https://namespace.sfo3.digitaloceanspaces.com/uploads /videos/2021/10/upload_695f8e0faa882be9996094b991d02827.mp4, but the file does not exist in this path, only in /uploads/originalname.mp4

NOTE: if we move the file to the correct location, and rename it with the name that is in the player's link, it works normal in the player.

Could someone good at PHP try to help find a solution for this?

I can even provide a Space on Digital Ocean for testing.

Hug brothers!
 

anonbrax

Member
Aug 17, 2019
59
23
8
Save guys, all right with you?

There is bug in script when using digital ocean storage, the problem occurs when uploading videos, the other types of files seem to work fine.

The problems that occur are as follows:

The video is uploaded to Space at Digital Ocean, but instead of it being stored in something like /uploads/videos/2021/10, it is stored in /uploads;

Also there is a problem with renaming the file, when checking/copying the direct link of the video that can be copied through the player, the name and path to the video look correct, something like https://namespace.sfo3.digitaloceanspaces.com/uploads /videos/2021/10/upload_695f8e0faa882be9996094b991d02827.mp4, but the file does not exist in this path, only in /uploads/originalname.mp4

NOTE: if we move the file to the correct location, and rename it with the name that is in the player's link, it works normal in the player.

Could someone good at PHP try to help find a solution for this?

I can even provide a Space on Digital Ocean for testing.

Hug brothers!
Proxybunker Tomz White Devil NullMaster
and others brothers...

with your experience in PHP, do you think it is something possible to solve without the need to wait for an update from the author?

If you have any idea of the path at least, I'll be very grateful if you can tell me, I'll rack my brain to try to solve it myself, but I wanted at least a light, a path or something.

Thank you brothers!
 
Last edited:

kais30

New member
May 22, 2022
0
0
0
Sngine does this : Uploads a pic, and when you crop it then it uploads the cropped pic, so it registers as a brand new file Aws has nothing to do woth cropping, it serves as CDN for the pics, cropping is on your end
It was AWS, I solve this problem, I forgot to fill out the CORS Settings, in AWS
 

sibling

Member
Mar 7, 2021
29
28
18
anyone know why the database comes with an already created invitation to a gmail address? (table: user-invitations) Its in the untouched version, too. Did the developer put it there to get an automated invitation after installation,maybe, or to keep track of who is using this script? Creepy, isnt it.
 

anonbrax

Member
Aug 17, 2019
59
23
8
@Tomz
Can you tell me which file should be modified to get valid nulled?

I need to test version 3.1, because version 3.2.1 has a bug in the storage system through Digital Ocean Spaces, I know that version 3.0 doesn't have this bug, and that's why I want to test 3.1 to see if it has or not bug.
 

kais30

New member
May 22, 2022
0
0
0
Can anyone help me, to share with telegram or to signal,... I would make the buttons...or explain me how to do?
 

About us

  • Our community has been around for many years and pride ourselves on offering unbiased, critical discussion among people of all different backgrounds. We are working every day to make sure our community is one of the best.

Quick Navigation

User Menu