当前位置: 首页>>代码示例>>PHP>>正文


PHP POD::unbind方法代码示例

本文整理汇总了PHP中POD::unbind方法的典型用法代码示例。如果您正苦于以下问题:PHP POD::unbind方法的具体用法?PHP POD::unbind怎么用?PHP POD::unbind使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在POD的用法示例。


在下文中一共展示了POD::unbind方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: checkStep


//.........这里部分代码省略.........
                                    $pool = DBModel::getInstance();
                                    $pool->reset('Users');
                                    $pool->setAttribute('loginid', $loginid, true);
                                    $pool->setAttribute('name', $name, true);
                                    $pool->setQualifier('userid', 'equals', 1);
                                    $pool->update();
                                    $pool->reset('Users');
                                    $pool->setAttribute('password', $password, true);
                                    $pool->setQualifier('userid', 'equals', 1);
                                    $pool->setQualifier('password', 'not', $password2, true);
                                    $pool->update();
                                    $pool->reset('BlogSettings');
                                    $pool->setAttribute('value', $_POST['blog'], true);
                                    $pool->setQualifier('blogid', 'equals', 1);
                                    $pool->setQualifier('name', 'equals', 'name', true);
                                    $pool->update();
                                    $pool->reset('BlogSettings');
                                    $pool->setAttribute('value', $baseLanguage, true);
                                    $pool->setQualifier('blogid', 'equals', 1);
                                    $pool->setQualifier('name', 'equals', 'language', true);
                                    $pool->update();
                                    $pool->reset('BlogSettings');
                                    $pool->setAttribute('value', $baseTimezone, true);
                                    $pool->setQualifier('blogid', 'equals', 1);
                                    $pool->setQualifier('name', 'equals', 'timezone', true);
                                    $pool->update();
                                    $pool->reset('BlogSettings');
                                    $pool->setAttribute('value', Timestamp::getUNIXtime());
                                    $pool->setQualifier('blogid', 'equals', 1);
                                    $pool->setQualifier('name', 'equals', 'created', true);
                                    $pool->update();
                                }
                                if (!$error) {
                                    POD::unbind();
                                    echo '<script type="text/javascript">//<![CDATA[' . CRLF . 'next() //]]></script>';
                                }
                                ?>
</body>
</html>
<?php 
                            } else {
                                if ($step == 8) {
                                    if ($check) {
                                        return true;
                                    }
                                    $useSSL = Utils_Misc::isSecureProtocol() ? 'true' : 'false';
                                    $filename = $root . '/config.php';
                                    $fp = fopen($filename, 'w+');
                                    // For first entry addition
                                    $database = array('server' => $_POST['dbServer'], 'database' => $_POST['dbName'], 'username' => $_POST['dbUser'], 'port' => $_POST['dbPort'], 'password' => $_POST['dbPassword'], 'prefix' => $_POST['dbPrefix']);
                                    if ($fp) {
                                        fwrite($fp, "<?php\nini_set('display_errors', 'off');\n\$database['server'] = '{$_POST['dbServer']}';\n\$database['dbms'] = '{$_POST['dbms']}';\n\$database['database'] = '{$_POST['dbName']}';\n\$database['port'] = '{$_POST['dbPort']}';\n\$database['username'] = '{$_POST['dbUser']}';\n\$database['password'] = '{$_POST['dbPassword']}';\n\$database['prefix'] = '{$_POST['dbPrefix']}';\n\$service['type'] = '{$_POST['type']}';\n\$service['domain'] = '{$_POST['domain']}';\n\$service['path'] = '{$path}';\n\$service['skin'] = 'periwinkle';\n\$service['favicon_daily_traffic'] = 10; // 10MB\n\$service['useSSL'] = {$useSSL};  // Force SSL protocol (via https)\n//\$serviceURL = 'http://{$_POST['domain']}{$path}' ; // for path of Skin, plugin and etc.\n//\$service['reader'] = true; // Use Textcube reader. You can set it to false if you do not use Textcube reader, and want to decrease DB load.\n//\$service['debugmode'] = true; // uncomment for debugging, e.g. displaying DB Query or Session info\n//\$service['pagecache'] = false; // uncomment if you want to disable page cache feature.\n//\$service['codecache'] = true; // uncomment if you want to enable code cache feature.\n//\$service['debug_session_dump'] = true; // session info debuging.\n//\$service['debug_rewrite_module'] = true; // rewrite handling module debuging.\n//\$service['session_cookie_path'] = \$service['path']; // for avoiding spoiling other textcube's session id sharing root.\n//\$service['allowBlogVisibilitySetting'] = true; // Allow service users to change blog visibility.\n//\$service['externalresources'] = false;  // Loads resources from external storage.\n//\$service['resourcepath'] = 'http://example.com/resource';\t// Specify the full URI of external resource.\n//\$service['autologinTimeout'] = 1209600;\t// Automatic login timeout (sec.)\n//\$service['favicon_daily_traffic'] = 10; // Set favicon traffic limitation. default is 10MB.\n//\$service['skincache'] = true;        // Use skin pre-fetching. Textcube will parse static elements (blog name, title…) only when you change skin. Reduces CPU loads.\n//\$service['cookie_prefix'] = '';        // Service cookie prefix. Default cookie prefix is Textcube_[VERSION_NUMBER].\n//\$database['port'] = 3639;            // Database port number\n//\$database['dbms'] = 'MySQLi';         // DBMS. (MySQL, MySQLi, PostgreSQL, Cubrid.)\n//\$service['memcached'] = true;       // Using memcache to handle session and cache\n//\$memcached['server'] = 'localhost';  // Where memcache server is.\n//\$service['requirelogin'] = false;    // Force log-in process to every blogs. (for private blog service)\n//\$service['jqueryURL'] = '';\t\t// Add URL if you want to use external jquery via CDN. e.g.) Microsoft's CDN: http://ajax.aspnetcdn.com/ajax/jQuery/\n//\$service['lodashURL'] = '';\t\t// Add URL if you want to use external lo-dash via CDN. e.g.) CDNJS' CDN: https://cdnjs.cloudflare.com/ajax/libs/lodash.js/2.4.1/\n?>");
                                        fclose($fp);
                                        @chmod($filename, 0666);
                                    }
                                    if (!isset($_POST['disableRewrite']) || !$_POST['disableRewrite']) {
                                        $filename = $root . '/.htaccess';
                                        $fp = fopen($filename, 'w+');
                                        switch ($_POST['rewriteMode']) {
                                            case 'ISAPI':
                                                // Users must copy these rules to IsapiRewrite4.ini
                                                $htaccessContent = <<<EOF
RewriteRule ^{$path}/(thumbnail)/([0-9]+/.+)\$ {$path}/cache/\$1/\$2 [L,U]
RewriteRule ^{$path}/attach/([0-9]+/.+)\$ {$path}/user/attach/\$1 [L,U]
RewriteCond %{REQUEST_FILENAME} -f
RewriteRule ^{$path}/user+/+(cache)+/+(.+[^/]).(cache|xml|txt|log)\$ - [NC,F,L,U]
开发者ID:hoksi,项目名称:Textcube,代码行数:67,代码来源:setup.php


注:本文中的POD::unbind方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。