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


PHP nicedate函数代码示例

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


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

示例1: urlencode

		<td><?php echo $lang["lastused"];?></td>
		<td><?php echo $lang["expires"];?></td>
		<td><?php echo $lang["access"];?></td>
		<td><div class="ListTools"><?php echo $lang["tools"]?></div></td>
		</tr>
		<?php
		for ($n=0;$n<count($keys);$n++)
			{
			?>
			<tr>
			<td><div class="ListTitle"><a target="_blank" href="<?php echo $baseurl . "?c=" . urlencode($ref) . "&k=" . urlencode($keys[$n]["access_key"]) ?>"><?php echo htmlspecialchars($keys[$n]["access_key"]) ?></a></div></td>
			<td><?php echo htmlspecialchars(resolve_users($keys[$n]["users"]))?></td>
			<td><?php echo htmlspecialchars($keys[$n]["emails"]) ?></td>
			<td><?php echo htmlspecialchars(nicedate($keys[$n]["maxdate"],true));	?></td>
			<td><?php echo htmlspecialchars(nicedate($keys[$n]["lastused"],true)); ?></td>
			<td><?php echo htmlspecialchars(($keys[$n]["expires"]=="")?$lang["never"]:nicedate($keys[$n]["expires"],false)) ?></td>
			<td><?php echo htmlspecialchars(($keys[$n]["access"]==-1)?"":$lang["access" . $keys[$n]["access"]]); ?></td>
			<td><div class="ListTools">
			<a href="#" onClick="if (confirm('<?php echo $lang["confirmdeleteaccess"]?>')) {document.getElementById('deleteaccess').value='<?php echo htmlspecialchars($keys[$n]["access_key"]) ?>';document.getElementById('collectionform').submit(); }">&gt;&nbsp;<?php echo $lang["action-delete"]?></a>
			</div></td>
			</tr>
			<?php
			}
		?>
		</table>
		</div>
		<?php
		}
	?>
	</div>	
	
开发者ID:Jtgadbois,项目名称:Pedadida,代码行数:30,代码来源:collection_share.php

示例2: urlencode

    echo urlencode("!collection" . $collections[$n]["ref"]);
    ?>
" onClick="return CentralSpaceLoad(this);"><?php 
    echo highlightkeywords(i18n_get_collection_name($collections[$n]), $find);
    ?>
</a></div></td>
	<td><?php 
    echo htmlspecialchars(highlightkeywords($colusername, $find));
    ?>
</td>
	<td><?php 
    echo htmlspecialchars(highlightkeywords($collection_prefix . $collections[$n]["ref"], $find));
    ?>
</td>
	<td><?php 
    echo htmlspecialchars(nicedate($collections[$n]["created"], true));
    ?>
</td>
	<td><?php 
    echo htmlspecialchars($collections[$n]["count"]);
    ?>
