Пример #1
0
 function _set_up_form()
 {
     $deleter = 'deleteDisco';
     $type = new entity($this->admin_page->type_id);
     if ($type->get_value('custom_deleter')) {
         reason_include('content_deleters/' . $type->get_value('custom_deleter'));
         if (!empty($GLOBALS['_reason_content_deleters'][$type->get_value('custom_deleter')])) {
             $deleter = $GLOBALS['_reason_content_deleters'][$type->get_value('custom_deleter')];
         } else {
             trigger_error($type->get_value('custom_deleter') . ' needs to record its class name in $GLOBALS[ "_reason_content_deleters" ].');
         }
     }
     $this->disco_item = new $deleter();
     $this->disco_item->actions = array();
     $this->disco_item->set_page($this->admin_page);
     $this->disco_item->actions['delete'] = 'Expunge This ' . strip_tags($type->get_value('name'));
     $this->disco_item->grab_info($this->admin_page->id, $graph);
     $this->disco_item->init();
 }
Пример #2
0
        } elseif ($image->get_value('type') != id_of('image')) {
            $xtra = 'id passed to script is not the id of an image';
        } elseif ($image->get_value('state') != 'Live') {
            $xtra = 'image requested is ' . strtolower($image->get_value('state'));
        }
        $xtra .= ' ( Referrer: ' . $_SERVER['HTTP_REFERER'] . ' )';
        trigger_error('Bad image request on image popup script - ' . $xtra);
    }
    $image = null;
}
if (!empty($image)) {
    $GLOBALS['_reason_image_popup_data']['id'] = $id;
    $GLOBALS['_reason_image_popup_data']['title'] = $image->get_value('description') ? $image->get_value('description') : 'Image';
    $GLOBALS['_reason_image_popup_data']['image_exists'] = true;
    $GLOBALS['_reason_image_popup_data']['image_tag'] = '<img src="' . WEB_PHOTOSTOCK . reason_get_image_filename($id) . '" width="' . $image->get_value('width') . '" height="' . $image->get_value('height') . '" border="0" alt="' . htmlentities(strip_tags($image->get_value('description'))) . '" />';
    $GLOBALS['_reason_image_popup_data']['image_caption'] = $image->get_value('content') ? $image->get_value('content') : $image->get_value('description');
    $GLOBALS['_reason_image_popup_data']['image_author'] = $image->get_value('author');
} else {
    $GLOBALS['_reason_image_popup_data']['image_exists'] = false;
    $GLOBALS['_reason_image_popup_data']['title'] = 'Image not found';
}
if (defined('IMAGE_POPUP_TEMPLATE_FILENAME')) {
    $template_path = 'popup_templates/' . IMAGE_POPUP_TEMPLATE_FILENAME;
} else {
    $template_path = 'popup_templates/generic_image_popup_template.php';
}
if (reason_file_exists($template_path)) {
    reason_include($template_path);
} else {
    trigger_error('no template file found for the image popup script (looking for file at ' . $template_path . '; change Reason setting IMAGE_POPUP_TEMPLATE_FILENAME to set the template file)');
}
Пример #3
0
<?php

/**
 * @package reason
 * @subpackage displayers
 */
include_once 'reason_header.php';
reason_include('scripts/urls/push_moved_site.php');
Пример #4
0
<?php

/**
 * @package reason
 * @subpackage html_editors
 * @author Nathan White
 * @author Matt Ryan
 */
reason_include('html_editors/base.php');
// Identify the class that should be used
$GLOBALS['_reason_editor_integration_classes'][basename(__FILE__)] = 'reasonTinyMCEIntegration';
/**
 * An editor integration class for TinyMCE
 *
 * We should implement in config named tinyMCE defaults, including the basic ones that we have used in the past:
 *
 * - notables
 * - default
 * - all
 * - all_minus_pre
 * - notables_plus_pre
 *
 * For now we basically just hard code the options.
 *
 * @todo implement config options for TinyMCE
 */
class reasonTinyMCEIntegration extends reasonEditorIntegrationBase
{
    /**
     * Get the name of the plasmature element that should be used for this editor
     * @return string name of the plasmature element
Пример #5
0
<?php

/**
 * Stub for the quicktime streaming link generator
 * @package reason
 * @subpackage displayers
 */
include_once 'reason_header.php';
reason_include('scripts/media/generate_quicktime_link_file.php');
Пример #6
0
<?php

/**
 * A generic 404 page that can be used in place of the default apache 404
 *
 * This 404 page includes the 404action script, which takes care of redirecting requests to Reason pages that have moved.
 *
 * @package reason
 * @subpackage errors
 */
/**
 * Include reason header and reason's moved page handler
 */
include_once 'reason_header.php';
reason_include('scripts/urls/404action.php');
?>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<title><?php 
echo FULL_ORGANIZATION_NAME;
?>
: File Not Found</title>
<?php 
if (defined('UNIVERSAL_CSS_PATH') && UNIVERSAL_CSS_PATH != '') {
    echo '<link rel="stylesheet" type="text/css" href="' . UNIVERSAL_CSS_PATH . '" />' . "\n";
}
?>
<style type="text/css">
<!--
Пример #7
0
<?php

/**
 * Hook for the Reason 404 error page script
 *
 * This file exists in the web tree so that the "real" script can exist outside the web tree.
 * It is a simple reason include of lib/[core|local]/errors/404.php
 *
 * @package reason
 * @subpackage errors
 */
include_once 'reason_header.php';
reason_include('errors/404.php');