MRatWork Forum by Mustafa Ramadhan - server alias MR7

Sponsor:
Server and Web Integrator
Link:
6.5.0 or 7.0.0
Click for "How to install"
Donation/Sponsorship:
Kloxo-MR is open-source.
Donate and or Sponsorship always welcome.
Click to:

MRatWork Forum | Please login or register. | 2017-11-08, 00:13:33

- MRatWork Forum by Mustafa Ramadhan »
- Language Specific Discussions »
- Indonesia Users »
- server alias MR7

« previous next »

- Print

Pages: [1] Go Down

### Author Topic: server alias MR7 (Read 1302 times)

0 Members and 1 Guest are viewing this topic.

#### Miki

- Senior Member
- Posts: 167
- Karma: +0/-0

##### server alias MR7

« on: 2015-04-12, 03:35:42 »
Selamat pagi Master server alias tidak berfungsi sebagaimana pada versi sebelumnya?
saya sudah lakukan mengahapus seluruh server alias namun ketika ingin memasukan kembali ada masalah pada server alias tersebut tidak menginjinkan memasukan 1 buah karater' contoh:
nama domain: mratwork.com
server alias: m
-- sehingga pada browser dapat dipanggil dengan : m.mratwork.com
pada versi sebelumnya server alias berjalan sebagaimana yang diharapkan.
Mohon pencerahan master.. thx
« Last Edit: 2015-04-12, 04:31:54 by Miki »
Logged
"the freedom speak is expression to exchange knowledge"

#### MRatWork

- Administrator
- The Elite
- Posts: 15,381
- Karma: +112/-9
- Gender:

##### Re: server alias MR7

« Reply #1 on: 2015-04-12, 09:13:57 »
Ini karena proses input melalui mekanisme validasi yang celakanya 1 huruf tidak diizinkan.
Akan saya perbaiki sehingga 1 huruf atau angka diizinkan.
Logged
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

#### MRatWork

- Administrator
- The Elite
- Posts: 15,381
- Karma: +112/-9
- Gender:

##### Re: server alias MR7

« Reply #2 on: 2015-04-12, 09:23:26 »
Jika anda segera ingin bisa 1 huruf/angka, lakukan perubahan:
dari:
Code: [Select]

    function validate_hostname_name($name, $bypass = null)
    {
    	global $gbl, $sgbl, $login, $ghtml;

    	if (!preg_match('/^([0-9a-z][0-9a-z\-\.]{1,126}[0-9a-z])$/i', $name) && $name != "__base__") {
    		throw new lxException($login->getThrow('invalid_subdomain'), '', $name);
    	}

    	if (strlen($name) > 128) {
    		throw new lxException($login->getThrow('more_than_128_chars'), '', $name);
    	}
    }

    function validate_server_alias($name, $bypass = null)
    {
    	global $gbl, $sgbl, $login, $ghtml;
    /*
    	// MR -- don't need *.* for purpose http://www.i.am.in.hostspectra.com
    	if (!preg_match('/^(([0-9a-z][0-9a-z\-\.]{1,126}|\*\.|)([0-9a-z]|\*))$/i', $name) && $name != "__base__") {
    		throw new lxException($login->getThrow('invalid_server_alias'), '', $name);
    	}
    */
    	// MR -- enough * for all subdomain!
    	if (!preg_match('/^(([0-9a-z][0-9a-z\-\.]{1,126}[0-9a-z]|\*))$/i', $name) && $name != "__base__") {
    		throw new lxException($login->getThrow('invalid_subdomain'), '', $name);
    	}

    	if (strlen($name) > 128) {
    		throw new lxException($login->getThrow('more_than_128_chars'), '', $name);
    	}
    }

ke:
Code: [Select]

    function validate_hostname_name($name, $bypass = null)
    {
    	global $gbl, $sgbl, $login, $ghtml;

    	if (!preg_match('/^([0-9a-z]{1,1}[0-9a-z\-\.]{0,126}[0-9a-z]{0,1})$/i', $name) && $name != "__base__") {
    		throw new lxException($login->getThrow('invalid_subdomain'), '', $name);
    	}

    	if (strlen($name) > 128) {
    		throw new lxException($login->getThrow('more_than_128_chars'), '', $name);
    	}
    }

    function validate_server_alias($name, $bypass = null)
    {
    	global $gbl, $sgbl, $login, $ghtml;

    	// MR -- enough * for all subdomain!
    	if (!preg_match('/^(([0-9a-z]{1,1}[0-9a-z\-\.]{0,126}[0-9a-z]{0,1}|\*))$/i', $name) && $name != "__base__") {
    		throw new lxException($login->getThrow('invalid_subdomain'), '', $name);
    	}

    	if (strlen($name) > 128) {
    		throw new lxException($login->getThrow('more_than_128_chars'), '', $name);
    	}
    }

pada '/usr/local/lxlabs/kloxo/httpdocs/lib/html/lib.php'
Logged
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

#### Miki

- Senior Member
- Posts: 167
- Karma: +0/-0

##### Re: server alias MR7

« Reply #3 on: 2015-04-12, 15:04:04 »
MANTAF.. luar biasa.. I love kloxo-mr
Terima kasih Master.. mungkin saya masih perlu pencerahaan lagi untuk yang blm fixednya'.. jika sudah tidak ada lagi trouble.. Donasi untuk versi final mr7 ini siap dikirim..
Logged
"the freedom speak is expression to exchange knowledge"

#### MRatWork

- Administrator
- The Elite
- Posts: 15,381
- Karma: +112/-9
- Gender:

##### Re: server alias MR7

« Reply #4 on: 2015-04-12, 15:17:33 »
Mengapa tidak pakai '*' (wildcards) saja?.
Logged
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

#### Miki

- Senior Member
- Posts: 167
- Karma: +0/-0

##### Re: server alias MR7

« Reply #5 on: 2015-04-12, 15:35:14 »
Quote from: MRatWork on 2015-04-12, 15:17:33

> Mengapa tidak pakai '*' (wildcards) saja?.

waduh kalau pakai ini yang ada bisa berantakan semua wildcard lari ke satu domain.. saya lebih suka bisa membuat banyak subdomain dari pada mengalihkan seluruh sub pada satu domain'.. hal seperti ini pada versi sebelumnya dulu kita pernah membahasnya.. saya merasa sudah cukup dan bermanfaat atas pencerahaan diatas yang Master berikan..
Logged
"the freedom speak is expression to exchange knowledge"

- Print

Pages: [1] Go Up
« previous next »

- MRatWork Forum by Mustafa Ramadhan »
- Language Specific Discussions »
- Indonesia Users »
- server alias MR7

MRatWork Affiliates: BIGRAF(R) Inc. House of LMAR EFARgrafix

- Design By SMFSimple.com
- SMF 2.0.14 | SMF © 2017, Simple Machines

Page created in 0.038 seconds with 16 queries.

Mirror created by MasterkinG32.CoM