Fix webig

ryzomclassic-develop
kaetemi 3 years ago
parent 0483474ea0
commit d08547121f
No known key found for this signature in database
GPG Key ID: 9873C4D40BB479BC

@ -34,7 +34,7 @@
<h5><td width="10%" height="30" bgcolor="#000000">To</td></h5>
<td width="90%" height="7" bgcolor="#666666" l_margin="0">
<table border="4"><tr><td>
<input type="text" name="mail_to" size="180" value="%%TO%%">
<input type="text" name="mail_to" value="%%TO%%">
</td></tr></table>
</td>
</tr>
@ -42,13 +42,13 @@
<h5><td width="10%" height="30" bgcolor="#000000"><i>uiMFSubject</i></td></h5>
<td width="90%" height="3" bgcolor="#666666" l_margin="0">
<table border="4"><tr><td>
<input type="text" name="mail_subject" size="360" value="%%SUBJECT%%">
<input type="text" name="mail_subject" value="%%SUBJECT%%">
</td></tr></table>
</td>
</tr>
<tr valign="middle">
<h5><td width="10%" height="30" bgcolor="#000000"><i>uiMFMailBody</i></td></h5>
<td width="90%" height="18" bgcolor="#666666" l_margin="0"><font face="Arial, Helvetica, sans-serif" size="2">
<td width="90%" height="18" bgcolor="#666666" l_margin="0"><font face="Arial, Helvetica, sans-serif">
<table border="4"><tr><td>
<textarea name="mail_content" rows="8" cols="30">%%CONTENT%%</textarea>
</td></tr></table>

@ -27,6 +27,7 @@ if (true)
}
importParam('recover_forum');
global $recover_forum;
if ($recover_forum)
{
echo "recover forum $recover_forum<br>\n";
@ -36,6 +37,8 @@ if ($recover_forum)
importParam('recover_thread');
importParam('recover_threadthread');
global $recover_thread;
global $recover_threadthread;
if ($recover_thread && isset($recover_threadthread))
{
echo "recover forum $recover_thread<br>\n";
@ -45,6 +48,8 @@ if ($recover_thread && isset($recover_threadthread))
importParam('rename_forum');
importParam('into_forum');
global $rename_forum;
global $into_forum;
if ($rename_forum)
{
echo "rename forum $rename_forum into $into_forum<br>\n";
@ -54,9 +59,12 @@ if ($rename_forum)
importParam('shard');
global $shard;
importParam('mailbox');
importParam('mail');
global $mailbox;
global $mail;
if ($mail)
{
@ -72,6 +80,8 @@ else if ($mailbox)
importParam('forum');
importParam('thread');
global $forum;
global $thread;
if ($thread)
{

@ -33,6 +33,10 @@
importParam('post_to');
importParam('post_subject');
importParam('post_content');
global $post_from;
global $post_to;
global $post_subject;
global $post_content;
check_character_belongs_to_guild($user_login, $post_to);

@ -28,6 +28,8 @@
importParam('forum');
importParam('page');
global $forum;
global $page;
check_character_belongs_to_guild($user_login, $forum);

@ -22,6 +22,7 @@
$user = $user_login;
importParam('msg');
global $msg;
$user_dir = get_user_dir($user, $shard);
$fname = $user_dir."mail_$msg.html";

@ -19,6 +19,7 @@
include_once('utils.php');
importParam('page');
global $page;
unset($user);
$user = $user_login;

@ -30,6 +30,9 @@
importParam('mail_to');
importParam('mail_subject');
importParam('mail_content');
global $mail_to;
global $mail_subject;
global $mail_content;
read_template('new_mail.html', $new_mail);

@ -30,6 +30,9 @@
importParam('forum');
importParam('thread');
importParam('subject');
global $forum;
global $thread;
global $subject;
check_character_belongs_to_guild($user_login, $forum);

@ -26,6 +26,7 @@
//
importParam('forum');
global $forum;
check_character_belongs_to_guild($user_login, $forum);

@ -33,6 +33,10 @@
importParam('post_to');
importParam('post_thread');
importParam('post_content');
global $post_from;
global $post_to;
global $post_thread;
global $post_content;
check_character_belongs_to_guild($user_login, $post_to);

@ -33,6 +33,10 @@
importParam('mail_to');
importParam('mail_subject');
importParam('mail_content');
global $mail_from;
global $mail_to;
global $mail_subject;
global $mail_content;
// check mail is valid
//if (!isset($mail_from) || $mail_from == "" || !isset($mail_to) || $mail_to == "" || !isset($mail_subject) || $mail_subject == "" || !isset($mail_content) || $mail_content == "" )

@ -29,6 +29,8 @@
importParam('forum');
importParam('thread');
global $forum;
global $thread;
check_character_belongs_to_guild($user_login, $forum);

@ -28,6 +28,8 @@
importParam('forum');
importParam('thread');
global $forum;
global $thread;
check_character_belongs_to_guild($user_login, $forum);

@ -30,6 +30,9 @@
importParam('forum');
importParam('thread');
importParam('page');
global $forum;
global $thread;
global $page;
check_character_belongs_to_guild($user_login, $forum);

@ -70,6 +70,9 @@ function exportParam($var, $value)
importParam('user_login');
importParam('shard');
importParam('session_cookie');
global $user_login;
global $shard;
global $session_cookie;
if (isset($user_login))
{
@ -439,6 +442,7 @@ $remote_addr = $_SERVER['REMOTE_ADDR'];
if (true)
{
importParam('internal_check');
global $internal_check;
if ($internal_check)
{
echo "INTERNAL CHECK\n";
@ -460,13 +464,14 @@ if (false)
//echo $_SERVER['REMOTE_ADDR'];
//die();
importParam('translate_user_login');
global $translate_user_login;
if (isset($translate_user_login))
$user_login = $translate_user_login;
}
else
{
if (!strstr($HTTP_SERVER_VARS['HTTP_USER_AGENT'], 'Ryzom'))
die("ERROR: Bad parameters");
// if (!strstr($HTTP_SERVER_VARS['HTTP_USER_AGENT'], 'Ryzom'))
// die("ERROR: Bad parameters");
$udir = get_user_dir($user_login, $shard);
$ufile = $udir.'session';
if (is_dir($udir) && file_exists($ufile))

Loading…
Cancel
Save