</td>
<?php 
    if (!$hide_access_column) {
        ?>
	<td><?php 
        # Work out the correct access mode to display
        if (!hook('collectionaccessmode')) {
            if ($collections[$n]["public"] == 0) {
                echo $lang["private"];
            } else {
开发者ID:chandradrupal,项目名称:resourcespace,代码行数:31,代码来源:collection_manage.php

示例3: foreach

</td>
            </tr>
            <?php 
if ($no_records) {
    ?>
                <tr><td colspan="10"><b><?php 
    echo $lang['track_field_history_error_no_records'];
    ?>
</b></td></tr>
            <?php 
}
foreach ($field_log_records as $field_log_record) {
    ?>
                <tr>
                    <td nowrap><?php 
    echo nicedate($field_log_record['date'], true, true);
    ?>
</td>
                    <td><?php 
    echo $field_log_record['user'];
    ?>
</td>
                    <td><?php 
    echo nl2br(htmlspecialchars(strip_tags($field_log_record['diff'])));
    ?>
</td>
                </tr>
                <?php 
}
?>
        </table>
开发者ID:perryrothjohnson,项目名称:resourcespace,代码行数:31,代码来源:field_history_log.php

示例4: email_collection


//.........这里部分代码省略.........
     ##  loop through recipients
     for ($nx1 = 0; $nx1 < count($emails); $nx1++) {
         ## loop through collections
         $list = "";
         $list2 = "";
         $origviewlinktext = $viewlinktext;
         // Save this text as we may change it for internal theme shares for this user
         if ($themeshare && !$key_required[$nx1]) {
             $url = "";
             $subject = $applicationname . ": " . $themename;
             $url = $baseurl . "/pages/themes.php" . $themeurlsuffix;
             $viewlinktext = $lang["clicklinkviewthemes"];
             $emailcollectionmessageexternal = false;
             if ($use_phpmailer) {
                 $link = "<a href=\"{$url}\">" . $themename . "</a>";
                 $list .= $htmlbreak . $link;
                 // alternate list style
                 $list2 .= $htmlbreak . $themename . ' -' . $htmlbreaksingle . $url;
                 $templatevars['list2'] = $list2;
             } else {
                 $list .= $htmlbreak . $url;
             }
             for ($nx2 = 0; $nx2 < count($reflist); $nx2++) {
                 #log this
                 collection_log($reflist[$nx2], "E", 0, $emails[$nx1]);
             }
         } else {
             for ($nx2 = 0; $nx2 < count($reflist); $nx2++) {
                 $url = "";
                 $key = "";
                 $emailcollectionmessageexternal = false;
                 # Do we need to add an external access key for this user (e-mail specified rather than username)?
                 if ($key_required[$nx1]) {
                     $k = generate_collection_access_key($reflist[$nx2], $feedback, $emails[$nx1], $access, $expires, $group);
                     $key = "&k=" . $k;
                     $emailcollectionmessageexternal = true;
                 }
                 $url = $baseurl . "/?c=" . $reflist[$nx2] . $key;
                 $collection = array();
                 $collection = sql_query("select name,savedsearch from collection where ref='{$reflist[$nx2]}'");
                 if ($collection[0]["name"] != "") {
                     $collection_name = i18n_get_collection_name($collection[0]);
                 } else {
                     $collection_name = $reflist[$nx2];
                 }
                 if ($use_phpmailer) {
                     $link = "<a href=\"{$url}\">{$collection_name}</a>";
                     $list .= $htmlbreak . $link;
                     // alternate list style
                     $list2 .= $htmlbreak . $collection_name . ' -' . $htmlbreaksingle . $url;
                     $templatevars['list2'] = $list2;
                 } else {
                     $list .= $htmlbreak . $collection_name . $htmlbreak . $url . $htmlbreak;
                 }
                 #log this
                 collection_log($reflist[$nx2], "E", 0, $emails[$nx1]);
             }
         }
         //$list.=$htmlbreak;
         $templatevars['list'] = $list;
         $templatevars['from_name'] = $from_name;
         if (isset($k)) {
             if ($expires == "") {
                 $templatevars['expires_date'] = $lang["email_link_expires_never"];
                 $templatevars['expires_days'] = $lang["email_link_expires_never"];
             } else {
                 $day_count = round((strtotime($expires) - strtotime('now')) / (60 * 60 * 24));
                 $templatevars['expires_date'] = $lang['email_link_expires_date'] . nicedate($expires);
                 $templatevars['expires_days'] = $lang['email_link_expires_days'] . $day_count;
                 if ($day_count > 1) {
                     $templatevars['expires_days'] .= " " . $lang['expire_days'] . ".";
                 } else {
                     $templatevars['expires_days'] .= " " . $lang['expire_day'] . ".";
                 }
             }
         } else {
             # Set empty expiration tempaltevars
             $templatevars['expires_date'] = '';
             $templatevars['expires_days'] = '';
         }
         if ($emailcollectionmessageexternal) {
             $template = $themeshare ? "emailthemeexternal" : "emailcollectionexternal";
         } else {
             $template = $themeshare ? "emailtheme" : "emailcollection";
         }
         if (count($emails > 1) && $list_recipients === true) {
             $body = $lang["list-recipients"] . "\n" . implode("\n", $emails) . "\n\n";
             $templatevars['list-recipients'] = $lang["list-recipients"] . "\n" . implode("\n", $emails) . "\n\n";
         } else {
             $body = "";
         }
         $body .= $templatevars['fromusername'] . " " . ($emailcollectionmessageexternal ? $externalmessage : $internalmessage) . "\n\n" . $templatevars['message'] . "\n\n" . $viewlinktext . "\n\n" . $templatevars['list'];
         #exit ($body . "<br>" . $viewlinktext);
         send_mail($emails[$nx1], $subject, $body, $fromusername, $useremail, $template, $templatevars, $from_name, $cc);
         $viewlinktext = $origviewlinktext;
     }
     hook("additional_email_collection", "", array($colrefs, $collectionname, $fromusername, $userlist, $message, $feedback, $access, $expires, $useremail, $from_name, $cc, $themeshare, $themename, $themeurlsuffix, $template, $templatevars));
     # Return an empty string (all OK).
     return "";
 }
开发者ID:perryrothjohnson,项目名称:resourcespace,代码行数:101,代码来源:collections_functions.php

示例5: if

<?php if(!hook("replaceemailexpiryselector")){?>
<div class="Question">
<label><?php echo $lang["externalselectresourceexpires"]?></label>
<select name="expires" class="stdwidth">
<?php if($resource_share_expire_never) { ?><option value=""><?php echo $lang["never"]?></option><?php }
				
for ($n=1;$n<=150;$n++)
	{
	$date = time()+(60*60*24*$n);
	$d    = date("D",$date);
	$option_class = '';
	if (($d == "Sun") || ($d == "Sat"))
		{
		$option_class = 'optionWeekend';
		} ?>
	<option class="<?php echo $option_class ?>" value="<?php echo date("Y-m-d",$date)?>"><?php echo nicedate(date("Y-m-d",$date),false,true)?></option>
	<?php
	}
?>
</select>
<div class="clearerleft"> </div>
</div>
<?php } ?>


<?php if (checkperm("x")) {
# Allow the selection of a user group to inherit permissions from for this share (the default is to use the current user's user group).
?>
<div class="Question">
<label for="groupselect"><?php echo $lang["externalshare_using_permissions_from_user_group"] ?></label>
<select id="groupselect" name="usergroup" class="stdwidth">
开发者ID:artsmia,项目名称:mia_resourcespace,代码行数:31,代码来源:resource_email.php

示例6: htmlspecialchars

    ?>
</td>	
	<td><?php 
    echo htmlspecialchars($files[$n]["description"]);
    ?>
&nbsp;</td>	
	<td><?php 
    echo $files[$n]["file_extension"] == "" ? $lang["notuploaded"] : htmlspecialchars(str_replace_formatted_placeholder("%extension", $files[$n]["file_extension"], $lang["cell-fileoftype"]));
    ?>
</td>	
	<td><?php 
    echo formatfilesize($files[$n]["file_size"]);
    ?>
</td>	
	<td><?php 
    echo nicedate($files[$n]["creation_date"], true);
    ?>
</td>
	<?php 
    if (count($alt_types) > 1) {
        ?>
<td><?php 
        echo $files[$n]["alt_type"];
        ?>
</td><?php 
    }
    ?>
	<td><div class="ListTools">
	
	<a href="#" onclick="if (confirm('<?php 
    echo $lang["filedeleteconfirm"];
开发者ID:perryrothjohnson,项目名称:resourcespace,代码行数:31,代码来源:alternative_files.php

示例7: HookLicensemanagerViewCustompanels

function HookLicensemanagerViewCustompanels()
	{
	global $lang,$baseurl_short,$ref,$edit_access;
	
	$licenses=sql_query("select ref,outbound,holder,license_usage,description,expires from resource_license where resource='$ref' order by ref");
	?>
    <!-- Begin Geolocation Section -->
    <div class="RecordBox">
    <div class="RecordPanel">
    <div class="Title"><?php echo $lang["license_management"] ?></div>

    <?php if ($edit_access) { ?>    
    <p>&gt;&nbsp;<a href="<?php echo $baseurl_short ?>plugins/licensemanager/pages/edit.php?ref=new&resource=<?php echo $ref ?>" onClick="return CentralSpaceLoad(this,true);"><?php echo $lang["new_license"] ?></a></p>	
    <?php } ?>
   
	<?php if (count($licenses)>0) { ?>
		<div class="Listview">
		<table border="0" cellspacing="0" cellpadding="0" class="ListviewStyle">
		<tr class="ListviewTitleStyle">
		<td><?php echo $lang["license_id"] ?></a></td>
		<td><?php echo $lang["type"] ?></a></td>
		<td><?php echo $lang["licensor_licensee"] ?></a></td>
		<td><?php echo $lang["indicateusagemedium"] ?></a></td>
		<td><?php echo $lang["description"] ?></a></td>
		<td><?php echo $lang["fieldtitle-expiry_date"] ?></a></td>

		<?php if ($edit_access) { ?>
		<td><div class="ListTools"><?php echo $lang["tools"] ?></div></td>
		<?php } ?>
		
		</tr>
	
		<?php
		foreach ($licenses as $license)
			{
			?>
			<tr>
			<td><?php echo $license["ref"] ?></td>
			<td><?php echo ($license["outbound"]?$lang["outbound"]:$lang["inbound"]) ?></td>
			<td><?php echo $license["holder"] ?></td>
			<td><?php echo $license["license_usage"] ?></td>
			<td><?php echo $license["description"] ?></td>
			<td><?php echo nicedate($license["expires"]) ?></td>
		
			<?php if ($edit_access) { ?>
			<td><div class="ListTools">
			<a href="<?php echo $baseurl_short ?>plugins/licensemanager/pages/edit.php?ref=<?php echo $license["ref"] ?>&resource=<?php echo $ref ?>" onClick="return CentralSpaceLoad(this,true);">&gt;&nbsp;Edit</a>
			<a href="<?php echo $baseurl_short ?>plugins/licensemanager/pages/delete.php?ref=<?php echo $license["ref"] ?>&resource=<?php echo $ref ?>" onClick="return CentralSpaceLoad(this,true);">&gt;&nbsp;Delete</a>
			</div></td>
			<?php } ?>
						
			</tr>
			<?php
			}
		?>
		
		</table>
		</div>
	<?php } ?>

    
    </div>
    <div class="PanelShadow"></div>
    </div>
    <?php
	return false; # Allow further custom panels
	}
开发者ID:Jtgadbois,项目名称:Pedadida,代码行数:67,代码来源:view.php

示例8: time

<?php 
    for ($n = 1; $n <= 150; $n++) {
        $date = time() + 60 * 60 * 24 * $n;
        ?>
<option <?php 
        $d = date("D", $date);
        if ($d == "Sun" || $d == "Sat") {
            ?>
style="background-color:#cccccc"<?php 
        }
        ?>
 value="<?php 
        echo date("Y-m-d", $date);
        ?>
"><?php 
        echo nicedate(date("Y-m-d", $date), false, true);
        ?>
</option>
	<?php 
    }
    ?>
</select>
<div class="clearerleft"> </div>
</div>
<?php 
}
?>

<?php 
if ($email_from_user) {
    if ($useremail != "") {
开发者ID:vongalpha,项目名称:resourcespace,代码行数:31,代码来源:resource_email.php

示例9: HookLicensemanagerViewCustompanels


//.........这里部分代码省略.........
		<td><div class="ListTools"><?php 
            echo $lang["tools"];
            ?>
</div></td>
		<?php 
        }
        ?>
		
		</tr>
	
		<?php 
        foreach ($licenses as $license) {
            $license_usage_mediums = trim_array(explode(", ", $license["license_usage"]));
            $translated_mediums = "";
            ?>
			<tr>
			<td><?php 
            echo $license["ref"];
            ?>
</td>
			<td><?php 
            echo $license["outbound"] ? $lang["outbound"] : $lang["inbound"];
            ?>
</td>
			<td><?php 
            echo $license["holder"];
            ?>
</td>
			<td><?php 
            foreach ($license_usage_mediums as $medium) {
                $translated_mediums = $translated_mediums . lang_or_i18n_get_translated($medium, "license_usage-") . ", ";
            }
            $translated_mediums = substr($translated_mediums, 0, -2);
            # Remove the last ", "
            echo $translated_mediums;
            ?>
			</td>
			<td><?php 
            echo $license["description"];
            ?>
</td>
			<td><?php 
            echo nicedate($license["expires"]);
            ?>
</td>
		
			<?php 
            if ($edit_access) {
                ?>
			<td><div class="ListTools">
			<a href="<?php 
                echo $baseurl_short;
                ?>
plugins/licensemanager/pages/edit.php?ref=<?php 
                echo $license["ref"];
                ?>
&resource=<?php 
                echo $ref;
                ?>
" onClick="return CentralSpaceLoad(this,true);">&gt;&nbsp;<?php 
                echo $lang["action-edit"];
                ?>
</a>
			<a href="<?php 
                echo $baseurl_short;
                ?>
plugins/licensemanager/pages/delete.php?ref=<?php 
                echo $license["ref"];
                ?>
&resource=<?php 
                echo $ref;
                ?>
" onClick="return CentralSpaceLoad(this,true);">&gt;&nbsp;<?php 
                echo $lang["action-delete"];
                ?>
</a>
			</div></td>
			<?php 
            }
            ?>
						
			</tr>
			<?php 
        }
        ?>
		
		</table>
		</div>
	<?php 
    }
    ?>

    
    </div>
    <div class="PanelShadow"></div>
    </div>
    <?php 
    return false;
    # Allow further custom panels
}
开发者ID:perryrothjohnson,项目名称:resourcespace,代码行数:101,代码来源:view.php

示例10: nicedate

    if (!hook("requestlistitems")) {
        ?>
	<td><?php 
        echo $requests[$n]["ref"];
        ?>
</td>
	<td><?php 
        echo $requests[$n]["username"];
        ?>
</td>
	<td><?php 
        echo $requests[$n]["fullname"];
        ?>
</td>
	<td><?php 
        echo nicedate($requests[$n]["created"], true);
        ?>
</td>
	<td><?php 
        echo $requests[$n]["c"];
        ?>
</td>
	<td><?php 
        echo $lang["resourcerequesttype" . $requests[$n]["request_mode"]];
        ?>
</td>
	<td><?php 
        echo $requests[$n]["assigned_to_username"];
        ?>
</td>
	<td><?php 
开发者ID:perryrothjohnson,项目名称:resourcespace,代码行数:31,代码来源:team_request.php

示例11: nicedate

            ?>
</td>
			<td><?php 
            echo $keys[$n]["emails"];
            ?>
</td>
			<td><?php 
            echo nicedate($keys[$n]["maxdate"], true);
            ?>
</td>
			<td><?php 
            echo nicedate($keys[$n]["lastused"], true);
            ?>
</td>
			<td><?php 
            echo $keys[$n]["expires"] == "" ? $lang["never"] : nicedate($keys[$n]["expires"], false);
            ?>
</td>
			<td><?php 
            echo $keys[$n]["access"] == -1 ? "" : $lang["access" . $keys[$n]["access"]];
            ?>
</td>
			<td><div class="ListTools">
			<a href="#" onClick="if (confirm('<?php 
            echo $lang["confirmdeleteaccess"];
            ?>
')) {document.getElementById('deleteaccess').value='<?php 
            echo $keys[$n]["access_key"];
            ?>
';document.getElementById('collectionform').submit(); }">&gt;&nbsp;<?php 
            echo $lang["action-delete"];
开发者ID:vongalpha,项目名称:resourcespace,代码行数:31,代码来源:collection_share.php

示例12: htmlentities

</td>
			<td><a href="#Header" onclick="message_display('<?php 
    echo $message;
    ?>
','<?php 
    echo $url_encoded;
    ?>
',<?php 
    echo $messages[$n]["ref"];
    ?>
);"><?php 
    echo htmlentities(strip_tags($messages[$n]["message"]));
    ?>
</a></td>
			<td><?php 
    echo nicedate($messages[$n]["expires"]);
    ?>
</td>
			<td><?php 
    echo $messages[$n]["seen"] == 0 ? $lang['no'] : $lang['yes'];
    ?>
</td>
			<td>
				<div class="ListTools">
					<a href="<?php 
    echo $messages[$n]["url"];
    ?>
">&gt;&nbsp;<?php 
    echo $lang["link"];
    ?>
</a>
开发者ID:perryrothjohnson,项目名称:resourcespace,代码行数:31,代码来源:user_messages.php

示例13: htmlspecialchars

<div class="Question"><label><?php echo $lang["descriptionofproject"]?></label><div class="Fixed"><?php echo htmlspecialchars($research["description"]) ?></div>
<div class="clearerleft"> </div></div>

<div class="Question"><label><?php echo $lang["requestedby"]?></label><div class="Fixed"><?php echo $research["username"]?></div>
<div class="clearerleft"> </div></div>

<?php if (isset($anonymous_login) && $research["username"]==$anonymous_login) { ?>
<div class="Question"><label><?php echo $lang["email"]?></label><div class="Fixed"><a href="mailto:<?php echo htmlspecialchars($research["email"])?>"><?php echo htmlspecialchars($research["email"])?></a></div>
<div class="clearerleft"> </div></div>
<?php } ?>

<div class="Question"><label><?php echo $lang["date"]?></label><div class="Fixed"><?php echo nicedate($research["created"],false,true)?></div>
<div class="clearerleft"> </div></div>

<div class="Question"><label><?php echo $lang["deadline"]?></label><div class="Fixed"><?php echo nicedate($research["deadline"],false,true)?></div>
<div class="clearerleft"> </div></div>

<div class="Question"><label><?php echo $lang["contacttelephone"]?></label><div class="Fixed"><?php echo htmlspecialchars($research["contact"])?></div>
<div class="clearerleft"> </div></div>

<div class="Question"><label><?php echo $lang["finaluse"]?></label><div class="Fixed"><?php echo $research["finaluse"]?></div>
<div class="clearerleft"> </div></div>

<div class="Question"><label><?php echo $lang["resourcetypes"]?></label><div class="Fixed">
<?php $first=true;$set=explode(", ",$research["resource_types"]);$types=get_resource_types();for ($n=0;$n<count($types);$n++) {if (in_array($types[$n]["ref"],$set)) {if (!$first) {echo ", ";}echo $types[$n]["name"];$first=false;}} ?>
</div>
<div class="clearerleft"> </div></div>

<div class="Question"><label><?php echo $lang["noresourcesrequired"]?></label><div class="Fixed"><?php echo $research["noresources"]?></div>
<div class="clearerleft"> </div></div>
开发者ID:Jtgadbois,项目名称:Pedadida,代码行数:30,代码来源:team_research_edit.php

示例14: hook

<?php hook("beforecollectiontoolscolumnheader");?>
<td class="tools"><div class="ListTools"><?php echo $lang["tools"]?></div></td>
</tr>
<form method="get" name="colactions" id="colactions" action="<?php echo $baseurl_short?>pages/collection_manage.php">
<?php

for ($n=$offset;(($n<count($collections)) && ($n<($offset+$per_page)));$n++)
	{
    $colusername=$collections[$n]['fullname'];

	?><tr <?php hook("collectionlistrowstyle");?>>
	<td class="name"><div class="ListTitle">
		<a <?php if ($collections[$n]["public"]==1 && (strlen($collections[$n]["theme"])>0)) { ?>style="font-style:italic;"<?php } ?> href="<?php echo $baseurl_short?>pages/search.php?search=<?php echo urlencode("!collection" . $collections[$n]["ref"])?>" onClick="return CentralSpaceLoad(this);"><?php echo highlightkeywords(i18n_get_collection_name($collections[$n]),$find) ?></a></div></td>
	<td class="fullname"><?php echo highlightkeywords($colusername,$find) ?></td>
	<td class="ref"><?php echo highlightkeywords($collection_prefix . $collections[$n]["ref"],$find) ?></td>
	<td class="created"><?php echo nicedate($collections[$n]["created"],true) ?></td>
	<td class="count"><?php echo $collections[$n]["count"] ?></td>
<?php if (! $hide_access_column){ ?>	<td class="access"><?php
# Work out the correct access mode to display
if (!hook('collectionaccessmode')) {
	if ($collections[$n]["public"]==0){
		echo $lang["private"];
	}
	else{
		if (strlen($collections[$n]["theme"])>0){
			echo $lang["theme"];
		}
	else{
		echo $lang["public"];
		}
	}
开发者ID:artsmia,项目名称:mia_resourcespace,代码行数:31,代码来源:collection_manage.php

示例15: exit

    }
    if (!isset($collection_download_settings)) {
        exit($lang["collection_download_settings-not-defined"]);
    } else {
        if (!is_array($collection_download_settings)) {
            exit($lang["collection_download_settings-not-an-array"]);
        }
    }
    if (!isset($archiver_listfile_argument)) {
        exit($lang["listfile-argument-not-defined"]);
    }
}
$archiver = $collection_download && $archiver_fullpath != false && isset($archiver_listfile_argument) && (isset($collection_download_settings) ? is_array($collection_download_settings) : false);
# initiate text file
if ($zipped_collection_textfile == true && $includetext == "true") {
    $text = i18n_get_collection_name($collectiondata) . "\r\n" . $lang["downloaded"] . " " . nicedate(date("Y-m-d H:i:s"), true, true) . "\r\n\r\n" . $lang["contents"] . ":\r\n\r\n";
}
# get collection
$result = do_search("!collection" . $collection);
$modified_result = hook("modifycollectiondownload");
if (is_array($modified_result)) {
    $result = $modified_result;
}
#this array will store all the available downloads.
$available_sizes = array();
# get file extension from database or use jpg.
function get_extension($resource, $size)
{
    $pextension = $size == 'original' ? $resource["file_extension"] : 'jpg';
    $replace_extension = hook('replacedownloadextension', '', array($resource, $pextension));
    if (!empty($replace_extension)) {
开发者ID:chandradrupal,项目名称:resourcespace,代码行数:31,代码来源:collection_download.php


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