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


PHP PbUnSerial函数代码示例

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


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

示例1: YouAreHere

function YouAreHere($Array)
{
    $UrlInfo = $Array['urlinfo'];
    $Article = $Array['article'];
    $Dynamic_Article = $Array['dynamicarticle'];
    $SiteInfo = $Array['siteinfo'];
    ?>
<!-- breadcrumbs -->
<nav class="breadcrumbs">
<ul><li><a href="<?php 
    echo "{$SiteInfo['domain']}";
    ?>
">Home</a></li> 
<?php 
    if ($Array['dynamicsetup'] == 1) {
        $Article = $Dynamic_Article;
    }
    $query = "SELECT * FROM articles WHERE id='{$Article['id']}' AND active='1' AND trash='0'";
    $result = mysql_query($query) or die(mysql_error());
    $row = mysql_fetch_array($result);
    $row = PbUnSerial($row);
    if ($row['content']['name'] == "") {
        $row['content']['name'] = $Article['content']['name'];
    }
    if ($row['category'] == "") {
        $row[category] = "self";
    }
    if ($row['category'] == "self") {
        echo "<li>{$row['content']}[name]</li>";
    } else {
        $Query = "SELECT * FROM articles WHERE id='{$row['category']}' AND active='1' AND trash='0'";
        $Result = mysql_query($Query) or die(mysql_error());
        $Row = mysql_fetch_array($Result);
        echo "<li><a href='{$SiteInfo['domain']}/{$Row['url']}'>{$Row['name']}</a></li> \n<li>{$row['name']}</li>";
    }
    echo "</ul></nav>";
}
开发者ID:jramsey08,项目名称:Coldwebs-V2.0,代码行数:37,代码来源:functions.php

示例2: mysql_query

    $ArticleId = $Row['id'];
    $query = "SELECT * FROM articles WHERE id='{$ArticleCat}' AND active='1' AND trash='0'";
    $result = mysql_query($query) or die(mysql_error());
    $row = mysql_fetch_array($result);
    $row = PbUnSerial($row);
    $querY = "SELECT * FROM images WHERE album='{$ArticleId}' AND active='1' AND trash='0'";
    $resulT = mysql_query($querY) or die(mysql_error());
    $roW = mysql_fetch_array($resulT);
    $GalleryCount = count($roW);
    $GalleryCount = $GalleryCount / "2";
    $GalleryCount = $GalleryCount - "1";
    $ArticleId = OtarEncrypt($key, $ArticleId);
    if ($GalleryCount <= "0") {
        $GalleryCount = "0";
    }
    $roW = PbUnSerial($roW);
    ?>
<tr class="odd gradeX">
<td><input type="checkbox" name="edit[]" value="<?php 
    echo $Row['id'];
    ?>
"></td>
<td><?php 
    echo $Row['content']['name'];
    ?>
</td>
<td><?php 
    echo StatusName($Row['active']);
    ?>
</td>
<td class="center"> 
开发者ID:jramsey08,项目名称:Coldwebs-V2.0,代码行数:31,代码来源:cinema.php

示例3: mysql_query

