Showing posts with label Tech_IT. Show all posts
Showing posts with label Tech_IT. Show all posts

Sunday, July 6, 2008

你也能做"校内网"UCenter Home试用 - 软件频道 | IT168

  【IT168 软件试用】Facebook 入华传闻不断,Myspace中国起名“聚友”,校内网进军白领……社交网站无疑是今年一道靓丽的风景,同时也暗含着一场激烈的角逐。去年一年中,国内的 无数SNS网站相继上线,51.com、海内、蚂蚁网等其中不乏高手,连以出品知名社区论坛软件Discuz!著称的康盛创想(Comsenz)也在4月 的站长年会上强力推出了SNS软件——UCenter Home,通过UCenter Home任何人都可以无门槛的搭建类似于Facebook、海内、校内的SNS网站。此举动无疑加速了国内SNS网站的发展和竞争。

  校内、海内以及康盛创想的UCenter Home都是模仿Facebook开发的,但是都在细节方面更加中国化。校内、海内以及康盛创想的UCenter Home页面风格很相似,功能也大致相同。那校内和UCenter Home又有什么异同吗,笔者做了一个对比~

  一、整体对比

  校内属于千橡互动旗下,校内网大约有1000万注册用户,是中国颇具影响力的SNS网站,在大学生用户中拥有领先地位,并已经开放白领和高中网络。如果能成功开拓白领市场,校内网发展潜力巨大。

  UCenter Home是康盛创想开发的一个建设网站软件,用它可以建立一个与校内类似的网站。特点是完全免费,适应中国的网站市场,2008年4月21 日正式发布,UCenter Home已经成为互联网经营者最可靠的面向SNS应用的技术解决方案。据不完全统计,在发布后短短的7天内内已经有4000多个站长成功使用它搭建了类似 校内为基础的互联网社交网络,并且使用UCenter Home的终端网民用户总数已经高达200万之多。

  点评:前者是运营类网站,后者是独立建站程序,校内和UCenter Home都可以为用户提供免费的SNS服务,不同的是校内只是以网站注册的形式向用户提供免费的个人关系服务,而UCenter Home则为广大站长提供了一个建站工具,让任何人都可以轻松搭建校内一样的SNS站点。

  二、功能对比

  校内网有日志、相册、群组、分享、集市、电影、班级、论坛、礼物等功能。特点是相册支持批量上传,集市也是08年初才推出,一眼看上去就是一个 二手交易市场,分类设置也比较简单,但是大体能够满足一般用户的需求。除了物品交易之外,还设置了工作、房屋,一个比较简单的分类信息系统应该包括的信息 都包括了。

校内首页

  UCenter Home有迷你博客、日志、相册、选吧、分享、论坛、视频等功能。校内有的功能基本都有了,相册同样支持批量上传,选吧代替了群组。没有电影、礼品、集市等相对花哨的功能。

UCenter Home首页

  点评:校内网礼品这个功能比较实用,第一能提高用户的交流,情感,赠送礼品增进友谊;第二能提高网站的活跃度。而UCenter Home则少了一些花哨的功能,不过这个不是问题,因为UCenter Home最大的特点就是通用类建站软件,通用性和修改自由度都比较高。并且这个产品刚刚发布1.0版本,相信在下一个版本会更加完美。也更加符合国内 SNS用户的需求!

  三、个人页面

  作为社交网站的重要组成部分,个人页面是网友用来展示自己的重要途径。

校内个人空间

  

UCenter Home个人空间

  点评:

  校内和UCenter Home的个人主页功能基本是一样的,不同的是UCenter Home在个人主页上有更多的人性化选项,比如最近的访客,访问次数等。并且UCenter Home比校内更考虑用户的需求,在隐私和筛选方面提供了多种设置,另外还为用户提供了多种模板,让个人主页更加绚丽多彩。不知道在校内在改版之后的更新 中是否会添加这些部分内容呢。

  总结:

  UCenter Home的确能搭建与校内类似的网站,在技术方面确实能够与校内媲美,甚至某些技术超过校内,但具体运营是否成功,那就要看资源配置以及团队运营经验了。相信凭借UCenter Home这款产品,千千万万个“校内”站起来已经指日可待了!

Wednesday, July 2, 2008

网页中嵌入Flash的方法讨论

 

作者:old9 时间: 2006-12-07 文档类型:原创 来自:蓝色理想

