<commit_before><?php

// $Header: /cvsroot/tikiwiki/tiki/tiki-mypages.php,v 1.24 2007-09-27 13:27:25 niclone Exp $

// Copyright (c) 2002-2007, <NAME>, <NAME>, <NAME>, et. al.
// All Rights Reserved. See copyright.txt for details and a complete list of authors.
// Licensed under the GNU LESSER GENERAL PUBLIC LICENSE. See license.txt for details.

require_once ('tiki-setup.php');
require_once ('lib/mypage/mypagelib.php');
require_once ('lib/ajax/ajaxlib.php');

if (strlen($user) <= 0) {
	$id_users=0;
} else {
	$id_users=$userlib->get_user_id($user);
}
<commit_msg>[FIX] mypage/mypages: show a "not logged" message to anonymous who want to list mypages<commit_after><?php

// $Header: /cvsroot/tikiwiki/tiki/tiki-mypages.php,v 1.25 2007-10-01 07:54:43 niclone Exp $

// Copyright (c) 2002-2007, <NAME>, <NAME>, <NAME>, et. al.
// All Rights Reserved. See copyright.txt for details and a complete list of authors.
// Licensed under the GNU LESSER GENERAL PUBLIC LICENSE. See license.txt for details.

require_once ('tiki-setup.php');
require_once ('lib/mypage/mypagelib.php');
require_once ('lib/ajax/ajaxlib.php');

/*
 * TODO: one day, it may be possible to list anonymous mypages. So a tiki permission for anonymous would be welcome here
 */
if (!$user) {
	$smarty->assign('msg', tra("You are not logged in"));

	$smarty->display("error.tpl");
	die();
}

if (strlen($user) <= 0) {
	$id_users=0;
} else {
	$id_users=$userlib->get_user_id($user);
}

{'fraction_non_alphanumeric': 0.16173434273916035, 'fraction_numerical': 0.03716448726772195, 'mean_word_length': 4.345588235294118, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 13, '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': '3672153', 'n_tokens_mistral': 569, 'n_tokens_neox': 519, 'n_words': 150}