mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-24 03:57:22 +08:00
add lang: ja
This commit is contained in:
@@ -7,7 +7,7 @@ stdhead(PROJECTNAME);
|
||||
print ("<h1>".PROJECTNAME."</h1>");
|
||||
begin_main_frame();
|
||||
begin_frame("<span id=\"version\">".$lang_aboutnexus['text_version']."</span>");
|
||||
print ($lang_aboutnexus['text_version_note']);
|
||||
echo sprintf ($lang_aboutnexus['text_version_note'], \App\Models\Setting::getSiteName(), PROJECTNAME);
|
||||
print ("<br /><br /><table class=\"main\" border=\"1\" cellspacing=\"0\" cellpadding=\"5\" align=\"center\">");
|
||||
tr($lang_aboutnexus['text_main_version'],PROJECTNAME,1);
|
||||
tr($lang_aboutnexus['text_sub_version'],VERSION_NUMBER,1);
|
||||
@@ -16,11 +16,11 @@ print ("</table>");
|
||||
print ("<br /><br />");
|
||||
end_frame();
|
||||
begin_frame("<span id=\"nexus\">".$lang_aboutnexus['text_nexus'].PROJECTNAME."</span>");
|
||||
print (PROJECTNAME.$lang_aboutnexus['text_nexus_note']);
|
||||
echo sprintf (PROJECTNAME.$lang_aboutnexus['text_nexus_note'], PROJECTNAME);
|
||||
print ("<br /><br />");
|
||||
end_frame();
|
||||
begin_frame("<span id=\"authorization\">".$lang_aboutnexus['text_authorization']."</span>");
|
||||
print ($lang_aboutnexus['text_authorization_note']);
|
||||
echo sprintf ($lang_aboutnexus['text_authorization_note'], PROJECTNAME);
|
||||
print ("<br /><br />");
|
||||
end_frame();
|
||||
$ppl = '';
|
||||
@@ -47,7 +47,7 @@ while ($arr = mysql_fetch_assoc($res))
|
||||
"<td class=\"rowfollow\">".$arr['comment']."</td></tr>\n";
|
||||
}
|
||||
begin_frame("<span id=\"stylesheet\">".$lang_aboutnexus['text_stylesheet']."</span>");
|
||||
print ($lang_aboutnexus['text_stylesheet_note']);
|
||||
echo sprintf ($lang_aboutnexus['text_stylesheet_note'], PROJECTNAME, \App\Models\Setting::getSiteName());
|
||||
print ("<br /><br /><table class=\"main\" border=\"1\" cellspacing=\"0\" cellpadding=\"5\" align=\"center\"><tr><td class=\"colhead\">".$lang_aboutnexus['text_name']."</td><td class=\"colhead\">".$lang_aboutnexus['text_designer']."</td><td class=\"colhead\">".$lang_aboutnexus['text_comment']."</td></tr>");
|
||||
print ($ppl);
|
||||
print ("</table>");
|
||||
|
||||
@@ -70,8 +70,11 @@ if ($_SERVER["REQUEST_METHOD"] == "POST")
|
||||
$id = $arr["id"];
|
||||
$title = $SITENAME.$lang_confirm_resend['mail_title'];
|
||||
$baseUrl = getSchemeAndHttpHost();
|
||||
$siteName = \App\Models\Setting::getSiteName();
|
||||
$mailTwo = sprintf($lang_confirm_resend['mail_two'], $siteName);
|
||||
$mailFive = sprintf($lang_confirm_resend['mail_five'], $siteName, $siteName, $REPORTMAIL, $siteName);
|
||||
$body = <<<EOD
|
||||
{$lang_confirm_resend['mail_one']}$usern{$lang_confirm_resend['mail_two']}($email){$lang_confirm_resend['mail_three']}$ip{$lang_confirm_resend['mail_four']}
|
||||
{$lang_confirm_resend['mail_one']}$usern{$mailTwo}($email){$lang_confirm_resend['mail_three']}$ip{$lang_confirm_resend['mail_four']}
|
||||
<b><a href="javascript:void(null)" onclick="window.open('{$baseUrl}/confirm.php?id=$id&secret=$psecret')">
|
||||
{$lang_confirm_resend['mail_this_link']} </a></b><br />
|
||||
{$baseUrl}/confirm.php?id=$id&secret=$psecret
|
||||
@@ -104,7 +107,7 @@ else
|
||||
print("<div align=\"right\">".$lang_confirm_resend['text_select_lang']. $s . "</div>");
|
||||
?>
|
||||
</form>
|
||||
<?php echo $lang_confirm_resend['text_resend_confirmation_mail_note']?>
|
||||
<?php echo sprintf($lang_confirm_resend['text_resend_confirmation_mail_note'], $maxloginattempts)?>
|
||||
<p><?php echo $lang_confirm_resend['text_you_have'] ?><b><?php echo remaining ();?></b><?php echo $lang_confirm_resend['text_remaining_tries'] ?></p>
|
||||
<form method="post" action="confirm_resend.php">
|
||||
<table border="1" cellspacing="0" cellpadding="10">
|
||||
|
||||
+1
-1
@@ -50,7 +50,7 @@ stdhead($lang_edit['head_edit_torrent'] . "\"". $row["name"] . "\"");
|
||||
|
||||
if (!isset($CURUSER) || ($CURUSER["id"] != $row["owner"] && !user_can('torrentmanage'))) {
|
||||
print("<h1 align=\"center\">".$lang_edit['text_cannot_edit_torrent']."</h1>");
|
||||
print("<p>".$lang_edit['text_cannot_edit_torrent_note']."</p>");
|
||||
echo sprintf("<p>".$lang_edit['text_cannot_edit_torrent_note']."</p>", $_SERVER["REQUEST_URI"] ?? '');
|
||||
}
|
||||
else {
|
||||
print("<form method=\"post\" id=\"compose\" name=\"edittorrent\" action=\"takeedit.php\" enctype=\"multipart/form-data\">");
|
||||
|
||||
+1
-1
@@ -14,7 +14,7 @@ $Cache->add_whole_row();
|
||||
begin_main_frame();
|
||||
|
||||
begin_frame($lang_faq['text_welcome_to'].$SITENAME." - ".$SLOGAN);
|
||||
print($lang_faq['text_welcome_content_one'].$lang_faq['text_welcome_content_two']);
|
||||
print($lang_faq['text_welcome_content_one'].sprintf($lang_faq['text_welcome_content_two'], \App\Models\Setting::getSiteName()));
|
||||
end_frame();
|
||||
|
||||
$lang_id = get_guest_lang_id();
|
||||
|
||||
+12
-12
@@ -6,14 +6,14 @@ loggedinorreturn();
|
||||
if (get_user_class() < UC_SYSOP)
|
||||
stderr("Sorry", "Access denied.");
|
||||
|
||||
$validTypeMap = $lang_increment_bulk['types'];
|
||||
$validTypeMap = $lang_incrementbulk['types'];
|
||||
$type = $_REQUEST['type'] ?? '';
|
||||
stdhead($lang_increment_bulk['page_title'], false);
|
||||
stdhead($lang_incrementbulk['page_title'], false);
|
||||
$classes = array_chunk(\App\Models\User::listClass(), 4, true);
|
||||
?>
|
||||
<table class=main width=737 border=0 cellspacing=0 cellpadding=0><tr><td class=embedded>
|
||||
<div align=center>
|
||||
<h1><?php echo $lang_increment_bulk['page_title']?></a></h1>
|
||||
<h1><?php echo $lang_incrementbulk['page_title']?></a></h1>
|
||||
<form method=post action=take-increment-bulk.php>
|
||||
<?php
|
||||
|
||||
@@ -27,11 +27,11 @@ $classes = array_chunk(\App\Models\User::listClass(), 4, true);
|
||||
<table cellspacing=0 cellpadding=5>
|
||||
<?php
|
||||
if (isset($_GET["sent"]) && $_GET["sent"] == 1) {
|
||||
echo '<tr><td colspan=2 class="text" align="center"><font color=red><b> '. ($validTypeMap[$type] ?? '') . $lang_increment_bulk['sent_success'] .'</font></b></tr></td>';
|
||||
echo '<tr><td colspan=2 class="text" align="center"><font color=red><b> '. ($validTypeMap[$type] ?? '') . $lang_incrementbulk['sent_success'] .'</font></b></tr></td>';
|
||||
}
|
||||
?>
|
||||
<tr>
|
||||
<td class="rowhead" valign="top"><?php echo $lang_increment_bulk['labels']['type'] ?></td>
|
||||
<td class="rowhead" valign="top"><?php echo $lang_incrementbulk['labels']['type'] ?></td>
|
||||
<td class="rowfollow">
|
||||
<?php
|
||||
foreach ($validTypeMap as $name => $text) {
|
||||
@@ -44,10 +44,10 @@ $classes = array_chunk(\App\Models\User::listClass(), 4, true);
|
||||
?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr><td class="rowhead" valign="top"><?php echo $lang_increment_bulk['labels']['amount'] ?> </td><td class="rowfollow"><input type=text name=amount size=10></td></tr>
|
||||
<tr><td class="rowhead" valign="top"><?php echo $lang_increment_bulk['labels']['duration'] ?></td><td class="rowfollow"><input type=number min="1" name=duration size=10> <?php echo $lang_increment_bulk['labels']['duration_help'] ?></td></tr>
|
||||
<tr><td class="rowhead" valign="top"><?php echo $lang_incrementbulk['labels']['amount'] ?> </td><td class="rowfollow"><input type=text name=amount size=10></td></tr>
|
||||
<tr><td class="rowhead" valign="top"><?php echo $lang_incrementbulk['labels']['duration'] ?></td><td class="rowfollow"><input type=number min="1" name=duration size=10> <?php echo $lang_incrementbulk['labels']['duration_help'] ?></td></tr>
|
||||
<tr>
|
||||
<td class="rowhead" valign="top"><?php echo $lang_increment_bulk['labels']['user_class'] ?></td><td class="rowfollow">
|
||||
<td class="rowhead" valign="top"><?php echo $lang_incrementbulk['labels']['user_class'] ?></td><td class="rowfollow">
|
||||
<table style="border: 0" width="100%" cellpadding="0" cellspacing="0">
|
||||
<?php
|
||||
foreach ($classes as $chunk) {
|
||||
@@ -61,11 +61,11 @@ $classes = array_chunk(\App\Models\User::listClass(), 4, true);
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<?php do_action('form_role_filter', $lang_increment_bulk['labels']['roles']) ?>
|
||||
<tr><td class="rowhead" valign="top"><?php echo $lang_increment_bulk['labels']['msg_subject'] ?> </td><td class="rowfollow"><input type=text name=subject size=82></td></tr>
|
||||
<tr><td class="rowhead" valign="top"><?php echo $lang_increment_bulk['labels']['msg_body'] ?> </td><td class="rowfollow"><textarea name=msg cols=80 rows=5><?php echo $body ?? ''?></textarea></td></tr>
|
||||
<?php do_action('form_role_filter', $lang_incrementbulk['labels']['roles']) ?>
|
||||
<tr><td class="rowhead" valign="top"><?php echo $lang_incrementbulk['labels']['msg_subject'] ?> </td><td class="rowfollow"><input type=text name=subject size=82></td></tr>
|
||||
<tr><td class="rowhead" valign="top"><?php echo $lang_incrementbulk['labels']['msg_body'] ?> </td><td class="rowfollow"><textarea name=msg cols=80 rows=5><?php echo $body ?? ''?></textarea></td></tr>
|
||||
<tr>
|
||||
<td class="rowfollow" colspan=2><div align="center"><b><?php echo $lang_increment_bulk['labels']['operator'] ?>: </b>
|
||||
<td class="rowfollow" colspan=2><div align="center"><b><?php echo $lang_incrementbulk['labels']['operator'] ?>: </b>
|
||||
<label><input name="sender" type="radio" value="self" checked><?php echo $CURUSER['username']?></label>
|
||||
<label><input name="sender" type="radio" value="system">System</label>
|
||||
</div></td></tr>
|
||||
|
||||
+1
-1
@@ -618,7 +618,7 @@ if ($showtrackerload == "yes") {
|
||||
?>
|
||||
<h2><?php echo $lang_index['text_disclaimer'] ?></h2>
|
||||
<table width="100%"><tr><td class="text">
|
||||
<?php echo $lang_index['text_disclaimer_content'] ?></td></tr></table>
|
||||
<?php echo sprintf($lang_index['text_disclaimer_content'], \App\Models\Setting::getSiteName(), \App\Models\Setting::getSiteName()) ?></td></tr></table>
|
||||
<?php
|
||||
// ------------- end: disclaimer ------------------//
|
||||
// ------------- start: links ------------------//
|
||||
|
||||
+1
-1
@@ -75,7 +75,7 @@ if ($type == 'new'){
|
||||
->orderBy('expired_at', 'asc')
|
||||
->get()
|
||||
;
|
||||
$invitation_body = $lang_invite['text_invitation_body'].$CURUSER['username'];
|
||||
$invitation_body = sprintf($lang_invite['text_invitation_body'], \App\Models\Setting::getSiteName()).$CURUSER['username'];
|
||||
//$invitation_body_insite = str_replace("<br />","\n",$invitation_body);
|
||||
$inviteSelectOptions = '';
|
||||
if ($inv['invites'] > 0) {
|
||||
|
||||
@@ -9,14 +9,15 @@ if (isset($_GET['action']) && $_GET['action'] == "apply")
|
||||
if (user_can('applylink')){
|
||||
stdhead($lang_linksmanage['head_apply_for_links']);
|
||||
begin_main_frame();
|
||||
$siteName = \App\Models\Setting::getSiteName();
|
||||
begin_frame($lang_linksmanage['text_apply_for_links'], true,10,"100%","center");
|
||||
print("<p align=left><b><font size=5>".$lang_linksmanage['text_rules']."</font></b></p>\n");
|
||||
print("<p align=left>       ".$lang_linksmanage['text_rule_one']."</p>\n");
|
||||
print("<p align=left>       ".$lang_linksmanage['text_rule_two']."</p>\n");
|
||||
print("<p align=left>       ".sprintf($lang_linksmanage['text_rule_one'], getSchemeAndHttpHost(), $SLOGAN, $siteName)."</p>\n");
|
||||
print("<p align=left>       ".sprintf($lang_linksmanage['text_rule_two'], $siteName)."</p>\n");
|
||||
print("<p align=left>       ".$lang_linksmanage['text_rule_three']."</p>\n");
|
||||
print("<p align=left>       ".$lang_linksmanage['text_rule_four']."</p>\n");
|
||||
print("<p align=left>       ".$lang_linksmanage['text_rule_five']."</p>\n");
|
||||
print("<p align=left>       ".$lang_linksmanage['text_rule_six']."</p>\n");
|
||||
print("<p align=left>       ".sprintf($lang_linksmanage['text_rule_five'], $siteName)."</p>\n");
|
||||
print("<p align=left>       ".sprintf($lang_linksmanage['text_rule_six'], $siteName)."</p>\n");
|
||||
|
||||
print("<p>".$lang_linksmanage['text_red_star_required']."</p>");
|
||||
?>
|
||||
|
||||
+1
-1
@@ -5,7 +5,7 @@ require_once(get_langfile_path());
|
||||
loggedinorreturn();
|
||||
if (!user_can('log'))
|
||||
{
|
||||
stderr($lang_log['std_sorry'],$lang_log['std_permission_denied_only'].get_user_class_name($log_class,false,true,true).$lang_log['std_or_above_can_view'],false);
|
||||
stderr($lang_log['std_sorry'],$lang_log['std_permission_denied_only'].get_user_class_name($log_class,false,true,true).sprintf($lang_log['std_or_above_can_view'], \App\Models\Setting::getSiteName()),false);
|
||||
}
|
||||
|
||||
$q = htmlspecialchars(trim($_GET['query'] ?? ''));
|
||||
|
||||
+1
-1
@@ -317,7 +317,7 @@ if (isset($do)) {
|
||||
elseif ($do == "vipfalse")
|
||||
$msg = $lang_mybonus['text_no_permission'];
|
||||
elseif ($do == "title")
|
||||
$msg = $lang_mybonus['text_success_custom_title'];
|
||||
$msg = sprintf($lang_mybonus['text_success_custom_title'], $CURUSER['title']);
|
||||
elseif ($do == "transfer")
|
||||
$msg = $lang_mybonus['text_success_gift'];
|
||||
elseif ($do == "noad")
|
||||
|
||||
+4
-4
@@ -5,19 +5,19 @@ require_once(get_langfile_path());
|
||||
if (!mkglobal("type"))
|
||||
die();
|
||||
|
||||
if ($type == "adminactivate")
|
||||
if ($type == "adminactivate")
|
||||
{
|
||||
stdhead($lang_ok['head_user_signup']);
|
||||
stdmsg($lang_ok['std_account_activated'],
|
||||
$lang_ok['account_activated_note']);
|
||||
}
|
||||
elseif ($type == "inviter")
|
||||
elseif ($type == "inviter")
|
||||
{
|
||||
stdhead($lang_ok['head_user_signup']);
|
||||
stdmsg($lang_ok['std_account_activated'],
|
||||
$lang_ok['account_activated_note_two']);
|
||||
}
|
||||
elseif ($type == "signup" && mkglobal("email"))
|
||||
elseif ($type == "signup" && mkglobal("email"))
|
||||
{
|
||||
stdhead($lang_ok['head_user_signup']);
|
||||
stdmsg($lang_ok['std_signup_successful'],
|
||||
@@ -44,7 +44,7 @@ elseif ($type == "confirm") {
|
||||
stdhead($lang_ok['head_signup_confirmation']);
|
||||
print($lang_ok['std_account_confirmed']);
|
||||
print($lang_ok['std_auto_logged_in_note']);
|
||||
print($lang_ok['std_read_rules_faq']);
|
||||
echo sprintf($lang_ok['std_read_rules_faq'], \App\Models\Setting::getSiteName());
|
||||
stdfoot();
|
||||
}
|
||||
else {
|
||||
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 16 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 8.0 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 1.7 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 6.7 KiB |
+54
@@ -0,0 +1,54 @@
|
||||
img.f_reply
|
||||
{
|
||||
width:87px;
|
||||
height:25px;
|
||||
background:url(forum.gif) 0 0;
|
||||
}
|
||||
img.f_new
|
||||
{
|
||||
width:87px;
|
||||
height:25px;
|
||||
background:url(forum.gif) -87px 0;
|
||||
}
|
||||
img.f_delete
|
||||
{
|
||||
width:69px;
|
||||
height:25px;
|
||||
background:url(forum.gif) 0 -25px;
|
||||
}
|
||||
img.f_edit
|
||||
{
|
||||
width:62px;
|
||||
height:25px;
|
||||
background:url(forum.gif) -69px -25px;
|
||||
}
|
||||
img.f_pm
|
||||
{
|
||||
width:30px;
|
||||
height:25px;
|
||||
background:url(forum.gif) -131px -25px;
|
||||
}
|
||||
img.f_offline
|
||||
{
|
||||
width:35px;
|
||||
height:25px;
|
||||
background:url(forum.gif) -161px -25px;
|
||||
}
|
||||
img.f_quote
|
||||
{
|
||||
width:69px;
|
||||
height:25px;
|
||||
background:url(forum.gif) 0 -50px;
|
||||
}
|
||||
img.f_report
|
||||
{
|
||||
width:69px;
|
||||
height:25px;
|
||||
background:url(forum.gif) -69px -50px;
|
||||
}
|
||||
img.f_online
|
||||
{
|
||||
width:30px;
|
||||
height:25px;
|
||||
background:url(forum.gif) -138px -50px;
|
||||
}
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 641 B |
+8
-4
@@ -23,7 +23,8 @@ function bark($msg) {
|
||||
stdfoot();
|
||||
exit;
|
||||
}
|
||||
|
||||
$siteName = $SITENAME;
|
||||
$mailTwoFour = sprintf($lang_recover['mail_two_four'], $siteName);
|
||||
if ($_SERVER["REQUEST_METHOD"] == "POST")
|
||||
{
|
||||
if ($iv == "yes")
|
||||
@@ -48,11 +49,14 @@ if ($_SERVER["REQUEST_METHOD"] == "POST")
|
||||
$hash = md5($sec . $email . $arr["passhash"] . $sec);
|
||||
$ip = getip() ;
|
||||
$title = $SITENAME.$lang_recover['mail_title'];
|
||||
$mailOne = sprintf($lang_recover['mail_one'], $siteName);
|
||||
$mailFour = sprintf($lang_recover['mail_four'], $siteName);
|
||||
|
||||
$body = <<<EOD
|
||||
{$lang_recover['mail_one']}($email){$lang_recover['mail_two']}$ip{$lang_recover['mail_three']}
|
||||
{$mailOne}($email){$lang_recover['mail_two']}$ip{$lang_recover['mail_three']}
|
||||
<b><a href="$baseUrl/recover.php?id={$arr["id"]}&secret=$hash" target="_blank"> {$lang_recover['mail_this_link']} </a></b><br />
|
||||
$baseUrl/recover.php?id={$arr["id"]}&secret=$hash
|
||||
{$lang_recover['mail_four']}
|
||||
{$mailFour}
|
||||
EOD;
|
||||
|
||||
// sent_mail($arr["email"],$SITENAME,$SITEEMAIL,change_email_encode(get_langfolder_cookie(), $title),change_email_encode(get_langfolder_cookie(),$body),"confirmation",true,false,'',get_email_encode(get_langfolder_cookie()));
|
||||
@@ -98,7 +102,7 @@ elseif($_SERVER["REQUEST_METHOD"] == "GET" && $take_recover && isset($_GET["id"]
|
||||
{$lang_recover['mail_two_two']}$newpassword
|
||||
{$lang_recover['mail_two_three']}
|
||||
<b><a href="$baseUrl/login.php">{$lang_recover['mail_here']}</a></b>
|
||||
{$lang_recover['mail_two_four']}
|
||||
{$mailTwoFour}
|
||||
EOD;
|
||||
|
||||
sent_mail($email,$SITENAME,$SITEEMAIL,$title,$body,"details",true,false,'');
|
||||
|
||||
+1
-1
@@ -187,7 +187,7 @@ while ($arr = mysql_fetch_assoc($res))
|
||||
|
||||
begin_frame($lang_staff['text_vip']);
|
||||
?>
|
||||
<?php echo $lang_staff['text_vip_note'] ?>
|
||||
<?php echo sprintf($lang_staff['text_vip_note'], \App\Models\Setting::getSiteName()) ?>
|
||||
<br /><br />
|
||||
<table width=100% cellspacing=0 align=center>
|
||||
<tr>
|
||||
|
||||
@@ -288,7 +288,7 @@ if (get_user_class() >= UC_PEASANT)
|
||||
print("<br />(".$lang_subtitles['text_maximum_file_size'].mksize($maxsubsize_main).".)");
|
||||
print("</td></tr>\n");
|
||||
if($in_detail == "")
|
||||
print("<tr><td class=rowhead>".$lang_subtitles['row_torrent_id']."<font color=red>*</font></td><td class=rowfollow align=left><input type=text name=torrent_id style=\"width:300px\"><br />".$lang_subtitles['text_torrent_id_note']."</td></tr>\n");
|
||||
print("<tr><td class=rowhead>".$lang_subtitles['row_torrent_id']."<font color=red>*</font></td><td class=rowfollow align=left><input type=text name=torrent_id style=\"width:300px\"><br />".sprintf($lang_subtitles['text_torrent_id_note'], getSchemeAndHttpHost())."</td></tr>\n");
|
||||
else
|
||||
{
|
||||
print("<tr><td class=rowhead>".$lang_subtitles['row_torrent_id']."<font color=red>*</font></td><td class=rowfollow align=left><input type=text name=torrent_id value=$detail_torrent_id style=\"width:300px\"><br />".$lang_subtitles['text_torrent_id_note']."</td></tr>\n");
|
||||
|
||||
+12
-11
@@ -22,8 +22,9 @@ stdhead($lang_tags['head_tags']);
|
||||
begin_main_frame();
|
||||
begin_frame($lang_tags['text_tags']);
|
||||
$test = $_POST["test"] ?? '';
|
||||
$siteName = \App\Models\Setting::getSiteName();
|
||||
?>
|
||||
<p><?php echo $lang_tags['text_bb_tags_note'] ?></p>
|
||||
<p><?php echo sprintf($lang_tags['text_bb_tags_note'], $siteName) ?></p>
|
||||
|
||||
<form method=post action=?>
|
||||
<textarea name=test cols=60 rows=3><?php print($test ? htmlspecialchars($test) : "")?></textarea>
|
||||
@@ -94,7 +95,7 @@ insert_tag(
|
||||
$lang_tags['text_hyperlink_one'],
|
||||
$lang_tags['text_hyperlink_one_description'],
|
||||
$lang_tags['text_hyperlink_one_syntax'],
|
||||
$lang_tags['text_hyperlink_one_example'],
|
||||
sprintf($lang_tags['text_hyperlink_one_example'], getSchemeAndHttpHost()),
|
||||
$lang_tags['text_hyperlink_one_remarks']
|
||||
);
|
||||
|
||||
@@ -102,7 +103,7 @@ insert_tag(
|
||||
$lang_tags['text_hyperlink_two'],
|
||||
$lang_tags['text_hyperlink_two_description'],
|
||||
$lang_tags['text_hyperlink_two_syntax'],
|
||||
$lang_tags['text_hyperlink_two_example'],
|
||||
sprintf($lang_tags['text_hyperlink_two_example'], getSchemeAndHttpHost(), $siteName),
|
||||
$lang_tags['text_hyperlink_two_remarks']
|
||||
);
|
||||
|
||||
@@ -110,7 +111,7 @@ insert_tag(
|
||||
$lang_tags['text_image_one'],
|
||||
$lang_tags['text_image_one_description'],
|
||||
$lang_tags['text_image_one_syntax'],
|
||||
$lang_tags['text_image_one_example'],
|
||||
sprintf($lang_tags['text_image_one_example'], getSchemeAndHttpHost()),
|
||||
$lang_tags['text_image_one_remarks']
|
||||
);
|
||||
|
||||
@@ -118,7 +119,7 @@ insert_tag(
|
||||
$lang_tags['text_image_two'],
|
||||
$lang_tags['text_image_two_description'],
|
||||
$lang_tags['text_image_two_syntax'],
|
||||
$lang_tags['text_image_two_example'],
|
||||
sprintf($lang_tags['text_image_two_example'], getSchemeAndHttpHost()),
|
||||
$lang_tags['text_image_two_remarks']
|
||||
);
|
||||
|
||||
@@ -126,7 +127,7 @@ insert_tag(
|
||||
$lang_tags['text_quote_one'],
|
||||
$lang_tags['text_quote_one_description'],
|
||||
$lang_tags['text_quote_one_syntax'],
|
||||
$lang_tags['text_quote_one_example'],
|
||||
sprintf($lang_tags['text_quote_one_example'], $siteName),
|
||||
""
|
||||
);
|
||||
|
||||
@@ -134,7 +135,7 @@ insert_tag(
|
||||
$lang_tags['text_quote_two'],
|
||||
$lang_tags['text_quote_two_description'],
|
||||
$lang_tags['text_quote_two_syntax'],
|
||||
$lang_tags['text_quote_two_example'],
|
||||
sprintf($lang_tags['text_quote_two_example'], $CURUSER['username'], $siteName),
|
||||
""
|
||||
);
|
||||
|
||||
@@ -215,7 +216,7 @@ insert_tag(
|
||||
$lang_tags['text_flash'],
|
||||
$lang_tags['text_flash_description'],
|
||||
$lang_tags['text_flash_syntax'],
|
||||
$lang_tags['text_flash_example'],
|
||||
sprintf($lang_tags['text_flash_example'], getSchemeAndHttpHost()),
|
||||
""
|
||||
);
|
||||
|
||||
@@ -223,7 +224,7 @@ insert_tag(
|
||||
$lang_tags['text_flash_two'],
|
||||
$lang_tags['text_flash_two_description'],
|
||||
$lang_tags['text_flash_two_syntax'],
|
||||
$lang_tags['text_flash_two_example'],
|
||||
sprintf($lang_tags['text_flash_two_example'], getSchemeAndHttpHost()),
|
||||
""
|
||||
);
|
||||
|
||||
@@ -231,7 +232,7 @@ insert_tag(
|
||||
$lang_tags['text_flv_one'],
|
||||
$lang_tags['text_flv_one_description'],
|
||||
$lang_tags['text_flv_one_syntax'],
|
||||
$lang_tags['text_flv_one_example'],
|
||||
sprintf($lang_tags['text_flv_one_example'], getSchemeAndHttpHost()),
|
||||
""
|
||||
);
|
||||
|
||||
@@ -239,7 +240,7 @@ insert_tag(
|
||||
$lang_tags['text_flv_two'],
|
||||
$lang_tags['text_flv_two_description'],
|
||||
$lang_tags['text_flv_two_syntax'],
|
||||
$lang_tags['text_flv_two_example'],
|
||||
sprintf($lang_tags['text_flv_two_example'], getSchemeAndHttpHost()),
|
||||
""
|
||||
);
|
||||
|
||||
|
||||
@@ -9,7 +9,7 @@ loggedinorreturn();
|
||||
if (get_user_class() < UC_SYSOP)
|
||||
stderr("Sorry", "Permission denied.");
|
||||
|
||||
$validTypeMap = $lang_increment_bulk['types'];
|
||||
$validTypeMap = $lang_incrementbulk['types'];
|
||||
$sender_id = ($_POST['sender'] == 'system' ? 0 : (int)$CURUSER['id']);
|
||||
$dt = sqlesc(date("Y-m-d H:i:s"));
|
||||
$msg = trim($_POST['msg']);
|
||||
|
||||
@@ -20,11 +20,13 @@ if(!empty($_POST['conusr'])) {
|
||||
}
|
||||
$title = $SITENAME.$lang_takeconfirm['mail_title'];
|
||||
$baseUrl = getSchemeAndHttpHost();
|
||||
$siteName = \App\Models\Setting::getSiteName();
|
||||
$mailContentTwo = sprintf($lang_takeconfirm['mail_content_two'], $siteName, $REPORTMAIL, $siteName);
|
||||
$body = <<<EOD
|
||||
{$lang_takeconfirm['mail_content_1']}
|
||||
<b><a href="javascript:void(null)" onclick="window.open('{$baseUrl}/login.php')">{$lang_takeconfirm['mail_here']}</a></b><br />
|
||||
{$baseUrl}/login.php
|
||||
{$lang_takeconfirm['mail_content_2']}
|
||||
{$mailContentTwo}
|
||||
EOD;
|
||||
|
||||
//this mail is sent when the site is using admin(open/closed)/inviter(closed) confirmation and the admin/inviter confirmed the pending user
|
||||
|
||||
@@ -90,13 +90,17 @@ if ($_POST['hash'] == 'permanent') {
|
||||
$title = $SITENAME.$lang_takeinvite['mail_tilte'];
|
||||
|
||||
$signupUrl = getSchemeAndHttpHost() . "/signup.php?type=invite&invitenumber=$hash";
|
||||
$siteName = \App\Models\Setting::getSiteName();
|
||||
$mailTwo = sprintf($lang_takeinvite['mail_two'], $siteName);
|
||||
$mailFour = sprintf($lang_takeinvite['mail_four'], $siteName);
|
||||
$mailSix = sprintf($lang_takeinvite['mail_six'], $REPORTMAIL, $siteName);
|
||||
$message = <<<EOD
|
||||
{$lang_takeinvite['mail_one']}{$arr['username']}{$lang_takeinvite['mail_two']}
|
||||
{$lang_takeinvite['mail_one']}{$arr['username']}{$mailTwo}
|
||||
<b><a href="javascript:void(null)" onclick="window.open($signupUrl)">{$lang_takeinvite['mail_here']}</a></b><br />
|
||||
$signupUrl
|
||||
<br />{$lang_takeinvite['mail_three']}$invite_timeout{$lang_takeinvite['mail_four']}{$arr['username']}{$lang_takeinvite['mail_five']}<br />
|
||||
<br />{$lang_takeinvite['mail_three']}$invite_timeout{$mailFour}{$arr['username']}{$lang_takeinvite['mail_five']}<br />
|
||||
$body
|
||||
<br /><br />{$lang_takeinvite['mail_six']}
|
||||
<br /><br />{$mailSix}
|
||||
EOD;
|
||||
|
||||
$sendResult = sent_mail($email,$SITENAME,$SITEEMAIL,$title,$message,"invitesignup",false,false,'');
|
||||
|
||||
@@ -180,7 +180,8 @@ if ($tmpInviteCount > 0) {
|
||||
|
||||
$dt = sqlesc(date("Y-m-d H:i:s"));
|
||||
$subject = sqlesc($lang_takesignup['msg_subject'].$SITENAME."!");
|
||||
$msg = sqlesc($lang_takesignup['msg_congratulations'].htmlspecialchars($wantusername).$lang_takesignup['msg_you_are_a_member']);
|
||||
$siteName = \App\Models\Setting::getSiteName();
|
||||
$msg = sqlesc($lang_takesignup['msg_congratulations'].htmlspecialchars($wantusername).sprintf($lang_takesignup['msg_you_are_a_member'],$siteName, $siteName));
|
||||
sql_query("INSERT INTO messages (sender, receiver, subject, added, msg) VALUES(0, $id, $subject, $dt, $msg)") or sqlerr(__FILE__, __LINE__);
|
||||
|
||||
//write_log("User account $id ($wantusername) was created");
|
||||
@@ -192,8 +193,10 @@ $usern = htmlspecialchars($wantusername);
|
||||
$title = $SITENAME.$lang_takesignup['mail_title'];
|
||||
$confirmUrl = getSchemeAndHttpHost() . "/confirm.php?id=$id&secret=$psecret";
|
||||
$confirmResendUrl = getSchemeAndHttpHost() . "/confirm_resend.php";
|
||||
$mailTwo = sprintf($lang_takeinvite['mail_two'], $siteName);
|
||||
$mailFive = sprintf($lang_takeinvite['mail_five'], $siteName, $siteName, $REPORTMAIL, $siteName);
|
||||
$body = <<<EOD
|
||||
{$lang_takesignup['mail_one']}$usern{$lang_takesignup['mail_two']}($email){$lang_takesignup['mail_three']}$ip{$lang_takesignup['mail_four']}
|
||||
{$lang_takesignup['mail_one']}$usern{$mailTwo}($email){$lang_takesignup['mail_three']}$ip{$lang_takesignup['mail_four']}
|
||||
<b><a href="javascript:void(null)" onclick="window.open($confirmUrl)">
|
||||
{$lang_takesignup['mail_this_link']} </a></b><br />
|
||||
$confirmUrl
|
||||
@@ -201,7 +204,7 @@ $confirmUrl
|
||||
<b><a href="javascript:void(null)" onclick="window.open($confirmResendUrl)">{$lang_takesignup['mail_here']}</a></b><br />
|
||||
$confirmResendUrl
|
||||
<br />
|
||||
{$lang_takesignup['mail_five']}
|
||||
{$mailFive}
|
||||
EOD;
|
||||
|
||||
if ($type == 'invite')
|
||||
|
||||
+1
-1
@@ -10,7 +10,7 @@ function bark($msg) {
|
||||
genbark($msg, $lang_topten['std_error']);
|
||||
}
|
||||
if (!user_can('topten')){
|
||||
stderr($lang_topten['std_sorry'],$lang_topten['std_permission_denied_only'].get_user_class_name($topten_class,false,true,true).$lang_topten['std_or_above_can_view'],false);
|
||||
stderr($lang_topten['std_sorry'],$lang_topten['std_permission_denied_only'].get_user_class_name($topten_class,false,true,true).sprintf($lang_topten['std_or_above_can_view'], \App\Models\Setting::getSiteName()),false);
|
||||
}
|
||||
|
||||
function usershare_table($res, $frame_caption)
|
||||
|
||||
+2
-2
@@ -2,7 +2,7 @@
|
||||
require_once("../include/bittorrent.php");
|
||||
dbconn(true);
|
||||
require_once(get_langfile_path('torrents.php'));
|
||||
require_once(get_langfile_path('speical.php'));
|
||||
require_once(get_langfile_path('special.php'));
|
||||
loggedinorreturn();
|
||||
parked();
|
||||
|
||||
@@ -16,7 +16,7 @@ switch (nexus()->getScript()) {
|
||||
httperr();
|
||||
}
|
||||
if (!user_can('view_special_torrent')) {
|
||||
stderr($lang_special['std_sorry'],$lang_special['std_permission_denied_only'].get_user_class_name(get_setting('authority.view_special_torrent'),false,true,true).$lang_special['std_or_above_can_view'],false);
|
||||
stderr($lang_special['std_sorry'],$lang_special['std_permission_denied_only'].get_user_class_name(get_setting('authority.view_special_torrent'),false,true,true).sprintf($lang_special['std_or_above_can_view'], \App\Models\Setting::getSiteName()),false);
|
||||
}
|
||||
$sectiontype = $specialcatmode;
|
||||
break;
|
||||
|
||||
+5
-2
@@ -4,6 +4,7 @@ dbconn();
|
||||
require_once(get_langfile_path());
|
||||
loggedinorreturn();
|
||||
$userInfo = \App\Models\User::query()->findOrFail($CURUSER["id"]);
|
||||
$siteName = \App\Models\Setting::getSiteName();
|
||||
function bark($msg) {
|
||||
stdhead();
|
||||
global $lang_usercp;
|
||||
@@ -812,8 +813,10 @@ tr_small($lang_usercp['row_funbox'],"<input type=checkbox name=showfb".($CURUSER
|
||||
$obemail = rawurlencode($email);
|
||||
$updateset[] = "editsecret = " . sqlesc($sec);
|
||||
$subject = "$SITENAME".$lang_usercp['mail_profile_change_confirmation'];
|
||||
$changeEmailOne = sprintf($lang_usercp['mail_change_email_one'], $siteName);
|
||||
$changeEmailNine = sprintf($lang_usercp['mail_change_email_nine'], $siteName);
|
||||
$body = <<<EOD
|
||||
{$lang_usercp['mail_change_email_one']}{$CURUSER["username"]}{$lang_usercp['mail_change_email_two']}($email){$lang_usercp['mail_change_email_three']}
|
||||
{$changeEmailOne}{$CURUSER["username"]}{$lang_usercp['mail_change_email_two']}($email){$lang_usercp['mail_change_email_three']}
|
||||
|
||||
{$lang_usercp['mail_change_email_four']}{$_SERVER["REMOTE_ADDR"]}{$lang_usercp['mail_change_email_five']}
|
||||
|
||||
@@ -823,7 +826,7 @@ http://$BASEURL/confirmemail.php/{$CURUSER["id"]}/$hash/$obemail
|
||||
{$lang_usercp['mail_change_email_seven']}
|
||||
|
||||
------{$lang_usercp['mail_change_email_eight']}
|
||||
{$lang_usercp['mail_change_email_nine']}
|
||||
{$changeEmailNine}
|
||||
EOD;
|
||||
|
||||
sent_mail($email,$SITENAME,$SITEEMAIL,$subject,str_replace("<br />","<br />",nl2br($body)),"profile change",false,false,'');
|
||||
|
||||
Reference in New Issue
Block a user