Flash 嵌入的问题论坛中有人问了好多次,到底应该怎么用,为什么通不过验证,要通过验证怎么办等等等。
讨论中也出现了不少的误解,所以我单开一个帖总结一下我所知道的东西,不想看我罗嗦的直接跳到最后看结论就可以了。

一、传统的方法

<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"
   codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/
swflash.cab#version=7,0,0,0"
   width="550" height="400" id="Untitled-1" align="middle">
<param name="allowScriptAccess" value="sameDomain" />
<param name="movie" value="mymovie.swf" />
<param name="quality" value="high" />
<param name="bgcolor" value="#ffffff" />
<embed src="mymovie.swf" quality="high" bgcolor="#ffffff" width="550"
   height="400" name="mymovie" align="middle" allowScriptAccess="sameDomain"
   type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
</object>

这方法是使用 object 和 embed 标签来嵌入,细心的会发现,object 的很多参数和 embed 里面的很多属性是重复的,为什么这样做?为了浏览器兼容性,有的浏览器支持 object,有的支持 embed,这也是为什么要修改 Flash 的参数时两个地方都要改的原因。这种方法是 Macromedia 一直以来的官方方法,最大限度的保证了 Flash 的功能,没有兼容性问题。但是它现在不那么好用了:

无法通过验证,由于为了兼容性而嵌入的 embed 标签是不符合 W3C 的规范的。当然,如果你不在乎什么规范不规范,另当别论。

微软由于种种原因,在 sp2 后限制了 IE 的 ActiveX 的使用模式,就是在页面中的 ActiveX 有一个虚框,需要用户点击一次才能正常交互。Flash是作为一个 ActiveX 嵌入到网页中的,所以它也会受牵连,只有通过 JS 嵌入 Flash 才能解决这个问题。

没有 Flash 版本检测,如果版本浏览器的flash插件版本不够,或者不能正常显示你的 swf 文件,或者会弹出一个 ActiveX 的确认安装的框——这个框对很多用户来说是很恐怖的。

二、只用 object 的方法
这种方法的名字叫做 Flash satay,最早是2002年由 Drew McLellan 发表在 A List Apart 上,后来又经过了几次完善:

<object type="application/x-shockwave-flash
data="c.swf?path=movie.swf"
width="400" height="300">
<param name="movie"
value="c.swf?path=movie.swf" />
<img src="noflash.gif"
width="200" height="100" alt="" />
</object>

这方法没 embed 了,可以通过验证,是标准的嵌入 Flash 的方法,浏览器兼容性也不错,看起来几乎完美,不过还是有问题的:

需要一个 holder swf 来加载你的目标 swf 以保证 IE 中的 stream 能力,如果你需要通过 flashvars 来传参,或者和页面的 JS 交互,会很麻烦。

同上面第二点,ActiveX的虚框问题。

继续同上没有版本检测

还是有少数用户代理(比如一些版本的 safari 和一些屏幕阅读器)不认这种方式,有 bug。

三、用JS嵌入的方法

用JS嵌入就是各有各的嵌入方法了,有嵌得好的有嵌得不好的。有人用 document.write 直接写,这法子说实话不大好,感觉 hack 成分多了,有点为了验证而验证的意思,而且没有体现出什么 JS 的优势。我觉得一个好的 JS 嵌入脚本,在保证 Flash 应有功能的基础上,⒒?JS 的优势应该要有版本检测,要能很好解决可访问性问题(也就是用户在无法浏览 Flash 内容或禁用 JS 的时候应该如何处理的问题),要易于重复使用。
我知道的比较常见的 JS 嵌入方法有以下几个

SWFObject

UFO - Unobtrusive Flash Objects

Macomedia(现在是Adobe了..)提供的脚本[这里]和[这里]。

我 SWFObject 用的比较多,就挑它来说一些这种方法的优点:

IE中没有讨厌的虚框问题了。

提供了完善的版本检测功能,如果版本不够则显示其他东西,比如图片或文字。

易于使用,只要在页面头加载一个 .js 文件,然后 HTML 写一个容器,里面放普通的文本或图片(用于无法显示 Flash 时显示),最后用脚本来替换这个元素里面的内容为 Flash。

可以通过验证——当然这个不是重点,只是顺带效果罢了。

四、我的结论

