Пример #1
0
<?php 
    exit;
}
$extending = $command == "Extend" || $command == "ExtendPreview" || $command == "ExtendSave";
$editing = $command == "Edit" || $command == "EditPreview" || $command == "EditSave";
Util::getSessionAndUserIDs($sessionID, $userID);
$storyName = Util::getStringValue("StoryName");
$siteName = Util::getStringValue("SiteName");
$storyHome = Util::getStringValue("StoryHome");
$siteHome = Util::getStringValue("SiteHome");
$adminEmail = Util::getStringValue("AdminEmail");
$maxLinks = Util::getIntValue("MaxLinks");
$countDate = Util::getStringValue("CountDate");
$countValue = Util::getIntValue("CountValue");
$isWriteable = Util::getStringValue("IsWriteable");
if ($isWriteable == "N") {
    ?>

<HTML><HEAD>
<TITLE>Creation Error - Episode Creation Disabled</TITLE>
</HEAD><BODY>

<CENTER>
<H1>Creation Error</H1>
<H2>Episode Creation Disabled</H2>

<TABLE WIDTH="500">
    <TR>
        <TD>
You are unable to create episodes while episode creation is disabled.
Пример #2
0
">Go Back</A>
        </TD>
    </TR>
</TABLE>

</CENTER>

<?php 
            require __DIR__ . "/include/config/Footer.php";
            ?>

</BODY></HTML>

<?php 
        } else {
            $countDate = Util::getStringValue("CountDate");
            $countValue = Util::getAndIncrementIntValue("CountValue");
            ?>

<HTML><HEAD>
<TITLE>
    <?php 
            echo $storyName;
            ?>
: <?php 
            echo $title;
            ?>
 [Episode <?php 
            echo $episode;
            ?>
]
Пример #3
0
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
For information about Extend-A-Story and its authors, please visit the website:
http://www.sir-toby.com/extend-a-story/
*/
require __DIR__ . "/include/Extend-A-Story.php";
use Extend_A_Story\Util;
Util::getSessionAndUserIDs($sessionID, $userID);
$storyName = Util::getStringValue("StoryName");
$siteName = Util::getStringValue("SiteName");
$storyHome = Util::getStringValue("StoryHome");
$siteHome = Util::getStringValue("SiteHome");
?>

<HTML><HEAD>
<TITLE><?php 
echo $storyName;
?>
: Search</TITLE>
</HEAD><BODY>

<CENTER>
<H1><?php 
echo $storyName;
?>
: Search</H1>
Пример #4
0
 public static function extensionNotification($email, $parent, $episode, $authorName)
 {
     $storyName = Util::getStringValue("StoryName");
     $storyHome = Util::getStringValue("StoryHome");
     $readEpisodeURL = Util::getStringValue("ReadEpisodeURL");
     $adminEmail = Util::getStringValue("AdminEmail");
     $message = "This is an automated message.\n" . "\n" . "Episode " . $episode . ", a child of episode " . $parent . ", has been created.\n" . $readEpisodeURL . "?episode=" . $episode . "\n" . "\n" . "Author of the new episode: " . $authorName . "\n" . "\n" . "This email was automatically generated and sent because at some\n" . "point you created one or more episodes in the expandable story\n" . "          " . $storyName . "\n" . "     " . $storyHome . "\n" . "and asked to be notified when someone expanded your story line.";
     mail($email, $storyName . " - Extension", $message, "From: " . $adminEmail, "-f" . $adminEmail);
 }