• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP urlDecode函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了PHP中urlDecode函数的典型用法代码示例。如果您正苦于以下问题:PHP urlDecode函数的具体用法?PHP urlDecode怎么用?PHP urlDecode使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。



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

示例1: urlDecode

<?php 
include_once "include/koneksi.php";
include_once "include/config.php";
$sql = urlDecode($_REQUEST['sql']);
$tabel = urlDecode($_REQUEST['tbl']);
$sql_exe = mysqli_query($conn, $sql);
$no = $hal + 1;
if ($sql_exe) {
    $tampil .= "<table class='listing' cellpadding='0' cellspacing='0'>";
    $tampil .= "<tr>";
    $jum_kolom = mysqli_num_fields($sql_exe);
    $tampil .= "<th class='full'>No</th>";
    $title = array();
    for ($i = 0; $i < $jum_kolom; $i++) {
        $nm_kolom = mysqli_fetch_field($sql_exe);
        array_push($title, $nm_kolom->name);
        $tampil .= "<th class='full'>" . $nm_kolom->name . "</th>";
    }
    $tampil .= "<th class='full' colspan='2'>Aksi</th>";
    $tampil .= "</tr>";
    while ($data = mysqli_fetch_row($sql_exe)) {
        $tampil .= "<tr>";
        $tampil .= "<td>" . $no++ . "</td>";
        for ($i = 0; $i < count($data); $i++) {
            $tampil .= "<td class='data' ondblclick=\"edit_inline(this,'" . $url_update . "','" . $tabel . "','" . $nama_id . "')\" title='" . $title[$i] . "'>" . $data[$i] . "</td>";
        }
        $tampil .= "<td class='id link' title='" . $data[1] . "'><img src='img/search.png'></td><td class='id link' title='" . $data[1] . "' onclick='hapus_data(this)'><img src='img/b_usrdrop.png' /></td>";
        $tampil .= "</tr>";
    }
    $tampil .= "</table>";
开发者ID:gibranda,项目名称:simdesa,代码行数:30,代码来源:simpan_xls.php


示例2: decrypt_other_crv

 public static function decrypt_other_crv($str)
 {
     $str = urlDecode($str);
     $key = [-36, -63, 49, 37, -56, -32, 103, -85];
     $keystr = '';
     foreach ($key as $ch) {
         $keystr .= chr($ch);
     }
     $str = base64_decode($str);
     $strBin = $str;
     // hex2bin(strtolower($str));
     $td = mcrypt_module_open('des', '', 'ecb', '');
     //使用MCRYPT_DES算法,cbc模式
     $iv = @mcrypt_create_iv(mcrypt_enc_get_iv_size($td), MCRYPT_RAND);
     $ks = mcrypt_enc_get_key_size($td);
     @mcrypt_generic_init($td, $keystr, $iv);
     //初始处理
     $text = mdecrypt_generic($td, $strBin);
     //解密
     mcrypt_generic_deinit($td);
     //结束
     mcrypt_module_close($td);
     $pad = ord($text[strlen($text) - 1]);
     if ($pad > strlen($text)) {
         return false;
     }
     if (strspn($text, chr($pad), strlen($text) - $pad) != $pad) {
         return false;
     }
     return substr($text, 0, -1 * $pad);
 }
开发者ID:3116246,项目名称:haolinju,代码行数:31,代码来源:DES.php


示例3: __construct

 public function __construct($pageCall, $pageParam)
 {
     $this->search = trim(urlDecode($pageParam));
     $this->query = strtr($this->search, '?*', '_%');
     // restricted access
     if ($this->reqUGroup && !User::isInGroup($this->reqUGroup)) {
         $this->error();
     }
     // statWeight for JSON-search
     if (isset($_GET['wt']) && isset($_GET['wtv'])) {
         $this->statWeight = array('wt' => explode(':', $_GET['wt']), 'wtv' => explode(':', $_GET['wtv']));
     }
     // select search mode
     if (isset($_GET['json'])) {
         if ($_ = intVal($this->search)) {
             // allow for search by Id
             $this->query = $_;
         }
         $type = isset($_GET['type']) ? intVal($_GET['type']) : 0;
         if (!empty($_GET['slots'])) {
             $this->searchMask |= SEARCH_TYPE_JSON | 0x40;
         } else {
             if ($type == TYPE_ITEMSET) {
                 $this->searchMask |= SEARCH_TYPE_JSON | 0x60;
             } else {
                 if ($type == TYPE_ITEM) {
                     $this->searchMask |= SEARCH_TYPE_JSON | 0x40;
                 }
             }
         }
     } else {
         if (isset($_GET['opensearch'])) {
             $this->maxResults = CFG_SQL_LIMIT_QUICKSEARCH;
             $this->searchMask |= SEARCH_TYPE_OPEN | SEARCH_MASK_OPEN;
         } else {
             $this->searchMask |= SEARCH_TYPE_REGULAR | SEARCH_MASK_ALL;
         }
     }
     // handle maintenance status for js-cases
     if (CFG_MAINTENANCE && !User::isInGroup(U_GROUP_EMPLOYEE) && !($this->searchMask & SEARCH_TYPE_REGULAR)) {
         $this->notFound();
     }
     parent::__construct($pageCall, $pageParam);
     // just to set g_user and g_locale
     // fill include, exclude and ignore
     $this->tokenizeQuery();
     // invalid conditions: not enough characters to search OR no types to search
     if ((!$this->included || !($this->searchMask & SEARCH_MASK_ALL)) && !CFG_MAINTENANCE && !($this->searchMask & SEARCH_TYPE_JSON && intVal($this->search))) {
         $this->mode = CACHE_TYPE_NONE;
         $this->notFound();
     }
 }
开发者ID:Niknox,项目名称:aowow,代码行数:52,代码来源:search.php


示例4: GetParameters

function GetParameters($params)
{
    global $scaleDenominator, $annotations;
    $scaleDenominator = intval($params["scale_denominator"]);
    $annotations = array();
    // The parameters whose name matches this pattern will be treated as annotation
    $pattern = "/^\\{field:.+\\}\$/i";
    foreach ($params as $key => $value) {
        if (preg_match($pattern, $key) == 1) {
            $annotations[$key] = htmlspecialchars(urlDecode($value), ENT_QUOTES);
        }
    }
    // The scale annotation
    $annotations["{scale}"] = "1 : " . $scaleDenominator;
}
开发者ID:kanbang,项目名称:Colt,代码行数:15,代码来源:quickplotpreviewinner.php


示例5: render

 public function render($bEcho = true)
 {
     $str = '';
     if ($this->page) {
         $str .= "<table><tr><th>Product Name</th>";
         $displayedElements = App::Get()->settings['browser_products_met'];
         foreach ($displayedElements as $elementName) {
             $str .= "<th>{$elementName}</th>";
         }
         $str .= "</tr>";
         if (!App::Get()->settings['browser_private_products_visibility']) {
             // Get a CAS-Browser XML/RPC client
             $browser = new CasBrowser();
             $client = $browser->getClient();
             foreach ($this->pageMetadata as $key => $value) {
                 if ($browser->getProductVisibilityLevel($key) == "deny") {
                     unset($this->pageMetadata[$key]);
                     foreach ($this->pageProducts as $product) {
                         if ($product->id == $key) {
                             $productKey = array_search($product, $this->pageProducts);
                             unset($this->pageProducts[$productKey]);
                         }
                     }
                 }
             }
         }
         foreach ($this->pageProducts as $product) {
             $str .= "<tr><td><a href=\"" . $this->urlBase . "/product/{$product->getId()}/{$this->returnPage}\">" . urlDecode(basename($product->getName())) . "</a></td>";
             foreach ($displayedElements as $elementName) {
                 $str .= "<td>" . $this->pageMetadata[$product->getId()]->getMetadata($elementName) . "</td>";
             }
             $str .= "</tr>";
         }
         $str .= "</table>";
     }
     if ($bEcho) {
         echo $str;
     } else {
         return $str;
     }
 }
开发者ID:fornava,项目名称:oodt,代码行数:41,代码来源:ProductPageWidget.php


示例6: __construct

  /**
   * The sole constructor that creates a new URL from supplied location
   *
   * @param  string $location  an URL
   */
  function __construct($location) {

    $this->location = $location;
  
    // Regex the url into components    
    preg_match(self::$regexURL, $location, $matches );
    
    $this->protocol   = (strLen(@$matches['proto']) > 0) ? strToLower(@$matches['proto']):null;
    $this->user       = (strLen(@$matches['user']) > 0) ? @$matches['user']:null;
    $this->password   = (strLen(@$matches['haspass']) > 0) ? @$matches['pass']:null;
    $this->host       = (strLen(@$matches['host']) > 0) ? strToLower(@$matches['host']):null;
    //Should we get concerned on default port?
    // $this->port 			= ( ! isSet($matches['port'])) ? getProtoByName($matches['proto']) : $matches['port'];
    $this->port       = (strLen(@$matches['port']) > 0) ? @$matches['port']:null;

    $this->path       = rtrim(@$matches['path'],($this->resource = baseName(@$matches['path'])));
    //$this->resource   = baseName(@$matches['path']);

    // $this->path				= (strLen(@$matches['path']) > 1) ? str_replace('\\', '/', dirName(@$matches['path'])) . '/' : '';
    // $this->resource   = baseName(@$matches['path']);

    preg_match('~(?P<ext>\.[^.]*)~',$this->resource,$extmatches);
    $this->extension  = @$extmatches['ext'];

    $this->ref	      = (strLen(@$matches['ref']) > 0) ? @$matches['ref']:null;

    //keep query as an array
    if (( strLen(@$matches['hasquery']) > 1) )
    foreach(explode('&', $matches['query']) as $q) {
      list($name,$value) = @explode('=', $q, 2);
      if (strLen($name) > 0) {
        $this->query[$name] = ($value = urlDecode($value)) ? $value:'';
      }
    }
    else
    $this->query = null;

  }
开发者ID:BackupTheBerlios,项目名称:freeform-frmwrk,代码行数:43,代码来源:URL.php5


示例7: catch

try {
    $page = Utils::getPage($type, $pageNum);
} catch (Exception $e) {
    Utils::reportError($e->getMessage(), $outputFormat);
}
// Get the products from the requested page -- what we're really after
$pageProducts = array();
foreach ($page->getPageProducts() as $p) {
    array_push($pageProducts, array('product' => $p));
}
// Format results
if ($outputFormat == 'html') {
    $payload = '<ul class="pp_productList" id="product_list">';
    foreach ($pageProducts as $p) {
        $payload .= '<li><a href="' . $module->moduleRoot . '/product/' . $p['product']->getId() . '">';
        $payload .= urlDecode($p['product']->getName()) . '</a></li>';
    }
    $payload .= "</ul>\n";
    $payload .= '<input type="hidden" id="total_pages" value="' . $page->getTotalPages() . '">';
    $payload .= '<input type="hidden" id="page_size" value="' . $page->getPageSize() . '">';
} elseif ($outputFormat == 'json') {
    $payload = array();
    try {
        $payload['results'] = Utils::formatResults($pageProducts);
        $payload['totalProducts'] = $client->getNumProducts($type);
    } catch (Exception $e) {
        Utils::reportError($e->getMessage(), $outputFormat);
    }
    $payload['totalPages'] = $page->getTotalPages();
    $payload['pageSize'] = $page->getPageSize();
    $payload = json_encode($payload);
开发者ID:fornava,项目名称:oodt,代码行数:31,代码来源:pageScript.php


示例8: formatResults

 public static function formatResults($products)
 {
     $cb = new CasBrowser();
     $client = $cb->getClient();
     $results = array();
     foreach ($products as $product) {
         try {
             $p = array('id' => $product['product']->getId(), 'name' => urlDecode($product['product']->getName()), 'metadata' => $client->getMetadata($product['product'])->toAssocArray());
             if (isset($product['typeName'])) {
                 $p['type'] = $product['typeName'];
             }
             array_push($results, $p);
         } catch (Exception $e) {
             throw new CasBrowserException("An error occured while formatting product [" . $product['product']->getId() . "] metadata: " . $e->getMessage());
         }
     }
     return $results;
 }
开发者ID:fornava,项目名称:oodt,代码行数:18,代码来源:Utils.class.php


示例9: udecode

function udecode($u)
{
    return urlDecode(base64_decode($u));
}
开发者ID:yunsite,项目名称:hhzuitu,代码行数:4,代码来源:common.php


示例10: getRequestURI

 private static function getRequestURI($endPoint)
 {
     $url = parse_url($endPoint);
     $requestURI = $url['path'];
     if ($requestURI == null || $requestURI == self::EMPTY_STRING) {
         $requestURI = "/";
     } else {
         $requestURI = urlDecode($requestURI);
     }
     return $requestURI;
 }
开发者ID:jaybill,项目名称:Bolts,代码行数:11,代码来源:SignatureUtilsForOutbound.php


示例11: Services_JSON

 * GNU Affero General Public License for more details.
 * 
 * You should have received a copy of the GNU Affero General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 * 
 * For more information, contact Colosa Inc, 2566 Le Jeune Rd., 
 * Coral Gables, FL, 33134, USA, or email [email protected].
 * 
 */
//G::LoadSystem('json');
require_once PATH_THIRDPARTY . 'pear/json/class.json.php';
$json = new Services_JSON();
$G_FORM = new form(G::getUIDName(urlDecode($_POST['form'])));
$G_FORM->id = urlDecode($_POST['form']);
$G_FORM->values = $_SESSION[$G_FORM->id];
$newValues = $json->decode(urlDecode(stripslashes($_POST['fields'])));
//Resolve dependencies
//Returns an array ($dependentFields) with the names of the fields
//that depends of fields passed through AJAX ($_GET/$_POST)
$dependentFields = array();
for ($r = 0; $r < sizeof($newValues); $r++) {
    $newValues[$r] = (array) $newValues[$r];
    $G_FORM->setValues($newValues[$r]);
    //Search dependent fields
    foreach ($newValues[$r] as $k => $v) {
        $myDependentFields = explode(',', $G_FORM->fields[$k]->dependentFields);
        $dependentFields = array_merge($dependentFields, $myDependentFields);
    }
}
$dependentFields = array_unique($dependentFields);
//Parse and update the new content
开发者ID:emildev35,项目名称:processmaker,代码行数:31,代码来源:loginAjax.php


示例12: urlDecode

<?php

include_once "include/koneksi.php";
// untuk update data
//$tabel = $_REQUEST['tabel'];
$sql = urlDecode($_REQUEST['sql']);
$sql = stripslashes($sql);
// hapus tanda /
$sql_exe = mysql_query($sql);
if ($sql_exe) {
    echo mysql_num_rows($sql_exe);
}
开发者ID:AhmadSayadi,项目名称:kearsipan,代码行数:12,代码来源:jumlah_data_cari.php


示例13: decodeValue

 protected static function decodeValue($value)
 {
     return urlDecode($value);
 }
开发者ID:grlf,项目名称:eyedock,代码行数:4,代码来源:TNvpSerializer.php


示例14: die

<?php

if (!isset($_GET['path'])) {
    die('This script is for displaying an HTML frameset and must be called with a URL parameter. It\'s not for direct access, it\'s called on document previews.');
}
$pathToUse = ensureOnlyValidCharacters(urlDecode($_GET['path']));
$pathToUse = str_replace('\\', '/', $pathToUse) . '/';
$pathToUse = str_replace('/', DIRECTORY_SEPARATOR, $pathToUse);
$thereIsAPreview = file_exists($pathToUse . 'test.html');
$configFilenamesPath = dirname(__FILE__) . DIRECTORY_SEPARATOR . 'core' . DIRECTORY_SEPARATOR . 'custom-filenames.php';
include_once $configFilenamesPath;
$customFileNames = getCustomFilenames();
$chosenFile = null;
$filesToDisplay = array($customFileNames[0], 'index.*', 'default.*', '*.odt');
foreach ($filesToDisplay as $fileToDisplay) {
    $possibleFile = getFirstByPattern($pathToUse . $fileToDisplay);
    if ($possibleFile) {
        $chosenFile = $possibleFile;
        break;
    }
}
if (!$chosenFile) {
    $filesToDisplayAsString = null;
    foreach ($filesToDisplay as $fileToDisplay) {
        $filesToDisplayAsString .= '"' . $fileToDisplay . '", ';
    }
    $filesToDisplayAsString = trim($filesToDisplayAsString);
    $filesToDisplayAsString = substr($filesToDisplayAsString, 0, strlen($filesToDisplayAsString) - 1);
    $filesInPreviewDirectory = glob($pathToUse . '*');
    die('Docvert or pipeline error: Unable to determine the file to preview. I searched for the filename patterns ' . $filesToDisplayAsString . ' were tested but do not exist. Was given pathToUse of <tt>"' . $pathToUse . '"</tt> which contained <pre>' . revealXml(print_r($filesInPreviewDirectory, true)) . '</pre>');
}
开发者ID:Nolfneo,项目名称:docvert,代码行数:31,代码来源:frameset.php


示例15: _upgrade_info_decode_val

function _upgrade_info_decode_val($str)
{
    return urlDecode($str);
}
开发者ID:rkania,项目名称:GS3,代码行数:4,代码来源:system_gpbx-upgrade.php


示例16: AES

//echo "$sroot<br /> " . __FILE__  . "<br/> ". $fileDir;
if ($fileDir == '/home/qiushaowei/htdocs/uxcjs/tools/php') {
    $fileDir = '/~qiushaowei/uxcjs/tools/php';
}
if ($fileDir == '/home/qiushaowei/htdocs/jcjs/tools/php') {
    $fileDir = '/~qiushaowei/jcjs/tools/php';
}
$base_path = './';
$key = 'imququin360';
$aes = new AES(true);
$keys = $aes->makeKey($key);
$blacklist_folder = array('.', '..', '.svn', '.git');
$whitelist_fileext = array('html', 'htm', 'js', 'css', 'jpg', 'jpeg', 'gif', 'png', 'bmp', 'ppt', 'pptx', 'doc', 'php', 'docx');
$path = empty($_GET['p']) ? '' : trim($_GET['p']);
$path = $aes->decryptString(trim($path), $keys);
$path = urlDecode($path);
$path_arr = explode('/', trim($path, '/'));
$list = scandir($base_path . $path);
if ($list === false) {
    die('not exist!');
}
$dir_list = array();
$file_list = array();
foreach ($list as $item) {
    $new_path = $path . $item;
    if (is_dir($base_path . $new_path)) {
        array_push($dir_list, $item);
    } else {
        array_push($file_list, $item);
    }
}
开发者ID:furic-zhao,项目名称:jquerycomps,代码行数:31,代码来源:filelist.php


示例17: caNavIcon

    ?>
	
			<div style="float: right;">
				<a href="#" class="caDeleteItemButton"><?php 
    print caNavIcon($this->request, __CA_NAV_BUTTON_DEL_BUNDLE__);
    ?>
</a>
			</div>
<?php 
}
?>
			<div class="caListItem">
				
				<span class="formLabel">{locale} ({filesize})</span>
				<?php 
print urlDecode(caNavLink($this->request, caNavIcon($this->request, __CA_NAV_BUTTON_DOWNLOAD__, null, array('align' => 'top')), '', '*', '*', 'downloadCaptionFile', array('representation_id' => $t_instance->getPrimaryKey(), 'caption_id' => "{caption_id}", 'download' => 1), array('id' => "{$vs_id_prefix}download{caption_id}", 'class' => 'attributeDownloadButton')));
?>
				
				<input type="hidden" name="<?php 
print $vs_id_prefix;
?>
_caption_id{n}" id="<?php 
print $vs_id_prefix;
?>
_caption_id{n}" value="{caption_id}"/>
			</div>
		</div>
	</textarea>
	
	
	
开发者ID:idiscussforum,项目名称:providence,代码行数:28,代码来源:ca_object_representation_captions.php


示例18: getMysqlParam

function getMysqlParam($name)
{
    #----------------------------------------------------------------------
    $value = urlDecode(getRawParamThisShouldBeAnException($name));
    $value = mysql_real_escape_string($value);
    debugParameter('mysql', $name, htmlEntities($value, ENT_QUOTES));
    return $value;
}
开发者ID:FatBoyXPC,项目名称:worldcubeassociation.org,代码行数:8,代码来源:_parameters.php


示例19: getDisplayValue


//.........这里部分代码省略.........
     if (!isset($pa_options['showMediaInfo'])) {
         $pa_options['showMediaInfo'] = false;
     }
     if (!isset($pa_options['version'])) {
         $pa_options['version'] = 'thumbnail';
     }
     $vs_version = $pa_options['version'];
     $vs_class = trim(isset($pa_options['class']) && $pa_options['class'] ? $pa_options['class'] : '');
     if (!isset($pa_options['return'])) {
         $pa_options['return'] = null;
     } else {
         $pa_options['return'] = strtolower($pa_options['return']);
     }
     switch ($pa_options['return']) {
         case 'url':
             return $this->opo_media_info_coder->getMediaUrl($this->opa_media_data, $vs_version);
             break;
         case 'tag':
             return $this->opo_media_info_coder->getMediaTag($this->opa_media_data, $vs_version);
             break;
         case 'path':
             return $this->opo_media_info_coder->getMediaPath($this->opa_media_data, $vs_version);
             break;
     }
     if ($vs_url = $this->opo_media_info_coder->getMediaUrl($this->opa_media_data, 'original')) {
         AssetLoadManager::register('panel');
         $va_info = $this->opo_media_info_coder->getMediaInfo($this->opa_media_data);
         $vs_dimensions = '';
         if ($pa_options['showMediaInfo']) {
             $va_dimensions = array($va_info['INPUT']['MIMETYPE']);
             if ($va_info['ORIGINAL_FILENAME']) {
                 $vs_filename = $va_info['ORIGINAL_FILENAME'];
             } else {
                 $vs_filename = _t('Uploaded file');
             }
             if (isset($va_info['original']['WIDTH']) && isset($va_info['original']['HEIGHT'])) {
                 if (($vn_w = $va_info['original']['WIDTH']) && ($vn_h = $va_info['original']['WIDTH'])) {
                     $va_dimensions[] = $va_info['original']['WIDTH'] . 'p x ' . $va_info['original']['HEIGHT'] . 'p';
                 }
             }
             if (isset($va_info['original']['PROPERTIES']['bitdepth']) && ($vn_depth = $va_info['original']['PROPERTIES']['bitdepth'])) {
                 $va_dimensions[] = intval($vn_depth) . ' bpp';
             }
             if (isset($va_info['original']['PROPERTIES']['colorspace']) && ($vs_colorspace = $va_info['original']['PROPERTIES']['colorspace'])) {
                 $va_dimensions[] = $vs_colorspace;
             }
             if (isset($va_info['original']['PROPERTIES']['resolution']) && is_array($va_resolution = $va_info['original']['PROPERTIES']['resolution'])) {
                 if (isset($va_resolution['x']) && isset($va_resolution['y']) && $va_resolution['x'] && $va_resolution['y']) {
                     // TODO: units for resolution? right now assume pixels per inch
                     if ($va_resolution['x'] == $va_resolution['y']) {
                         $va_dimensions[] = $va_resolution['x'] . 'ppi';
                     } else {
                         $va_dimensions[] = $va_resolution['x'] . 'x' . $va_resolution['y'] . 'ppi';
                     }
                 }
             }
             if (isset($va_info['original']['PROPERTIES']['duration']) && ($vn_duration = $va_info['original']['PROPERTIES']['duration'])) {
                 $va_dimensions[] = sprintf("%4.1f", $vn_duration) . 's';
             }
             if (isset($va_info['original']['PROPERTIES']['pages']) && ($vn_pages = $va_info['original']['PROPERTIES']['pages'])) {
                 $va_dimensions[] = $vn_pages . ' ' . ($vn_pages == 1 ? _t('page') : _t('pages'));
             }
             if (!isset($va_info['original']['PROPERTIES']['filesize']) || !($vn_filesize = $va_info['original']['PROPERTIES']['filesize'])) {
                 $vn_filesize = 0;
             }
             if ($vn_filesize) {
                 $va_dimensions[] = sprintf("%4.1f", $vn_filesize / (1024 * 1024)) . 'mb';
             }
             if (!isset($va_info['PROPERTIES']['filesize']) || !($vn_filesize = $va_info['PROPERTIES']['filesize'])) {
                 $vn_filesize = @filesize($this->opo_media_info_coder->getMediaPath($this->opa_media_data, 'original'));
             }
             if ($vn_filesize) {
                 $va_dimensions[] = sprintf("%4.2f", $vn_filesize / (1024 * 1024)) . 'mb';
             }
             $vs_dimensions = join('; ', $va_dimensions);
         }
         if (isset($pa_options['poster_frame_version']) && $pa_options['poster_frame_version']) {
             $pa_options['poster_frame_url'] = $this->opo_media_info_coder->getMediaUrl($this->opa_media_data, $pa_options['poster_frame_version']);
         }
         $vs_tag = $this->opo_media_info_coder->getMediaTag($this->opa_media_data, $vs_version, $pa_options);
         if (is_object($pa_options['request'])) {
             $vs_view_url = urldecode(caNavUrl($pa_options['request'], $pa_options['request']->getModulePath(), $pa_options['request']->getController(), 'GetMediaOverlay', array('value_id' => $this->opn_value_id)));
             $vs_val = "<div id='caMediaAttribute" . $this->opn_value_id . "' class='attributeMediaInfoContainer'>";
             $vs_val .= "<div class='attributeMediaThumbnail'>";
             $vs_val .= "<div style='float: left;'>" . urlDecode(caNavLink($pa_options['request'], caNavIcon($pa_options['request'], __CA_NAV_BUTTON_DOWNLOAD__, array('align' => 'middle')), '', $pa_options['request']->getModulePath(), $pa_options['request']->getController(), 'DownloadAttributeMedia', array('download' => 1, 'value_id' => $this->opn_value_id), array('class' => 'attributeDownloadButton'))) . "</div>";
             $vs_val .= "<a href='#' onclick='caMediaPanel.showPanel(\"{$vs_view_url}\"); return false;'>{$vs_tag}</a>";
             $vs_val .= "</div>";
             if ($pa_options['showMediaInfo']) {
                 $vs_val .= "<div class='attributeMediaInfo'><p>{$vs_filename}</p><p>{$vs_dimensions}</p></div>";
             }
             $vs_val .= "</div>";
         } else {
             $vs_val = "<div id='caMediaAttribute" . $this->opn_value_id . "' class='attributeMediaInfoContainer'><div class='attributeMediaThumbnail'>{$vs_tag}</div></div>";
         }
         if ($pa_options['showMediaInfo']) {
             TooltipManager::add('#caMediaAttribute' . $this->opn_value_id, "<h2>" . _t('Media details') . "</h2> <p>{$vs_filename}</p><p>{$vs_dimensions}</p>");
         }
     }
     return $vs_val;
 }