现阶段用 JS 嵌入 Flash 是最完美的方法,虽然这法子这也是由于浏览器的种种问题而作出的妥协。
但它在保证 Flash 功能的前提下还利用 JS 提供了额外的好处,再者又已经有人写了很完善的嵌入脚本可以方面地下载使用(推荐 SWFObject),我们还有什么理由不用它呢?

SWFObject 那网页是英文的,这里写个简单的用法教程

下载它的.js文件,在这里: http://blog.deconcept.com/swfobject/swfobject1-4.zip (如果链接失效可能是版本有更新,请用上面给出的地址去主页下载最新版本)

在你的 HTML 页面头部<head>区嵌入这个脚本文件:<script type="text/javascript" src="swfobject.js"></script>

在你的 HTML 中写一个用来放 Flash 的容器,比如<div>,并随便给一个 id 比如 flashcontent。然后在里面放上你的替换内容。

<div id="flashcontent">
这里放替换内容,用来在 Flash 无法显示时显示。
</div>

使用脚本替换这个内容:

<script type="text/javascript">
   var so = new SWFObject("movie.swf", "mymovie", "200", "100", "7", "#336699");
//参数意思: 地址,Flash 的 id(不是容器的 id),宽,高,版本需求,背景颜色
//这是最基本的,如果你要高级的设置,就仔细翻翻说明吧。
   so.write("flashcontent");
</script>

这脚本可以写在 HTML 中也可以写在外部 .js 文件中。

OK

经典论坛讨论
http://bbs.blueidea.com/thread-2699979-1-2.html

出处:蓝色理想

如何測量網路連線速度?

本校聯外網路已經換裝成光纖連接到市政府,上網速度快很多~~到底多快?下列幾種方式供大家測試:

      


1.到Hinet測速網頁測看看,正常情況下一定會破表的!


 


2.在dos模式下用ping指令測試幾個大站的回應時間:


 (1)ping www.ntu.edu.tw  (台大)


  Pinging w3.cc.ntu.edu.tw [140.112.8.130] with 32 bytes of data:


  Reply from 140.112.8.130: bytes=32 time<10ms TTL=249


  Reply from 140.112.8.130: bytes=32 time<10ms TTL=249


  Reply from 140.112.8.130: bytes=32 time<10ms TTL=249


  Reply from 140.112.8.130: bytes=32 time<10ms TTL=249


 (2)ping www.hinet.net   (Hinet)


  Pinging www.hinet.net [168.95.1.88] with 32 bytes of data:


  Reply from 168.95.1.88: bytes=32 time<10ms TTL=245


  Reply from 168.95.1.88: bytes=32 time<10ms TTL=245


  Reply from 168.95.1.88: bytes=32 time<10ms TTL=245


  Reply from 168.95.1.88: bytes=32 time<10ms TTL=245


 (3)ping www.kimo.com  (奇摩)


  Pinging rc.tpe.yahoo.com [202.1.237.23] with 32 bytes of data:


  Reply from 202.1.237.23: bytes=32 time<10ms TTL=244


  Reply from 202.1.237.23: bytes=32 time<10ms TTL=244


  Reply from 202.1.237.23: bytes=32 time<10ms TTL=244


  Reply from 202.1.237.23: bytes=32 time<10ms TTL=244


 


 其中,time<10ms表示非常快,在家用ADSL上Internet,回應時間


  通常都在100ms左右,撥接則超過150ms.


 


3.到FTP大站去下載,看下載速度:


(1)到Hinet下載Netscape,哇!每秒9.9Mb,大半是Proxy的功勞啦!




 不相信這麼快?好!再試別一家網站:  


(2)到'史來姆的第一個家'下載ACDSee 5.0,每秒1.6Mb,夠快吧!




  


4.看本校的網路流量分析


 


  請到市網流量統計去看看


  


about:blank

Thursday, June 26, 2008

没有安装WEB服务,却提示80端口被占用问题 - PHP俱乐部

没有安装WEB服务,却提示80端口被占用问题 - PHP俱乐部

昨天到了新公司上班,主要做PHP的开发,免不了要按装APACHE+PHP+MYSQL,由于偶做过一个安装包,用了大约几秒钟就安装好了,不过有点问 题,说是80端口被占用了,不过由于用别人用过的电脑,偶只是以为安装过像IIS等的WEB服务,所以也没有在意。不过老是用8080端口,感觉不是很习 惯,于是找了一下服务里面,没有IIS,也没有像WEB服务的软件,觉得挺奇怪的

在命令行窗口中运行 netstat -a ,80端口的确被占用了,再用 netstat -ab看了一下,用80端口的居然是skype -- 偶原来基本上只用的,只是到了新公司,被强制要同时用skype,msn, aim和 yahoo messenger。

再打开skype,在option => connection 里面找到了答案,如图所示:

去掉 use port 80 and 443 as alternatives incoming connections

再保存,然后退出skype(一定要这样才可以释放80端口,如果要继续用skype再打开就可以了)

安装或运行程序时提示 80等端口被占用情况的解决 - 龙昱帅帅--西�

安装或运行程序时提示 80等端口被占用情况的解决

今天装win2003 iis6 后,不能启动,提示有另一个程序正在运行,在网上搜过之后,解决:

在win03的cmd命令窗口输入netstat -abn ->c:/port80.txt
然后到c盘port80.txt文件中找到占用80端口的程序pid,记下pid。

打开任务管理器,点击“查看”/选择列,勾选“PID(进程标识符)”,然后单击“进程”标签,找到80端口对应的pid,就可以看到是那个程序占用的了,更改这个程序的port,再重启这个程序,使更改生效。

再次启动iis,一切ok。

我是安装apache提示端口占用,用同样的方法,以前很少遇到,这次是应为安装的迅雷bt把80端口占用了,用上面的方法,顺利解决。

Monday, June 23, 2008

Setup Guide

Translation: Japanese » English



Setup Guide OpenPNE

Last Updated: 2007/12/20
Table of Contents

* 0. INTRODUCTION
* 1. Installation files
* 2. Configuration file changes
* 3. Database is set up
o 3-1. MySQL 4.1 (5.x) if
o 3-2. MySQL 4.0 cases
* 4. Server settings
o 4-1. Apache settings
o 4-2.'s mail server settings
o 4-3. cron set
* 5. Module run Setup
* 6. Configuration management screen
o 6-1.'s access to the control panel
o 6-2. module of the control panel to change the name
o 6-3. screen in a separate domain management operations

0. INTRODUCTION

This document, OpenPNE version 2.10 based on the language.

OpenPNE the following server environment to operate in as expected.

Web server
Apache is recommended
PHP
PHP 4.3.x / 5.0.x or later

* PHP available to the mbstring extension
* PHP libraries available from GD (JPEG / GIF / PNG support)
* PHP extension of the use of recommended mcrypt

Database server.
MySQL 4.0 or higher (4.1 or higher recommended)
Mail server (mail from a mobile post)
Postfix 2.1.x or higher recommended (Postfix mail server also works with other reports)

1. Installation files

OpenPNE included in the directory and file to the following Web server set up, please.

