Changeset 7020
- Timestamp:
- 11/20/08 17:02:05 (7 weeks ago)
- Location:
- trunk
- Files:
-
- 1 removed
- 41 modified
-
dispatcher.php (modified) (1 diff)
-
interface/index.php (modified) (1 diff)
-
interface/owner/control/user/detail/index.php (modified) (1 diff)
-
interface/owner/control/user/index.php (modified) (1 diff)
-
interface/owner/data/index.php (modified) (1 diff)
-
interface/owner/setting/account/index.php (modified) (2 diffs)
-
interface/owner/setting/blog/index.php (modified) (2 diffs)
-
interface/owner/skin/sidebar/initialize/index.php (modified) (1 diff)
-
interface/owner/skin/sidebar/setPlugin/index.php (modified) (1 diff)
-
library/auth.php (modified) (2 diffs)
-
library/context.php (modified) (3 diffs)
-
library/data/Core.php (modified) (4 diffs)
-
library/data/Setting.php (modified) (2 diffs)
-
library/includeForBlog.php (modified) (1 diff)
-
library/initialize.php (modified) (1 diff)
-
library/loader.php (modified) (1 diff)
-
library/model/blog.blogSetting.php (modified) (1 diff)
-
library/model/blog.service.php (modified) (1 diff)
-
library/model/common.plugin.php (modified) (2 diffs)
-
library/model/common.setting.php (modified) (1 diff)
-
library/plugin/Misc.php (modified) (1 diff)
-
library/plugin/PluginCustomConfig.php (modified) (1 diff)
-
library/settings.php (modified) (1 diff)
-
library/skin/BlogSkin.php (modified) (4 diffs)
-
library/suri.php (deleted)
-
library/view/view.php (modified) (6 diffs)
-
plugins/BlogIcon/index.php (modified) (1 diff)
-
plugins/CL_OpenID/index.php (modified) (2 diffs)
-
plugins/CT_RecentRP_Default/index.php (modified) (1 diff)
-
plugins/CT_Start_Default/index.php (modified) (1 diff)
-
plugins/DateConverter/index.php (modified) (1 diff)
-
plugins/FM_Modern/index.php (modified) (2 diffs)
-
plugins/GoogleMap/index.php (modified) (6 diffs)
-
plugins/KeywordUI/index.php (modified) (1 diff)
-
plugins/MT_Meta_RecentPS_Default/index.php (modified) (5 diffs)
-
plugins/PN_Referer_Default/index.php (modified) (1 diff)
-
plugins/PN_Subscription_Default/index.php (modified) (5 diffs)
-
plugins/SB_Spacer/index.php (modified) (2 diffs)
-
plugins/ST_TeamBlogSettings/index.php (modified) (6 diffs)
-
plugins/TattertoolsBirthday/index.php (modified) (2 diffs)
-
plugins/URLkeeper/index.php (modified) (1 diff)
-
plugins/refererkeyword/index.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/dispatcher.php
r7015 r7020 84 84 // loads its necessary libraries, models and components. 85 85 // before actual execution. 86 $gCacheStorage = new globalCacheStorage; 86 87 require(ROOT.'/'.$context->accessInfo['interfacePath']); 87 88 -
trunk/interface/index.php
r7005 r7020 47 47 48 48 // Redirect for ipod touch / iPhone 49 if( setting::getBlogSettingGlobal('useiPhoneUI',true) && (isset($_SERVER['HTTP_USER_AGENT']) && (strpos($_SERVER['HTTP_USER_AGENT'],'iPod') || strpos($_SERVER['HTTP_USER_AGENT'],'iPhone')))){49 if(Setting::getBlogSettingGlobal('useiPhoneUI',true) && (isset($_SERVER['HTTP_USER_AGENT']) && (strpos($_SERVER['HTTP_USER_AGENT'],'iPod') || strpos($_SERVER['HTTP_USER_AGENT'],'iPhone')))){ 50 50 header("Location: $blogURL/i"); exit; 51 51 } -
trunk/interface/owner/control/user/detail/index.php
r6958 r7020 16 16 $usersetting= POD::queryRow("SELECT * FROM `{$database['prefix']}Users` WHERE userid = " . $uid); 17 17 $usersetting['owner']= POD::queryCell("SELECT userid FROM `{$database['prefix']}Teamblog` WHERE acl & ".BITWISE_OWNER." != 0 AND blogid = " . $blogid); 18 $AuthToken = setting::getUserSettingGlobal('AuthToken',null,$uid);18 $AuthToken = Setting::getUserSettingGlobal('AuthToken',null,$uid); 19 19 ?> 20 20 <script type="text/javascript"> -
trunk/interface/owner/control/user/index.php
r6993 r7020 69 69 <td><?php echo $row['name']?></td> 70 70 <td><?php echo ($row['lastLogin']?date("Y/m/d H:i:s T",$row['lastLogin']):'<span class="warning">'._t('아직 로그인하지 않았습니다.').'</span>');?></td> 71 <td><?php if(empty($row['lastLogin']) || null !== setting::getUserSettingGlobal('AuthToken',null,$row['userid'])) echo setting::getUserSettingGlobal('AuthToken',null,$row['userid']);?></td>71 <td><?php if(empty($row['lastLogin']) || null !== Setting::getUserSettingGlobal('AuthToken',null,$row['userid'])) echo Setting::getUserSettingGlobal('AuthToken',null,$row['userid']);?></td> 72 72 </tr> 73 73 <?php -
trunk/interface/owner/data/index.php
r7012 r7020 266 266 <p><?php echo _f('서버에 %1에 백업한 파일이 존재합니다.',$fileTime);?></p> 267 267 <?php 268 $apikey = setting::getUserSettingGlobal('APIKey',null,getUserId());268 $apikey = Setting::getUserSettingGlobal('APIKey',null,getUserId()); 269 269 if($apikey!=null) { 270 270 ?> -
trunk/interface/owner/setting/account/index.php
r6958 r7020 378 378 <dt><span class="label"><?php echo _t('API 용 비밀번호');?></span></dt> 379 379 <dd> 380 <input type="text" style="width:14em" class="input-text" id="TCApiPassword" name="TCApiPassword" value="<?php echo setting::getUserSettingGlobal('APIKey',null,getUserId());?>" />380 <input type="text" style="width:14em" class="input-text" id="TCApiPassword" name="TCApiPassword" value="<?php echo Setting::getUserSettingGlobal('APIKey',null,getUserId());?>" /> 381 381 <input type="button" class="input-button" value="<?php echo _t('임의로 생성')?>" onclick="chooseBlogPassword()" /> 382 382 <input type="button" class="input-button" value="<?php echo _t('관리자 비밀번호를 그대로 사용')?>" onclick="clearBlogPassword()" /> … … 554 554 <dd> 555 555 <?php 556 $currentDelegate = setting::getBlogSettingGlobal( 'OpenIDDelegate', '' );556 $currentDelegate = Setting::getBlogSettingGlobal( 'OpenIDDelegate', '' ); 557 557 ?> 558 558 <select id="openid_for_delegation"> -
trunk/interface/owner/setting/blog/index.php
r6958 r7020 692 692 </dl> 693 693 <?php 694 $openidonlycomment = setting::getBlogSettingGlobal( "AddCommentMode", "" );694 $openidonlycomment = Setting::getBlogSettingGlobal( "AddCommentMode", "" ); 695 695 if( $openidonlycomment == 'openid' ) { 696 696 $openidonlycomment = "checked='checked'"; … … 699 699 } 700 700 701 $openidlogodisplay = setting::getBlogSettingGlobal( "OpenIDLogoDisplay", 0 );701 $openidlogodisplay = Setting::getBlogSettingGlobal( "OpenIDLogoDisplay", 0 ); 702 702 if( $openidlogodisplay ) { 703 703 $openidlogodisplay = "checked='checked'"; -
trunk/interface/owner/skin/sidebar/initialize/index.php
r7012 r7020 13 13 else $_REQUEST['viewMode'] = '?' . $_REQUEST['viewMode']; 14 14 15 setting::removeBlogSettingGlobal('sidebarOrder');15 Setting::removeBlogSettingGlobal('sidebarOrder'); 16 16 Skin::purgeCache(); 17 17 if($ajaxcall == false) header('Location: '. $blogURL . '/owner/skin/sidebar' . $_REQUEST['viewMode']); -
trunk/interface/owner/skin/sidebar/setPlugin/index.php
r7012 r7020 71 71 72 72 $sidebarOrderData[$sidebarNumber][$modulePos]['parameters'] = $newParameter; 73 setting::setBlogSettingGlobal("sidebarOrder", serialize($sidebarOrderData));73 Setting::setBlogSettingGlobal("sidebarOrder", serialize($sidebarOrderData)); 74 74 Skin::purgeCache(); 75 75 if ($ajaxcall == false) { -
trunk/library/auth.php
r6537 r7020 68 68 function getBlogId() { 69 69 global $blogid; 70 return $blogid; 70 return Context::$blogid; 71 // return $blogid; 71 72 } 72 73 … … 127 128 $userid = User::getUserIdByEmail($loginid); 128 129 if( $userid === false ) { return false; } 129 $currentAPIKey = setting::getUserSettingGlobal('APIKey',null,$userid);130 $currentAPIKey = Setting::getUserSettingGlobal('APIKey',null,$userid); 130 131 if($currentAPIKey == null) { 131 132 if(!User::confirmPassword($userid, $key)) { -
trunk/library/context.php
r7017 r7020 8 8 final class Context extends Singleton 9 9 { 10 public $accessInfo; 10 public $accessInfo, $suri; 11 public static $blogid; 11 12 12 13 public static function getInstance() { … … 15 16 16 17 protected function __construct() { 18 self::__URIInterpreter(); 19 // self::__URIParser(); 20 // self::__GValParser(); 21 } 22 23 private function __URIInterpreter() { 17 24 $config = Config::getInstance(); 18 25 … … 119 126 $this->accessInfo = $accessInfo; 120 127 } 121 128 129 private function __URIParser() { 130 if(!isset($this->accessInfo)) self::__URIInterpreter(); 131 $config = Config::getInstance(); 132 $url = $this->accessInfo['fullpath']; 133 $defaultblogid = Setting::getServiceSetting("defaultBlogId",1); 134 $suri = array('url' => $url, 'value' => ''); 135 $this->blogid = null; 136 $isStrictBlogURL = true; 137 $depth = substr_count($config->service['path'], '/'); 138 139 if ($depth > 0) { 140 if (preg_match('@^((/+[^/]+){' . $depth . '})(.*)$@', $url, $matches)) 141 $url = $matches[3]; 142 else 143 Respond::NotFoundPage(); 144 } 145 if ($config->service['type'] == 'single') { 146 $this->blogid = $defaultblogid; 147 } else { 148 if ($config->service['type'] == 'domain') { 149 if ($_SERVER['HTTP_HOST'] == $config->service['domain']) { 150 $this->blogid = $defaultblogid; 151 } else { 152 $domain = explode('.', $_SERVER['HTTP_HOST'], 2); 153 if ($domain[1] == $service['domain']) { 154 $this->blogid = self::__getBlogidByName($domain[0]); 155 if ($this->blogid === null) 156 $this->blogid = self::__getBlogidBySecondaryDomain($_SERVER['HTTP_HOST']); 157 } else { 158 $this->blogid = self::__getBlogidBySecondaryDomain($_SERVER['HTTP_HOST']); 159 } 160 } 161 } else { 162 if ($url == '/') { 163 $this->blogid = $defaultblogid; 164 } else if (preg_match('@^/+([^/]+)(.*)$@', $url, $matches)) { 165 $this->blogid = self::__getBlogidByName(strtok($matches[1],'?')); 166 if ($this->blogid === null) { 167 $this->blogid = $defaultblogid; 168 $isStrictBlogURL = false; 169 } 170 $url = $matches[2]; 171 } else { 172 Respond::NotFoundPage(); 173 } 174 } 175 if ($this->blogid === null) 176 Respond::NotFoundPage(); 177 } 178 179 180 $blog = Setting::getBlogSettingsGlobal($this->blogid); 181 $skinSetting = getSkinSetting($blogid); 182 183 if(isset($context->accessInfo['interfacePath'])) { 184 $depth = substr_count($context->accessInfo['interfacePath'], '/') - 1; 185 } else { 186 $depth = substr_count(ROOT, '/'); 187 } 188 if ($depth > 0) { 189 if($config->service['fancyURL'] === 0 || $config->service['fancyURL'] === 1) $url = '/'.$self->accessInfo['input']; // Exclude /blog path. 190 if (preg_match('@^((/+[^/]+){' . $depth . '})/*(.*)$@', $url, $matches)) { 191 $suri['directive'] = $matches[1]; 192 if ($matches[3] !== false) { 193 $suri['value'] = $matches[3]; 194 } 195 } else { 196 Respond::NotFoundPage(); 197 } 198 } else { 199 $suri['directive'] = '/'; 200 $suri['value'] = ltrim($url, '/'); 201 } 202 if(strpos($suri['value'],'?') === 0) $suri['value'] = ''; 203 else $suri['value'] = strtok($suri['value'], '?'); 204 $suri['directive'] = strtok($suri['directive'], '?'); 205 if (is_numeric($suri['value'])) { 206 $suri['id'] = $suri['value']; 207 } else { 208 $suri['value'] = URL::decode(str_replace('index.php','',$suri['value'])); 209 if(is_numeric($isValue = strtok($suri['value'],'&'))) $suri['id'] = $isValue; 210 unset($isValue); 211 } 212 /* 213 if( function_exists( 'mb_detect_encoding' ) && function_exists('iconv') ) { 214 $encoding = mb_detect_encoding($suri['value'], 'UTF-8,EUC-KR,SHIFT_JIS,EUC-JP,BIG5,EUC-CN,EUC-TW,GBK'); 215 $suri['value'] = @iconv( $encoding, 'UTF-8', $suri['value'] ); 216 }*/ 217 218 // Parse page. 219 $suri['page'] = empty($_POST['page']) ? (empty($_GET['page']) ? true : $_GET['page']) : $_POST['page']; 220 $this->suri = $suri; 221 } 222 223 private function __GValParser() { 224 global $serviceURL, $pathURL, $defaultURL, $baseURL, $pathURL, $blog, $hostURL, $folderURL, $suri; 225 $config = Config::getInstance(); 226 $suri = $self->suri; 227 if (!isset($serviceURL)) 228 $serviceURL = 'http://' . $config->service['domain'] . (isset($config->service['port']) ? ':' . $config->service['port'] : '') . $service['path']; 229 switch ($config->service['type']) { 230 case 'domain': 231 $pathURL = $config->service['path']; 232 $blog['primaryBlogURL'] = 'http://' . $blog['name'] . '.' . $config->service['domain'] . (isset($config->service['port']) ? ':' . $config->service['port'] : '') . $pathURL; 233 if( !empty($blog['secondaryDomain']) ) 234 $blog['secondaryBlogURL'] = 'http://' . $blog['secondaryDomain'] . (isset($config->service['port']) ? ':' . $config->service['port'] : '') . $pathURL; 235 else 236 $blog['secondaryBlogURL'] = null; 237 if ($blog['defaultDomain']) { 238 $defaultURL = $blog['secondaryBlogURL']; 239 if ($_SERVER['HTTP_HOST'] == $blog['secondaryDomain']) 240 $baseURL = $config->service['path']; 241 else 242 $baseURL = $defaultURL; 243 } else { 244 $defaultURL = $blog['primaryBlogURL']; 245 if ($_SERVER['HTTP_HOST'] == ($blog['name'] . '.' . $config->service['domain'])) 246 $baseURL = $config->service['path']; 247 else 248 $baseURL = $defaultURL; 249 } 250 break; 251 case 'path': 252 $pathURL = $config->service['path'] . '/' . $blog['name']; 253 $blog['primaryBlogURL'] = 'http://' . $config->service['domain'] . (isset($config->service['port']) ? ':' . $config->service['port'] : '') . $pathURL; 254 $blog['secondaryBlogURL'] = null; 255 $defaultURL = $blog['primaryBlogURL']; 256 if ($_SERVER['HTTP_HOST'] == $config->service['domain']) 257 $baseURL = $config->service['path'] . '/' . $blog['name']; 258 else 259 $baseURL = $defaultURL; 260 break; 261 case 'single': 262 default: 263 $pathURL = $config->service['path']; 264 $blog['primaryBlogURL'] = 'http://' . $config->service['domain'] . (isset($config->service['port']) ? ':' . $config->service['port'] : '') . $pathURL; 265 $blog['secondaryBlogURL'] = null; 266 $defaultURL = $blog['primaryBlogURL'].getFancyURLpostfix(); 267 if ($_SERVER['HTTP_HOST'] == $config->service['domain']) 268 $baseURL = $config->service['path']; 269 else 270 $baseURL = $defaultURL; 271 break; 272 } 273 $hostURL = 'http://' . $_SERVER['HTTP_HOST'] . (isset($config->service['port']) ? ':' . $config->service['port'] : ''); 274 $blogURL = $pathURL.getFancyURLpostfix(); 275 $folderURL = rtrim($blogURL . $suri['directive'], '/'); 276 if (defined('__TEXTCUBE_MOBILE__')) { 277 $blogURL .= '/m'; 278 }else if (defined('__TEXTCUBE_IPHONE__')) { 279 $blogURL .= '/i'; 280 } 281 } 282 283 private function __getBlogIdByName($name) { 284 global $database; 285 $query = new TableQuery($database['prefix'] . 'BlogSettings'); 286 $query->setQualifier('name','name',true); 287 $query->setQualifier('value', $name, true); 288 return $query->getCell('blogid'); 289 return false; 290 } 291 private function __getBlogIdBySecondaryDomain($name) { 292 global $database; 293 return POD::queryCell("SELECT blogid FROM {$database['prefix']}BlogSettings WHERE name = 'secondaryDomain' AND (value = '$domain' OR value = '" . (substr($domain, 0, 4) == 'www.' ? substr($domain, 4) : 'www.' . $domain) ."')"); 294 } 295 122 296 function __destruct() { 123 297 // Nothing to do: destruction of this class means the end of execution -
trunk/library/data/Core.php
r6997 r7020 100 100 if (!isset($userid)) 101 101 $userid = getUserId(); 102 $info = unserialize( setting::getUserSettingGlobal('userLinkInfo','',$userid));102 $info = unserialize(Setting::getUserSettingGlobal('userLinkInfo','',$userid)); 103 103 if(!empty($info)) $type = $info['type']; 104 104 if (empty($type)) { … … 112 112 if (!isset($userid) || empty($userid)) 113 113 $userid = getUserId(); 114 $info = unserialize( setting::getUserSettingGlobal('userLinkInfo','',$userid));114 $info = unserialize(Setting::getUserSettingGlobal('userLinkInfo','',$userid)); 115 115 if(is_null($info)) $info = array('type' => 'default'); 116 116 switch ($info['type']) { … … 156 156 } 157 157 $homepage = serialize($info); 158 if ( setting::setUserSettingGlobal("userLinkInfo",$homepage, $userid)) {158 if (Setting::setUserSettingGlobal("userLinkInfo",$homepage, $userid)) { 159 159 return true; 160 160 } … … 193 193 $changeBlogView = str_repeat(TAB,6)."<select id=\"blog-list\" onchange=\"location.href='{$blogURL}/owner/network/teamblog/changeBlog/?blogid='+this.value\">".CRLF; 194 194 foreach($blogList as $info){ 195 $title = UTF8::lessen( setting::getBlogSettingGlobal("title",null,$info,true), 30);195 $title = UTF8::lessen(Setting::getBlogSettingGlobal("title",null,$info,true), 30); 196 196 $title = ($title ? $title : _f('%1 님의 블로그',User::getBlogOwnerName($info))); 197 197 $changeBlogView .= str_repeat(TAB,7).'<option value="' . $info . '"'; -
trunk/library/data/Setting.php
r6990 r7020 5 5 6 6 global $__gCacheBlogSettings; // share blog.service.php 7 class setting {7 class Setting { 8 8 function fetchConfigVal( $DATA ){ 9 9 if (is_null($DATA)) return null; // Compartibility. If data is stored as array (new method), return it. … … 52 52 global $database, $service, $__gCacheBlogSettings, $gCacheStorage; 53 53 54 if(is_null($blogid)) $blogid = getBlogId();54 if(is_null($blogid)) $blogid = Context::$blogid; 55 55 if (array_key_exists($blogid, $__gCacheBlogSettings)) { 56 56 return $__gCacheBlogSettings[$blogid]; 57 57 } 58 if($blogid == getBlogId()) {58 if($blogid == Context::$blogid) { 59 59 $result = $gCacheStorage->getContent('BlogSettings'); 60 60 if(!empty($result)) { -
trunk/library/includeForBlog.php
r7012 r7020 59 59 60 60 if(!defined('__TEXTCUBE_LOGIN__')) { 61 $blogVisibility = setting::getBlogSettingGlobal('visibility',2);61 $blogVisibility = Setting::getBlogSettingGlobal('visibility',2); 62 62 if($blogVisibility == 0) requireOwnership(); 63 63 else if($blogVisibility == 1) requireMembership(); -
trunk/library/initialize.php
r7014 r7020 29 29 ---------------------------------- 30 30 **/ 31 require ROOT.'/library/suri.php';31 //require ROOT.'/library/suri.php'; 32 32 33 33 /* Session initializing */ -
trunk/library/loader.php
r7016 r7020 8 8 private static $classInfo = array( 9 9 'auth' => array('Auth','OpenID',array('Privilege'=>'Auth','Acl'=>'Auth')), 10 'cache' => array('PageCache','ICache' ),10 'cache' => array('PageCache','ICache',array('globalCacheStorage','PageCache'), 11 11 'data' => array('BlogSetting','BlogStatistics','DailyStatistics', 12 12 'DataMaintenance','Filter','Image','POD','RSS', -
trunk/library/model/blog.blogSetting.php
r7004 r7020 483 483 484 484 function changeAPIKey($userid, $key) { 485 if($key) return setting::setUserSettingGlobal('APIKey',$key,$userid);486 else return setting::removeUserSettingGlobal('APIKey',$userid);485 if($key) return Setting::setUserSettingGlobal('APIKey',$key,$userid); 486 else return Setting::removeUserSettingGlobal('APIKey',$userid); 487 487 } 488 488 -
trunk/library/model/blog.service.php
r6476 r7020 7 7 $__gCacheBlogSettings = array(); 8 8 9 function getBlogidByName($name) {10 global $database;11 $query = new TableQuery($database['prefix'] . 'BlogSettings');12 $query->setQualifier('name','name',true);13 $query->setQualifier('value', $name, true);14 return $query->getCell('blogid');15 return false;16 }17 18 function getBlogidBySecondaryDomain($domain) {19 global $database;20 return POD::queryCell("SELECT blogid FROM {$database['prefix']}BlogSettings WHERE name = 'secondaryDomain' AND (value = '$domain' OR value = '" . (substr($domain, 0, 4) == 'www.' ? substr($domain, 4) : 'www.' . $domain) . "')");21 }22 23 9 function getBlogSettings($blogid) { 24 return setting::getBlogSettingsGlobal($blogid);10 return Setting::getBlogSettingsGlobal($blogid); 25 11 } 26 12 -
trunk/library/model/common.plugin.php
r6476 r7020 502 502 503 503 function fetchConfigVal($DATA) { 504 return setting::fetchConfigVal($DATA);504 return Setting::fetchConfigVal($DATA); 505 505 } 506 506 … … 518 518 $CDSPval = ''; 519 519 $i=0; 520 $dfVal = setting::fetchConfigVal(getCurrentSetting($plugin));520 $dfVal = Setting::fetchConfigVal(getCurrentSetting($plugin)); 521 521 $name = ''; 522 522 $clientData ='['; -
trunk/library/model/common.setting.php
r6965 r7020 55 55 56 56 function getBlogSetting($name, $default = null, $blogid = null) { 57 return setting::getBlogSettingGlobal($name, $default);57 return Setting::getBlogSettingGlobal($name, $default); 58 58 } 59 59 60 60 function setBlogSetting($name, $value, $blogid = null) { 61 return setting::setBlogSettingGlobal($name, $value, $blogid);61 return Setting::setBlogSettingGlobal($name, $value, $blogid); 62 62 } 63 63 64 64 function setBlogSettingDefault($name, $value, $blogid = null) { 65 return setting::setBlogSettingDefault($name, $value, $blogid);65 return Setting::setBlogSettingDefault($name, $value, $blogid); 66 66 } 67 67 68 68 function removeBlogSetting($name, $blogid = null) { 69 return setting::removeBlogSettingGlobal($name, $blogid);69 return Setting::removeBlogSettingGlobal($name, $blogid); 70 70 } 71 71 72 72 function getUserSetting($name, $default = null, $userid = null) { 73 return setting::getUserSettingGlobal($name, $default, $userid);73 return Setting::getUserSettingGlobal($name, $default, $userid); 74 74 } 75 75 76 76 function setUserSetting($name, $value, $userid = null) { 77 return setting::setUserSettingGlobal($name, $value, $userid);77 return Setting::setUserSettingGlobal($name, $value, $userid); 78 78 } 79 79 80 80
