Obsah fóra
PravidláRegistrovaťPrihlásenie




Odpovedať na tému [ Príspevok: 1 ] 
AutorSpráva
Offline

Prevádzkovateľ fóra
Prevádzkovateľ fóra
Admin Configurable SMTP Port

Registrovaný: 01.05.05
Príspevky: 13348
Témy: 1496
Bydlisko: Bratislava
Príspevok NapísalOffline : 13.10.2006 9:05

Kód:
##############################################################
## MOD Title: Admin Configurable SMTP Port
## MOD Author: AdamR < adam@pylonhosting.com > (Adam Reyher) http://www.adamreyher.com
## MOD Description: This MOD adds a field on the Admin Panel Configuration
##                  page which allows you to define the SMTP port.
## MOD Version: 1.0.2
##
## Installation Level: Intermediate
## Installation Time: 10 Minutes
## Files To Edit: (4) admin_board.php, smtp.php, lang_admin.php, board_config_body.tpl
## Included Files: n/a
## License: http://opensource.org/licenses/gpl-license.php GNU General Public License v2
##############################################################
## For security purposes, please check: http://www.phpbb.com/mods/
## for the latest version of this MOD. Although MODs are checked
## before being allowed in the MODs Database there is no guarantee
## that there are no security problems within the MOD. No support
## will be given for MODs not found within the MODs Database which
## can be found at http://www.phpbb.com/mods/
##############################################################
## Author Notes: In the SQL, remember to change "phpbb_" to your table prefix.
##
##############################################################
## MOD History:
##     2005-08-22 - Version 1.0.2
##          - Updated to be complient with latest phpBB version and phpBB.com MOD requirements
##
##     2004-09-05  - Version 1.0.1
##          - Fixed small validation bug
##
##     2004-08-21  - Version 1.0.0
##          - First FINAL release
##
##     2004-08-20  - Version 0.0.1
##          - First BETA release
##############################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
##############################################################

#
#-----[ SQL ]------------------------------------------
#
INSERT INTO phpbb_config ( config_name , config_value ) VALUES ('smtp_port', '25');

#
#-----[ OPEN ]------------------------------------------
#
admin/admin_board.php

#
#-----[ FIND ]------------------------------------------
#
   "L_SMTP_SERVER" => $lang['SMTP_server'],


#
#-----[ AFTER, ADD ]------------------------------------------
#
   // BEGIN MOD ADD - Admin Configurable SMTP Port
   "L_SMTP_PORT" => $lang['SMTP_port'],
   "L_SMTP_PORT_EXPLAIN" => $lang['SMTP_port_explain'],
   // END MOD ADD - Admin Configurable SMTP Port

#
#-----[ FIND ]------------------------------------------
#
   "SMTP_HOST" => $new['smtp_host'],

#
#-----[ AFTER, ADD ]------------------------------------------
#
   // BEGIN MOD ADD - Admin Configurable SMTP Port
   "SMTP_PORT" => $new['smtp_port'],
   // END MOD ADD - Admin Configurable SMTP Port

#
#-----[ OPEN ]------------------------------------------
#
includes/smtp.php

#
#-----[ FIND ]------------------------------------------
#
   if( !$socket = @fsockopen($board_config['smtp_host'], 25, $errno, $errstr, 20) )

#
#-----[ REPLACE WITH ]------------------------------------------
#
   if( !$socket = fsockopen($board_config['smtp_host'], $board_config['smtp_port'], $errno, $errstr, 20) )

#
#-----[ OPEN ]------------------------------------------
#
language/lang_english/lang_admin.php

#
#-----[ FIND ]------------------------------------------
#
$lang['SMTP_server'] = 'SMTP Server Address';

#
#-----[ AFTER, ADD ]------------------------------------------
#
// BEGIN MOD ADD - Admin Configurable SMTP Port
$lang['SMTP_port'] = 'SMTP Port';
$lang['SMTP_port_explain'] = 'Only change the port if you are sure your\'s is something different than 25';
// END MOD ADD - Admin Configurable SMTP Port

#
#-----[ OPEN ]------------------------------------------
#
templates/subSilver/admin/board_config_body.tpl

#
#-----[ FIND ]------------------------------------------
#
   <tr>
      <td class="row1">{L_SMTP_SERVER}</td>
      <td class="row2"><input class="post" type="text" name="smtp_host" value="{SMTP_HOST}" size="25" maxlength="50" /></td>
   </tr>

#
#-----[ AFTER, ADD ]------------------------------------------
#
   <tr>
      <td class="row1">{L_SMTP_PORT}<br /><span class="gensmall">{L_SMTP_PORT_EXPLAIN}</span></td>
      <td class="row2"><input class="post" type="text" name="smtp_port" value="{SMTP_PORT}" size="25" maxlength="50" /></td>
   </tr>

#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM







