Пример #1
0
        $varObject->allViews[$view_count]['plural']['language'] = strtoupper($varObject->allViews[$view_count]['plural']['safe']);
        // Check plural and create
        if ($post['view-single'][$view_count]) {
            $singular = $post['view-single'][$view_count];
            // Main view can't equal the singular view
            if ($singular != $view) {
                $singular = $singular;
            } else {
                $singular = substr($view, 0, -1);
            }
        } else {
            $singular = substr($view, 0, -1);
        }
        $varObject->allViews[$view_count]['singular']['orig'] = $singular;
        $varObject->allViews[$view_count]['singular']['cap'] = ucwords($singular);
        $varObject->allViews[$view_count]['singular']['safe'] = FileHelper::safeString($singular);
        $varObject->allViews[$view_count]['singular']['language'] = strtoupper($varObject->allViews[$view_count]['singular']['safe']);
        $view_count++;
    }
}
// end - added v.0.6.0
// Language variables
$varObject->com_language = $com_language;
$varObject->com_language_menu = $com_language_menu;
$extraLanguageLines = array();
$extraSysLanguageLines = array();
// Display variables
$varObject->tab1 = $tab1;
$varObject->tab2 = $tab2;
$varObject->tab3 = $tab3;
$varObject->tab4 = $tab4;
Пример #2
0
    $good = false;
}
if (empty($post['description'])) {
    $good = false;
}
// good to continue to database and create?
if ($good) {
    $varObject = (object) array();
    $varObject->return = "\n";
    $varObject->tab1 = '	';
    $varObject->tab2 = '		';
    $varObject->tab3 = '			';
    $varObject->tab4 = '				';
    $varObject->midparent = intval($post['midparent']);
    $varObject->name = FileHelper::preventInjection($post['name']);
    $varObject->filename = FileHelper::safeString($post['filename']);
    $varObject->author = FileHelper::preventInjection($post['author']);
    $varObject->author_email = FileHelper::preventInjection($post['author_email']);
    $varObject->author_url = FileHelper::preventInjection($post['author_url']);
    $varObject->version = FileHelper::onlyVersion($post['version']);
    $varObject->description = FileHelper::preventInjection($post['description']);
    $varObject->copyright = FileHelper::preventInjection($post['copyright']);
    $varObject->license = FileHelper::preventInjection($post['license']);
    $varObject->jversion = FileHelper::onlyVersion($post['jversion']);
    $varObject->brversion = FileHelper::onlyVersion($post['brversion']);
    // le Zip Array()
    $filestozip = array();
    // Lines created Array()
    $totallinescreated = array();
    // Index files
    $indexlines = array();
Пример #3
0
    if ($post['agree'] != 1) {
        $good = false;
    }
    if ($post['password'] != $post['password2']) {
        $good = false;
    }
    // if good, send e-mail and add to database
    if ($good) {
        // check if e-mail is already in use
        $noemail = 0;
        $noemail = $database->select('br_users', 'COUNT(DISTINCT email) as count', 'email="' . strtolower($post['email']) . '"', 'object');
        $noemail = $noemail[0]->count;
        if ($noemail == 0) {
            $user = array();
            $user['fname'] = ucwords(FileHelper::safeString($post['fname']));
            $user['lname'] = ucwords(FileHelper::safeString($post['lname']));
            $user['email'] = strtolower($post['email']);
            $user['email_code'] = md5(uniqid(rand(), true));
            $user['email_validated'] = 0;
            $user['password'] = FileHelper::br_encrypt($post['password']);
            $user['country'] = $post['country'];
            $user['paypal_payment_status'] = 0;
            $user['date_created'] = date('Y-m-d H:i:s');
            $database->insert('br_users', $user);
            $link_validate = $base_url . 'validate.php?' . $user['email_code'];
            // send validation e-mail
            $msg = '
			<html>
				<head>
					<title>Welcome to Black Rabbit, ' . $user['fname'] . '</title>
				</head>