-- OPENPNE_DIR
├ bin
├ lib <--- OPENPNE_LIB_DIR ├ var <--- OPENPNE_VAR_DIR │ ├ img_cache │ │ ├ gif [777] │ │ │ ├ w_h [777] │ │ │ ├ w_h_raw [777] │ │ │ ├ w76_h76 [777] │ │ │ ├ w120_h120 [777] │ │ │ ├ w180_h180 [777] │ │ │ └ w240_h320 [777] │ │ ├ jpg [777] │ │ │ ├ w_h [777] │ │ │ ... [777] │ │ └ png [777] │ │ ├ w_h [777] │ │ ... [777] │ ├ log [777] │ ├ rss_cache [777] │ ├ templates_c [777] │ └ tmp [777] ├ webapp <--- OPENPNE_WEBAPP_DIR ├ webapp_biz <--- OPENPNE_WEBAPP_BIZ_DIR └ webapp_ext <--- OPENPNE_WEBAPP_EXT_DIR (Viewed from a browser) -- Public_html (directory name is changed) ├ config.inc.php (OPENPNE_DIR directory specified) ├ index.php ... ※ [777] is an example. Appropriate environment to match the value of replacing please. public_html directory path and you can change the name. OPENPNE_DIR public_html directory path directly under (the default assignment) If you change the outside, public_html config.inc.php immediate renewal of the contents please. public_html directory if you change the name, after "2. configuration file change", OPENPNE_PUBLIC_HTML_DIR to modify the content, please. Also, OPENPNE_DIR / var directory of all the written permission from a web server (for example, 777) to please. $ Chmod-R 0777 var / * OpenPNE 2.2 from the image by placing the public_html directory cache, Apache directly from the load to do it. (OpenPNE set in config.php file, OPENPNE_IMG_CACHE_PUBLIC to true please) If you turn this feature, Apache's mod_rewrite to enable the setting,. Htaccess to be available, or even similar to httpd.conf to be written. -- OPENPNE_DIR ├ bin ├ lib <--- OPENPNE_LIB_DIR ├ var <--- OPENPNE_VAR_DIR │ ├ log [777] │ ├ rss_cache [777] │ ├ templates_c [777] │ └ tmp [777] ├ webapp <--- OPENPNE_WEBAPP_DIR ├ webapp_biz <--- OPENPNE_WEBAPP_BIZ_DIR └ webapp_ext <--- OPENPNE_WEBAPP_EXT_DIR (Viewed from a browser) -- Public_html (directory name is changed) ├ config.inc.php (OPENPNE_DIR directory specified) ├ index.php ├ img │ ├. Htaccess │ ├ index.php │ ├ gif [777] │ │ ├ w_h [777] │ │ ├ w_h_raw [777] │ │ ├ w76_h76 [777] │ │ ├ w120_h120 [777] │ │ ├ w180_h180 [777] │ │ └ w240_h320 [777] │ ├ jpg [777] │ │ ├ w_h [777] │ │ ... [777] │ └ png [777] │ ├ w_h [777] │ ... [777] ... ※ [777] is an example. Appropriate environment to match the value of replacing please. 2. Configuration file changes OPENPNE_DIR / config.php.sample to OPENPNE_DIR / config.php config.php copy of the environment, according to edit it. OPENPNE_URL Based URL (absolute path) DSN (MySQL) database to connect to information. Connecting a user name, password, the host server and database name. ENCRYPT_KEY Members login encryption keys used (56 characters in the ASCII characters) Others can not be easily guessed by a string as you please. MAIL_SERVER_DOMAIN E-mail's domain name server (a mobile version if you use a post-mail) If necessary, please rewrite other settings. Debug settings (OPENPNE_DEBUGGING) is the production operation to migrate to 0 when it is recommended. public_html directory if you change the name, OPENPNE_PUBLIC_HTML_DIR rewritten to change the name of the directory, please. PHP safe mode setting is enabled, MAIL_SET_ENVFROM please set to false. 3. Database is set up 3-1. MySQL 4.1 or later (5.x) if If you create a new database, SQL following query on the database. (※ rental database server, etc. already have been provided if you do not run.) CREATE DATABASE `DBNAME` DEFAULT CHARACTER SET utf8; Preparation of the database (for example: DBNAME) on the following SQL statement to execute the order. 1. OPENPNE_DIR/setup/sql/mysql41/install/install-2.10-create_tables.sql 2. OPENPNE_DIR/setup/sql/mysql41/install/install-2.10-insert_data.sql If you use PNEBIZ In addition, the following SQL statement, please run. * OPENPNE_DIR/setup/sql/mysql41/option/pnebiz-header.sql [Example] (1) Create a database (optional) $ Mysql-u username-p mysql> CREATE DATABASE `DBNAME` DEFAULT CHARACTER SET utf8;
mysql> exit;

(2) OpenPNE setup for running SQL
$ Cd setup/sql/mysql41/install /
$ Mysql-u username-p - default-character-set = utf8 DBNAME CREATE DATABASE `DBNAME`;
mysql> exit;

(2) OpenPNE setup for running SQL
$ Cd setup/sql/mysql40/install /
$ Mysql-u username-p DBNAME
ServerName openpne.example.com
DocumentRoot / home / username / OpenPNE / public_html /
DirectoryIndex index.html index.php


Once you httpd.conf, Apache, please restart.
4-2.'s Mail server settings

If you do not use a mobile version of the following configuration is required.

MAIL_SERVER_DOMAIN to receive e-mail, e-mail address is available for your system.
Old-style format new items
New registration / login URL retrieve get @ MAIL_SERVER_DOMAIN get @ MAIL_SERVER_DOMAIN
Change the profile photo pXXX-YYY @ MAIL_SERVER_DOMAIN pXXX @ MAIL_SERVER_DOMAIN
Community bulletin board posting mail tXXX-YYY @ MAIL_SERVER_DOMAIN tXXX @ MAIL_SERVER_DOMAIN
E-mail posting diary bXXX-YYY @ MAIL_SERVER_DOMAIN blog @ MAIL_SERVER_DOMAIN
Photo diary changes biXXX-YYY @ MAIL_SERVER_DOMAIN biXXX @ MAIL_SERVER_DOMAIN
Community change ciXXX-YYY @ MAIL_SERVER_DOMAIN ciXXX @ MAIL_SERVER_DOMAIN
Events change the topic photo tiXXX-YYY @ MAIL_SERVER_DOMAIN tiXXX @ MAIL_SERVER_DOMAIN

