fetch_by_idandtype($sid); $resourcesdata = $sharedata['resourcesdata']; $resourcesdata['share'] = 0; //if(getglobal('adminid') != 1)$resourcesdata['download'] = 0; $colors = array(); foreach($resourcesdata['colors'] as $cval){ $colors[] = $cval; } $resourcesdata['colors'] = json_encode($colors); $tag = array(); foreach($resourcesdata['tag'] as $tval){ if($tval){ $tag[] = $tval; } } $resourcesdata['tag'] = json_encode($tag); $foldernames = array(); foreach($resourcesdata['foldernames'] as $fval){ $foldernames[] = $fval; } $resourcesdata['foldernames'] = json_encode($foldernames); $theme = GetThemeColor(); $ismobile = helper_browser::ismobile(); if (($ismobile)) { include template('share/mobile/page/index'); } else { include template('share/pc/page/index'); }