_________________
Streacom DA2 | SilverStone Titanium SX800-LTI 800W | ASRock X299E-ITX/ac | Intel Core i9-9980XE & be quiet! Dark Rock TF | Kingston HyperX Impact 64 GB DDR4 2666 MHz | NVIDIA Titan RTX 24 GB | Intel SSD Optane 905P 480 GB NVMe U.2 & Intel SSD 750 1,2 TB NVMe U.2 & Intel SSD 660p 2 TB NVMe M.2 & Seagate BackUp Plus Portable 56 TB USB | 55" 4K OLED Dell Alienware AW5520QF & 24" LCD EIZO FlexScan EV2451 | Ergotron LX Wall Mount Keyboard Arm | Logitech Craft | Logitech G603 | Logitech F710 | Harman Kardon Sabre SB 35 & Sennheiser RS 175 | Microsoft Windows 7 Ultimate | APC Back-UPS ES 700 | Lenovo ThinkPad X250 | iPhone X 256 GB & Pitaka Aramid | SilverStone ML05B Milo | Corsair SF600 SFX 600W | ASRock X99E-ITX/ac | Intel Xeon E5-2683 v4 & NOCTUA NH-L12S | Kingston HyperX Savage 32 GB DDR4 2400 MHz | NVIDIA GeForce GT 710 1 GB | Intel SSD Optane Memory 32 GB NVMe M.2 & Intel SSD 730 240 GB SATA | Ubuntu Server
Odpovedať na tému [ Príspevok: 1 ] 


Podobné témy

 Témy  Odpovede  Zobrazenia  Posledný príspevok 
V tomto fóre nie sú ďalšie neprečítané témy. Nefunkcny SMTP port 25 (T-com)

v Sieťové a internetové programy

5

430

14.08.2012 18:37

Denco1 Zobrazenie posledných príspevkov

V tomto fóre nie sú ďalšie neprečítané témy. Pomoc chcem zablokovat SMTP port ve Win

v Operačné systémy Microsoft

2

487

06.02.2007 11:18

tRizzO Zobrazenie posledných príspevkov

V tomto fóre nie sú ďalšie neprečítané témy. Keep Main Admin Admin

v Redakčné systémy

0

619

14.10.2006 14:54

JanoF Zobrazenie posledných príspevkov

V tomto fóre nie sú ďalšie neprečítané témy. ASUS RT-N12D1 - Port Forwarding - nechce mi otvorit port

v Sieťové a internetové programy

0

640

15.09.2015 15:05

Mandy Zobrazenie posledných príspevkov

V tomto fóre nie sú ďalšie neprečítané témy. Nejde otvorit port (port fowarding)

v Sieťové a internetové programy

8

1746

28.10.2013 9:09

159xavier Zobrazenie posledných príspevkov

V tomto fóre nie sú ďalšie neprečítané témy. SMTP

v Ostatné

3

727

22.01.2013 11:32

xxx9955 Zobrazenie posledných príspevkov

V tomto fóre nie sú ďalšie neprečítané témy. smtp server

v Sieťové a internetové programy

0

330

08.06.2010 14:37

davider137 Zobrazenie posledných príspevkov

V tomto fóre nie sú ďalšie neprečítané témy. PHPmailer a smtp

v PHP, ASP

5

976

22.10.2007 19:20

ser1a Zobrazenie posledných príspevkov

V tomto fóre nie sú ďalšie neprečítané témy. SMTP na Azet

v PHP, ASP

2

1363

26.11.2011 19:47

Hawkie Zobrazenie posledných príspevkov

V tomto fóre nie sú ďalšie neprečítané témy. pop3 a smtp

v Sieťové a internetové programy

15

1763

11.04.2007 19:29

Rbot Zobrazenie posledných príspevkov

V tomto fóre nie sú ďalšie neprečítané témy. phpmailer smtp error

v PHP, ASP

1

421

03.02.2011 13:51

walther Zobrazenie posledných príspevkov

V tomto fóre nie sú ďalšie neprečítané témy. SMTP Gmail prestalo fungovat

v Sieťové a internetové programy

2

354

23.05.2010 19:56

Axwell Zobrazenie posledných príspevkov

V tomto fóre nie sú ďalšie neprečítané témy. Gmail smtp prestal odosielať

v Služby a webstránky

0

277

22.10.2020 10:42

LCSLaces Zobrazenie posledných príspevkov

V tomto fóre nie sú ďalšie neprečítané témy. SMTP online vzdialený prístup

v Ostatné

1

366

20.05.2013 18:14

weroro Zobrazenie posledných príspevkov

V tomto fóre nie sú ďalšie neprečítané témy. Thunderbird a SMTP servery

v Sieťové a internetové programy

0

997

04.07.2007 11:59

Rbot Zobrazenie posledných príspevkov

V tomto fóre nie sú ďalšie neprečítané témy. QK SMTP Server 3

v Sieťové a internetové programy

0

293

29.01.2012 10:56

borisko27 Zobrazenie posledných príspevkov


Nemôžete zakladať nové témy v tomto fóre
Nemôžete odpovedať na témy v tomto fóre
Nemôžete upravovať svoje príspevky v tomto fóre
Nemôžete mazať svoje príspevky v tomto fóre

Skočiť na:  

Powered by phpBB Jarvis © 2005 - 2024 PCforum, webhosting by WebSupport, secured by GeoTrust, edited by JanoF
Ako väčšina webových stránok aj my používame cookies. Zotrvaním na webovej stránke súhlasíte, že ich môžeme používať.
Všeobecné podmienky, spracovanie osobných údajov a pravidlá fóra