开发者ID:kai-iak,项目名称:pawtucket2,代码行数:101,代码来源:MediaAttributeValue.php


示例20: eval

    eval($_SESSION['CURRENT_PAGE_INITILIZATION']);
}
//G::LoadSystem('json');
//require_once (PATH_THIRDPARTY . 'pear/json/class.json.php');
//$json = new Services_JSON();
$G_FORM = new form(G::getUIDName(urlDecode($_POST['form'])));
$G_FORM->id = urlDecode($_POST['form']);
$G_FORM->values = $_SESSION[$G_FORM->id];
G::LoadClass('xmlDb');
$file = G::decrypt($G_FORM->values['PME_A'], URL_KEY);
define('DB_XMLDB_HOST', PATH_DYNAFORM . $file . '.xml');
define('DB_XMLDB_USER', '');
define('DB_XMLDB_PASS', '');
define('DB_XMLDB_NAME', '');
define('DB_XMLDB_TYPE', 'myxml');
$newValues = Bootstrap::json_decode(urlDecode(stripslashes($_POST['fields'])));
//Resolve dependencies
//Returns an array ($dependentFields) with the names of the fields
//that depends of fields passed through AJAX ($_GET/$_POST)
$dependentFields = array();
$aux = array();
for ($r = 0; $r < sizeof($newValues); $r++) {
    $newValues[$r] = (array) $newValues[$r];
    $G_FORM->setValues($newValues[$r]);
    //Search dependent fields
    foreach ($newValues[$r] as $k => $v) {
        $myDependentFields = subDependencies($k, $G_FORM, $aux);
        $dependentFields = array_merge($dependentFields, $myDependentFields);
    }
}
$dependentFields = array_unique($dependentFields);
开发者ID:ralpheav,项目名称:processmaker,代码行数:31,代码来源:fields_Ajax.php



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP urlEncode函数代码示例发布时间:2022-05-23
下一篇:
PHP urlAdmin函数代码示例发布时间:2022-05-23
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap