<commit_before><?php
namespace Zotlabs\Module;

/*
 * @file Profile_photo.php
 * @brief Module-file with functions for handling of profile-photos
 *
 */


require_once('include/photo/photo_driver.php');
require_once('include/photos.php');
require_once('include/channel.php');

/* @brief Function for sync'ing  permissions of profile-photos and their profile
*
*  @param $profileid The id number of the profile to sync
*  @return void
*/


class Profile_photo extends \Zotlabs\Web\Controller {

	
	/* @brief Initalize the profile-photo edit view
	 *
	 * @return void
	 *
	 */
	
	function init() {
	
		if(! local_channel()) {
			return;
		}
	
		$channel = \App::get_channel();
		profile_load($channel['channel_address']);
	
	}
	
	/* @brief Evaluate posted values
	 *
	 * @param $a Current application
	 * @return void
	 *
	 */
	
	function post() {
	
		if(! local_channel()) {
			return;
		}
		
		check_form_security_token_redirectOnErr('/profile_photo', 'profile_photo');
	        
		if((array_key_exists('cropfinal',$_POST)) && (intval($_POST['cropfinal']) == 1)) {
	
			logger('crop: ' . print_r($_POST,true));<commit_msg>add units to css<commit_after><?php
namespace Zotlabs\Module;

/*
 * @file Profile_photo.php
 * @brief Module-file with functions for handling of profile-photos
 *
 */


require_once('include/photo/photo_driver.php');
require_once('include/photos.php');
require_once('include/channel.php');

/* @brief Function for sync'ing  permissions of profile-photos and their profile
*
*  @param $profileid The id number of the profile to sync
*  @return void
*/


class Profile_photo extends \Zotlabs\Web\Controller {

	
	/* @brief Initalize the profile-photo edit view
	 *
	 * @return void
	 *
	 */
	
	function init() {
	
		if(! local_channel()) {
			return;
		}
	
		$channel = \App::get_channel();
		profile_load($channel['channel_address']);
	
	}
	
	/* @brief Evaluate posted values
	 *
	 * @param $a Current application
	 * @return void
	 *
	 */
	
	function post() {
	
		if(! local_channel()) {
			return;
		}
		
		check_form_security_token_redirectOnErr('/profile_photo', 'profile_photo');
	        
		if((array_key_exists('cropfinal',$_POST)) && (intval($_POST['cropfinal']) == 1)) {
	
			// logger('crop: ' . print_r($_POST,true));
{'fraction_non_alphanumeric': 0.14577777777777778, 'fraction_numerical': 0.0008888888888888889, 'mean_word_length': 3.738947368421053, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6590527', 'n_tokens_mistral': 803, 'n_tokens_neox': 712, 'n_words': 162}