<div class="block-flat">
<?php 
if ($UserSiteAccess['edittask'] == "1") {
    ?>
<div class="header">
<h3>Website Tasks</h3></div>
<div class="content">
<div class="table-responsive">
<table class="no-border hover list">
<tbody class="no-border-y">
<?php 
    $Query = "SELECT * FROM tasks WHERE user='{$Current_Admin_Id}' AND active='1' AND trash='0' ORDER BY id DESC LIMIT 0,5";
    $Result = mysql_query($Query) or die(mysql_error());
    while ($Row = mysql_fetch_array($Result)) {
        $row = PbUnSerial($row);
        ?>
<tr class="items">
    <td style="width: 10%;"><span class="label label-warning">Task</span></td>
    <td><p><strong><?php 
        echo $row['content']['name'];
        ?>
</strong><span><?php 
        echo $row['content']['desc'];
        ?>
</span></p></td>
    <td class="color-success"><div class="progress"><div class="progress-bar progress-bar-warning" style="width: 80%">80%</div></div></td>
    <td class="text-right" style="width: 15%;"><a class="label label-default" href="#"><i class="fa fa-pencil"></i></a> <a class="label label-danger" href="#"><i class="fa fa-times"></i></a></td>
</tr><?php 
    }
    ?>
开发者ID:jramsey08,项目名称:Coldwebs-V2.0,代码行数:30,代码来源:dashboard.php

示例4: mysql_query

$Result = mysql_query($Query) or die(mysql_error());
while ($Row = mysql_fetch_array($Result)) {
    $ArticleId = OtarEncrypt($key, $Row['id']);
    $Row = PbUnSerial($Row);
    $query = "SELECT * FROM page_settings WHERE article='{$ArticleId}'";
    $result = mysql_query($query) or die(mysql_error());
    $row = mysql_fetch_array($result);
    $row = PbUnSerial($row);
    $qUery = "SELECT * FROM page_structure WHERE url='{$Row['url']}' AND urltype='{$Row['urltype']}' AND end='{$Row['end']}' AND urlid='{$Row['urlid']}' AND template='{$Row['template']}'";
    $rEsult = mysql_query($qUery) or die(mysql_error());
    $rOw = mysql_fetch_array($rEsult);
    $rOw = PbUnSerial($rOw);
    $qUerY = "SELECT * FROM articles WHERE id='{$Row['article']}'";
    $rEsulT = mysql_query($qUerY) or die(mysql_error());
    $rOW = mysql_fetch_array($rEsulT);
    $rOW = PbUnSerial($rOW);
    $ArticleName = $rOW['content']['name'];
    if ($ArticleName == "") {
        $ArticleName = $rOw['name'];
    }
    if ($ArticleName == "") {
        $ArticleName = $Row['name'];
    }
    if ($row['admin'] == "1") {
    } else {
        ?>
<tr class="odd gradeX">
<td><input type="checkbox" name="edit[]" value="<?php 
        echo $Row['id'];
        ?>
"></td>
开发者ID:jramsey08,项目名称:Coldwebs-V2.0,代码行数:31,代码来源:page.php

示例5: mysql_query

<option value='' <?php 
    if ($Article['other']['author'] == "") {
        echo "selected='selected'";
    }
    ?>
>Select Below</option>
<?php 
}
if ($UserSiteAccess['editauthor'] == "1") {
    $Query = "SELECT * FROM articles WHERE type='author' AND active='1' AND trash='0' ORDER BY id DESC";
} else {
    $Query = "SELECT * FROM articles WHERE type='author' AND active='1' AND trash='0' AND category='{$Current_Admin_Id}' ORDER BY id DESC";
}
$Result = mysql_query($Query) or die(mysql_error());
while ($Row = mysql_fetch_array($Result)) {
    $Row = PbUnSerial($Row);
    ?>
<option value='<?php 
    echo $Row['id'];
    ?>
' <?php 
    if ($Article['other']['author'] == $Row['id']) {
        echo "selected='selected'";
    }
    ?>
><?php 
    echo $Row['content']['name'];
    ?>
</option>
<?php 
}
开发者ID:jramsey08,项目名称:Coldwebs-V2.0,代码行数:31,代码来源:listarticle.php

示例6: OtarDecrypt

<?php

$DecryptId = OtarDecrypt($key, $_GET['type']);
$query = "SELECT * FROM admin WHERE type='menu' AND id='{$DecryptId}'";
$result = mysql_query($query) or die(mysql_error());
$Menu = mysql_fetch_array($result);
$Menu = PbUnSerial($Menu);
$query = "SELECT * FROM admin WHERE type='menu' AND url='{$Get_Url}' ANd active='1' AND trash='0'";
$result = mysql_query($query) or die(mysql_error());
$Manual = mysql_fetch_array($result);
$Manual = PbUnSerial($Manual);
$Manual_Access = $Manual['access'];
$Manual['url'] = strtolower($Manual['url']);
$ManualTheme = $Manual['theme'];
if ($ManualTheme == "") {
    $ManualTheme = "cwadmin";
}
if ($Manual['id'] != "") {
    if ($UserSiteAccess[$Manual_Access] == "1" or $Manual['access'] == "") {
        if ($Get_Url == $Manual['url']) {
            $OverRight['theme'] = "theme/{$ManualTheme}";
            if ($Get_Type == "") {
                $OverRight['file'] = $Manual['content']['url'];
            } else {
                $OverRight['file'] = $Manual['content']['type'];
            }
        }
    }
}
开发者ID:jramsey08,项目名称:Coldwebs-V2.0,代码行数:29,代码来源:admin.php

示例7: mysql_query

<?php

include "../../../config/encrypt.php";
include "../../../config/functions.php";
include "../../../config/database.php";
$query = "SELECT * FROM info";
$result = mysql_query($query) or die(mysql_error());
$SiteInfo = mysql_fetch_array($result);
$SiteInfo = PbUnSerial($SiteInfo);
开发者ID:jramsey08,项目名称:Coldwebs-V2.0,代码行数:9,代码来源:config.php


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