* XXX is a number.
* YYY there are 12 bytes of alphanumeric characters ([0-9 a-f] (12)).

The new format, both old-style mail or accept the setting config.php (MAIL_ADDRESS_HASHED) by the switch.

The new format is the post-e-mail address From an impersonation of security measures for the introduction. From measures to impersonate (IP restrictions etc.) and the mail server side, if the old format of operational problems.

Forward-mail server settings, using these e-mail to the mail, following a set of commands.

"| / usr / bin / php OPENPNE_DIR / bin / mail.php"

4-3. Cron set

In the example set]

cron file additional authority to run.

$ Chmod 0755 bin / *. cron

/ etc / crontab following to describe.

# 6 o'clock to send mail and RSS updates every 20 minutes
00 6 * * * root sh OPENPNE_DIR / bin / tool_send_daily_news.cron OPENPNE_DIR / bin / [bin_path] / php
00 6 * * * root sh OPENPNE_DIR / bin / tool_send_birthday_mail.cron OPENPNE_DIR / bin / [bin_path] / php
00 6 * * * root sh OPENPNE_DIR / bin / tool_send_schedule_mail.cron OPENPNE_DIR / bin / [bin_path] / php
* / 20 * * * * root sh OPENPNE_DIR / bin / tool_rss_cache.cron OPENPNE_DIR / bin / [bin_path] / php

[bin_path] is, PHP executable file is installed in the directory (for example, / usr / bin).

The Daily News sent a script for the Daily News sent notice of the results logged. / etc / crontab described as follows, and to receive e-mail.

00 6 * * * root sh OPENPNE_DIR / bin / tool_send_daily_mail.cron OPENPNE_DIR / bin / [bin_path] / php | mail-s "daily news log" example@example.com

5. Module run Setup

Browser to access the following URL, please. (After completing the setup can not access)

OPENPNE_URL? M = setup
(For example) http://openpne.example.com/?m=setup

The SNS, the initial members of the administrative account.
6. To access the control panel
6-1.'s Access to the control panel

Following URL to access the setup of the control module set for the account name and password to log in, please. After logging in, menu management "SNS" basic information from the SNS can be set up.

OPENPNE_URL? M = admin
(For example) http://openpne.example.com/?m=admin

The menu management "setting the control panel> page randomly generated name" random generation and management to run the screen in the page to change the name because it can improve security for sure you run the setup after it featured on Masu.
6-2. Module of the control panel to change the name (optional)

URL of the control panel changes, in a configuration file config.php ADMIN_MODULE_NAME please change the value.
For example, abcde change,

OPENPNE_URL? M = abcde
(For example) http://openpne.example.com/?m=abcde

From the URL you to access the control panel.
6-3. Manage and operate the domain to another screen (optional)

Usually the control panel to operate as a separate domain, or if you want to use the Basic authentication, for example, if you want to restrict access, Web server to read from the public directory, you may want to divide the operation.

OpenPNE does, public_html following file management screen for the public directory, config.inc.php rewrite the contents of this can be achieved.
The directory structure

-- OPENPNE_DIR
├ bin
├ lib
├ var
├ webapp
├ webapp_ext
├ webapp_biz
└ config.php

[http://sns.example.com/]
-- Public_html (directory name is changed)
├ config.inc.php
├ index.php
...
Copy ↓

[http://admin.example.com/]
-- Admin_public_html (directory name is changed)
├ config.inc.php (← rewrite this file)
├ index.php
...

config.inc.php (emphasis added part of the two items.)



More than in the control panel for the URL (example: http://admin.example.com/) access to the set.

Meanwhile, the usual URL (example: http://sns.example.com/?m=admin) does not manage access to the screen so that, config.php in the following set.
config.php

/ / Disable the module
$ GLOBALS [ '_OPENPNE_DISABLE_MODULES'] = array ( 'admin', 'setup');

This setup is complete. Invite your friends and try and write a diary or to create your own SNS please!