This commit is contained in:
friendica 2014-10-22 16:49:45 -07:00
commit e3943087b2
11 changed files with 107 additions and 127 deletions

View File

@ -25,10 +25,6 @@ An individual computer or server connected to the RedMatrix. These are provided
The system operator of an individual hub. The system operator of an individual hub.
**spy network**
Typically large centralised providers including but not limited to Facebook and Google. RedMatrix PRIVATE communications are designed to even be resistant to monitoring by the American NSA, however the technical capabilities of the NSA are not completely known and no guarantee of privacy against this organisation can be made. RedMatrix PUBLIC communications are not protected in any way.
##Policies ##Policies
**Public Information** **Public Information**
@ -52,7 +48,7 @@ Comments to posts that were created by others and posts which are designated as
**Private Information** **Private Information**
RedMatrix developers will ensure that any content you provide which is designated as PRIVATE will be protected against eavesdropping - to the best of their ability. Private content is generally hidden or obscured even from hub administrators. It is also stripped from email notifications. It is difficult but NOT impossible for this content to be seen by a hub administrator who is determined to monitor your communications. We consider this like the lock on the door of a house. It will generally keep the house safe, but a determined burgler will ignore the lock on the door and instead break a window. RedMatrix developers will ensure that any content you provide which is designated as PRIVATE will be protected against eavesdropping - to the best of their ability. Private content is generally hidden or obscured even from hub administrators. It is also stripped from email notifications. It is difficult but NOT impossible for this content to be seen by a hub administrator. This is a side effect of the physical laws of the universe. Unfortunately, if a database needs to decrypt a post at display time, it must have the means to decrypt the post! End to end encryption is also provided and this CANNOT be seen, even by a determined administrator.
##Identity Privacy ##Identity Privacy
@ -74,3 +70,4 @@ The RedMatrix RECOMMENDS that hub administrators provide a grace period of 1-2 d
If you typically and regularly post content of an adult or offensive nature, you are STRONGLY encouraged to mark your account "NSFW" (Not Safe For Work). This will prevent the display of your profile photo in the directory except to viewers that have chosen to disable "safe mode". If your profile photo is found by directory administrators to be adult or offensive, the directory administrator MAY flag your profile photo as NSFW. There is currently no official mechanism to contest or reverse this decision, which is why you SHOULD mark your own account NSFW if it is likely to be inappropriate for general audiences. If you typically and regularly post content of an adult or offensive nature, you are STRONGLY encouraged to mark your account "NSFW" (Not Safe For Work). This will prevent the display of your profile photo in the directory except to viewers that have chosen to disable "safe mode". If your profile photo is found by directory administrators to be adult or offensive, the directory administrator MAY flag your profile photo as NSFW. There is currently no official mechanism to contest or reverse this decision, which is why you SHOULD mark your own account NSFW if it is likely to be inappropriate for general audiences.
#include doc/macros/main_footer.bb;

View File

@ -1,36 +0,0 @@
Profiles
========
* [Home](help)
Red has unlimited profiles. You may use different profiles to show different "sides of yourself" to different audiences. This is different to having different _channels_. Different channels allow for completely different sets of information. You may have a channel for yourself, a channel for your sports team, a channel for your website, or whatever else. A profile allows for finely graded "sides" of each channel. For example, your default public profile might say "Hello, I'm Fred, and I like laughing". You may show your close friends a profile that adds "and I also enjoy dwarf tossing".
You always have a profile known as your "default" or "public" profile. This profile is always available to the general public and cannot be hidden (there may be rare exceptions on privately run or disconnected sites). You may, and probably should restrict the information you make available on your public profile.
That said, if you want other friends to be able to find you, it helps to have the following information in your public profile...
* Your real name or at least a nickname everybody knows
* A photo of **you**
* Your location on the planet, at least to a country level.
Without this basic information, you could get very lonely here. Most people (even your best friends) will not try and connect with somebody that has a fake name or doesn't contain a real photo.
In addition, if you'd like to meet people that share some general interests with you, please take a moment and add some "Keywords" to your profile. Such as "music, linux, photography" or whatever. You can add as many keywords as you like.
To create an alternate profile, select "View Profile" from the menu of your Red Matrix site, then click on the pencil at your profile photo. You may edit an existing profile, change the profile photo, add things to a profile or create a new profile. You may also create a "clone" of an existing profile if you only wish to change a few items but don't wish to enter all the information again. To do that, click on the profile you want to clone and choose "Clone this profile" there.
In the list of your profiles, you can also choose the contacts who can see a specific profile. Just click on "Edit visibility" next to the profile in question (only available for the profiles that are not your default profile) and then click on user images to add them to or remove them from the group of people who can see this profile.
Once a profile has been selected, when the person views your profile, they will see the private profile you have assigned. If they are not authenticated, they will see your public profile.
There is a setting which allows you to publish your profile to a directory and ensure that it can be found by others. You can change this setting on the "Settings" page.
If you do not wish to be found be people unless you give them your channel address, you may leave your profile unpublished.
**Keywords and Directory Search**
On the directory page, you may search for people with published profiles. The search is typically for your nickname or part of your full name. However this search will also match against other profile fields - such as gender, location, "about", work, and education. You may also include "Keywords" in your default profile - which may be used to search for common interests with other members. Keywords are used in the channel suggestion tool and although they aren't visible in the directory, they are shown if people visit your profile page.
Directory searches are also able to use "boolean" logic so that you can search for "+lesbian +Florida" and find those who's sexual preference (or keywords) contain the world "lesbian" and that live in Florida. See the section on "Topical Tags" on the [Tags-and-Mentions](help/Tags-and-Mentions) page for more information on performing boolean searches.
On your Connnections page and in the directory there is a link to "Suggestions" or "Channel Suggestions", respectively. This will find channels who have matching and/or similar keywords. The more keywords you provide, the more relevant the search results that are returned. These are sorted by relevance.

View File

@ -1,7 +1,7 @@
[b]Installing On Debian[/b] [b]Installing On Debian[/b]
While following the instructions for any other installation will work on Debian, for this platform we also provide an install script While following the instructions for any other installation will work on Debian, for this platform we also provide an install script
which can be [zrl=http://beardyunixer.com:1234/?p=debian-install-script.git;a=tree]downloaded here[/zrl] which can be [url=http://gitweb.whogotzot.com/debian-install-script]downloaded here[/url]
[b]THIS SCRIPT IS MEANT TO BE RUN ON A NEW OR JUST REINSTALLED SERVER[/b] [b]THIS SCRIPT IS MEANT TO BE RUN ON A NEW OR JUST REINSTALLED SERVER[/b]
@ -17,7 +17,7 @@ For the initial setup git may not be installed on your server, to install git:
If wget is installed try If wget is installed try
[code]wget "http://beardyunixer.com:1234/?p=debian-install-script.git;a=blob_plain;f=debian-setup.sh;hb=HEAD" -O debian-setup.sh[/code] [code]wget "http://gitweb.whogotzot.com/debian-install-script/snapshot/91e76332668509585d52d4fa3f5b81a728c67fa6.tar.gz" -O debian-setup.sh[/code]
To install wget: To install wget:
[code]apt-get install wget[/code] [code]apt-get install wget[/code]

View File

@ -20,13 +20,13 @@ Returns the global app structure ($a).
(App:: is usually assigned to the global $a), so $a->get_observer() or get_app()->get_observer() - returns an xchan structure representing the current viewer if authenticated (locally or remotely). (App:: is usually assigned to the global $a), so $a->get_observer() or get_app()->get_observer() - returns an xchan structure representing the current viewer if authenticated (locally or remotely).
[b]get_config($family,$key), get_pconfig($uid,$family,$key)[/b] [b]get_config($family,$key), get_pconfig($uid,$family,$key), get_xconfig($xchan_hash,$family,$key)[/b]
Returns the config setting for $family and $key or false if unset. Returns the config setting for $family and $key or false if unset.
[b] set_config($family,$key,$value), set_pconfig($uid,$family,$key,$value)[/b] [b] set_config($family,$key,$value), set_pconfig($uid,$family,$key,$value)[/b]
Sets the value of config setting for $family and $key to $value. Returns $value. The config versions operate on system-wide settings. The pconfig versions get/set the values for a specific integer uid (channel_id). Sets the value of config setting for $family and $key to $value. Returns $value. The config versions operate on system-wide settings. The pconfig versions get/set the values for a specific integer uid (channel_id). The xconfig version get/sets the value for a specific xchan hash - generally used for remote users.
[b]dbesc()[/b] [b]dbesc()[/b]

View File

@ -43,6 +43,11 @@ valid SSL certificate rather than disabling port 443.
4) Rsync everything in custom/ (this will only exist if you have custom modules) 4) Rsync everything in custom/ (this will only exist if you have custom modules)
5) Dump and restore DB. 5) Dump and restore DB.
[*]
[b]How do I set the default homepage for logged out viewers?[/b]
Use the custom_home addon available in the main addons repository.
[/ul] [/ul]
#include doc/macros/main_footer.bb; #include doc/macros/main_footer.bb;

View File

@ -24,7 +24,7 @@ Zot is the great new communicaton protocol invented especially for the Red Matri
[zrl=[baseurl]/help/cloud]Cloud Storage[/zrl] [zrl=[baseurl]/help/cloud]Cloud Storage[/zrl]
[zrl=[baseurl]/help/remove_account]Remove Channel or Account[/zrl] [zrl=[baseurl]/help/remove_account]Remove Channel or Account[/zrl]
[size=large][b]Using the Red Matrix[/b][/size] [size=large][b]Members Help[/b][/size]
[zrl=[baseurl]/help/tags_and_mentions]Tags and Mentions[/zrl] [zrl=[baseurl]/help/tags_and_mentions]Tags and Mentions[/zrl]
[zrl=[baseurl]/help/webpages]Web Pages[/zrl] [zrl=[baseurl]/help/webpages]Web Pages[/zrl]
[zrl=[baseurl]/help/bbcode]BBcode reference for posts and comments[/zrl] [zrl=[baseurl]/help/bbcode]BBcode reference for posts and comments[/zrl]
@ -32,20 +32,15 @@ Zot is the great new communicaton protocol invented especially for the Red Matri
[zrl=[baseurl]/help/cloud_desktop_clients]Cloud Desktop Clients[/zrl] [zrl=[baseurl]/help/cloud_desktop_clients]Cloud Desktop Clients[/zrl]
[zrl=[baseurl]/help/AdvancedSearch]Advanced Directory Search[/zrl] [zrl=[baseurl]/help/AdvancedSearch]Advanced Directory Search[/zrl]
[zrl=[baseurl]/help/addons]Help With Addons[/zrl] [zrl=[baseurl]/help/addons]Help With Addons[/zrl]
[zrl=[baseurl]/help/nomadic-identity]Got Zot? Nomadic Identity, Channel Cloning And More[/zrl]
[zrl=[baseurl]/help/diaspora_compat]Diaspora Communications Compatibility (Diaspora and Friendica)[/zrl] [zrl=[baseurl]/help/diaspora_compat]Diaspora Communications Compatibility (Diaspora and Friendica)[/zrl]
[size=large][b]Frequently Asked Questions For Members[/b][/size]
[zrl=[baseurl]/help/faq_members]FAQ For Members[/zrl] [zrl=[baseurl]/help/faq_members]FAQ For Members[/zrl]
[size=large][b]For Hub Administrators[/b][/size] [size=large][b]Administrators Help[/b][/size]
[zrl=[baseurl]/help/install]Install[/zrl] [zrl=[baseurl]/help/install]Install[/zrl]
[zrl=[baseurl]/help/debian_install]Easy Install on Debian via script[/zrl] [zrl=[baseurl]/help/debian_install]Easy Install on Debian via script[/zrl]
[zrl=[baseurl]/help/red2pi]Installing Red on the Raspberry Pi[/zrl] [zrl=[baseurl]/help/red2pi]Installing Red on the Raspberry Pi[/zrl]
[zrl=[baseurl]/help/problems-following-an-update]Problems Following A Software Update[/zrl]
[zrl=[baseurl]/help/troubleshooting]Troubleshooting Tips[/zrl] [zrl=[baseurl]/help/troubleshooting]Troubleshooting Tips[/zrl]
[zrl=[baseurl]/help/hidden_configs]Tweaking RedMatrix's Hidden Configurations[/zrl]
[size=large][b]Frequently Asked Questions For Hub Admins[/b][/size]
[zrl=[baseurl]/help/faq_admins]FAQ For Admins[/zrl] [zrl=[baseurl]/help/faq_admins]FAQ For Admins[/zrl]
[size=large][b]Technical Documentation[/b][/size] [size=large][b]Technical Documentation[/b][/size]
@ -69,7 +64,6 @@ Zot is the great new communicaton protocol invented especially for the Red Matri
[zrl=[baseurl]/help/to_do_code]To-Do list for Developers[/zrl] [zrl=[baseurl]/help/to_do_code]To-Do list for Developers[/zrl]
[zrl=[baseurl]/help/git_for_non_developers]Git for Non-Developers[/zrl] [zrl=[baseurl]/help/git_for_non_developers]Git for Non-Developers[/zrl]
[size=large][b]Frequently Asked Questions For Developers[/b][/size] [size=large][b]Frequently Asked Questions For Developers[/b][/size]
[zrl=[baseurl]/help/faq_developers]FAQ For Developers[/zrl] [zrl=[baseurl]/help/faq_developers]FAQ For Developers[/zrl]
@ -79,5 +73,6 @@ Zot is the great new communicaton protocol invented especially for the Red Matri
[url=https://github.com/friendica/red-addons]Addon Website[/url] [url=https://github.com/friendica/red-addons]Addon Website[/url]
[url=https://zothub.com/channel/one]Development Channel[/url] [url=https://zothub.com/channel/one]Development Channel[/url]
[url=[baseurl]/help/credits]RedMatrix Credits[/url]
[size=large][b]About This Red Matrix Site[/b][/size] [size=large][b]About This Red Matrix Site[/b][/size]
[zrl=[baseurl]/siteinfo] [baseurl]/siteinfo[/zrl] [zrl=[baseurl]/siteinfo] [baseurl]/siteinfo[/zrl]

View File

@ -1,9 +1,5 @@
[b]How to install the Red Matrix on a Raspberry Pi[/b] [b]How to install the Red Matrix on a Raspberry Pi[/b]
[zrl=[baseurl]/help/main] Back to the main page[/zrl]
Last update 2014-02-22
[hr]
You just bought a Raspberry Pi and want to run the RED Matrix with your own domain name? You just bought a Raspberry Pi and want to run the RED Matrix with your own domain name?
Then this page is for you! You will: Then this page is for you! You will:

View File

@ -3,4 +3,6 @@
[li][zrl=[baseurl]/help/technical_faq]Technical FAQ[/zrl][/li] [li][zrl=[baseurl]/help/technical_faq]Technical FAQ[/zrl][/li]
[li][zrl=[baseurl]/help/problems-following-an-update]Problems following an update[/zrl][/li] [li][zrl=[baseurl]/help/problems-following-an-update]Problems following an update[/zrl][/li]
#include doc/macros/troubleshooting_footer.bb;
#include doc/macros/main_footer.bb; #include doc/macros/main_footer.bb;

View File

@ -1,4 +1,3 @@
Red Matrix Installation Red Matrix Installation
We've tried very hard to ensure that the Red Matrix will run on commodity We've tried very hard to ensure that the Red Matrix will run on commodity
@ -46,15 +45,15 @@ allow you to use a non browser-valid certificate.
This restriction is incorporated because public posts from you may for example This restriction is incorporated because public posts from you may for example
contain references to images on your own hub. If your certificate is not known contain references to images on your own hub. If your certificate is not known
by the internet browser of users they get a warning message complaining about by the internet browser of users they get a warning message complaining about
some security issues. Although these complains are not the real truth - there the invalid certificate.
are no security issues with your encryption! - the users may be confused,
nerved or even worse may become scared about Red Matrix having security issues.
Free "browser-valid" certificates are available from providers such as StartSSL. Free "browser-valid" certificates are available from providers such as StartSSL.
If you do NOT use SSL, there may be a delay of up to a minute for the initial If you do NOT use SSL, there may be a delay of up to a minute for the initial
install script - while we check the SSL port to see if anything responds there. install script - while we check the SSL port to see if anything responds there.
When communicating with new sites, Red Matrix always attempts connection on the When communicating with new sites, Red Matrix always attempts connection on the
SSL port first, before falling back to a less secure connection. SSL port first, before falling back to a less secure connection. If you do not
use SSL, your webserver must not listen on port 443 at all.
1. Requirements 1. Requirements
- Apache with mod-rewrite enabled and "AllowOverride All" so you can use a - Apache with mod-rewrite enabled and "AllowOverride All" so you can use a
@ -63,10 +62,11 @@ local .htaccess file
- PHP 5.3+. The later the better. - PHP 5.3+. The later the better.
- PHP *command line* access with register_argc_argv set to true in the - PHP *command line* access with register_argc_argv set to true in the
php.ini file - and with no hosting provider restrictions on the use of exec() php.ini file - and with no hosting provider restrictions on the use of
and proc_open(). exec() and proc_open().
- curl, gd (with at least jpeg and png support), mysqli, mbstring, mcrypt, and openssl extensions. The imagick extension is not required but desirable. - curl, gd (with at least jpeg and png support), mysqli, mbstring, mcrypt,
and openssl extensions. The imagick extension is not required but desirable.
- some form of email server or email gateway such that PHP mail() works - some form of email server or email gateway such that PHP mail() works
@ -79,14 +79,14 @@ directory/path component in the URL) is REQUIRED.
2. Unpack the RedMatrix files into the root of your web server document area. 2. Unpack the RedMatrix files into the root of your web server document area.
- If you copy the directory tree to your webserver, make sure If you copy the directory tree to your webserver, make sure that you
that you also copy .htaccess - as "dot" files are often hidden also copy .htaccess - as "dot" files are often hidden and aren't normally
and aren't normally copied. copied.
- If you are able to do so, we recommend using git to clone the - If you are able to do so, we recommend using git to clone the source
source repository rather than to use a packaged tar or zip file. repository rather than to use a packaged tar or zip file. This makes the
This makes the software much easier to update. The Linux command software much easier to update. The Linux command to clone the repository
to clone the repository into a directory "mywebsite" would be into a directory "mywebsite" would be
git clone https://github.com/friendica/red.git mywebsite git clone https://github.com/friendica/red.git mywebsite
@ -94,15 +94,17 @@ directory/path component in the URL) is REQUIRED.
git pull git pull
- make sure folders *store/[data]/smarty3* and *store* exist and are writable by webserver - make sure folders *store/[data]/smarty3* and *store* exist and are
writable by the webserver
mkdir -p "store/[data]/smarty3" mkdir -p "store/[data]/smarty3"
chmod -R 777 store chmod -R 777 store
[This permission (777) is very dangerous and if you have sufficient [This permission (777) is very dangerous and if you have sufficient
privilege and knowledge you should make this directory writeable only privilege and knowledge you should make these directories writeable
by the webserver. In many shared hosting environments this may be only by the webserver and, if different, the user that will run the
cron job (see below). In many shared hosting environments this may be
difficult without opening a trouble ticket with your provider. The difficult without opening a trouble ticket with your provider. The
above permissions will allow the software to work, but are not above permissions will allow the software to work, but are not
optimal.] optimal.]
@ -117,17 +119,16 @@ directory/path component in the URL) is REQUIRED.
git clone https://github.com/friendica/red-addons.git addon git clone https://github.com/friendica/red-addons.git addon
- For keeping the addon tree updated, you should be on you addon tree and issue a git pull - For keeping the addon tree updated, you should be on you addon tree and
issue a git pull
cd mywebsite/addon cd mywebsite/addon
git pull git pull
3. Create an empty database and note the access details (hostname, username, 3. Create an empty database and note the access details (hostname, username,
password, database name). password, database name).
4. If you know in advance that it will be impossible for the web server to 4. If you know in advance that it will be impossible for the web server to
write or create files in your web directory, create an empty file called write or create files in your web directory, create an empty file called
.htconfig.php and make it writable by the web server. .htconfig.php and make it writable by the web server.
@ -173,10 +174,10 @@ one shown, substituting for your unique paths and settings:
You can generally find the location of PHP by executing "which php". If you You can generally find the location of PHP by executing "which php". If you
have troubles with this section please contact your hosting provider for have troubles with this section please contact your hosting provider for
assistance. The RedMatrix will not work correctly if you cannot perform this step. assistance. RedMatrix will not work correctly if you cannot perform this step.
You should also be sure that $a->config['system']['php_path'] is set correctly, it should You should also be sure that $a->config['system']['php_path'] is set correctly,
look like (changing it to the correct PHP location) it should look like (changing it to the correct PHP location)
$a->config['system']['php_path'] = '/usr/local/php53/bin/php'; $a->config['system']['php_path'] = '/usr/local/php53/bin/php';
@ -193,8 +194,8 @@ $a->config['system']['php_path'] = '/usr/local/php53/bin/php';
"System is currently unavailable. Please try again later" "System is currently unavailable. Please try again later"
##################################################################### #####################################################################
Check your database settings. It usually means your database could not Check your database settings. It usually means your database could not be
be opened or accessed. If the database resides on the same machine, check that opened or accessed. If the database resides on the same machine, check that
the database server name is the word "localhost". the database server name is the word "localhost".
##################################################################### #####################################################################
@ -227,8 +228,8 @@ http://yoursitenamehere.com/test.out
This file should be blocked. You should get a permission denied message. This file should be blocked. You should get a permission denied message.
If you see the word "test" your Apache configuration is not allowing If you see the word "test" your Apache configuration is not allowing your
your .htaccess file to be used (there are rules in this file to block access .htaccess file to be used (there are rules in this file to block access
to any file with .out at the end, as these are typically used for system logs). to any file with .out at the end, as these are typically used for system logs).
Make certain the .htaccess file exists and is readable by everybody, then Make certain the .htaccess file exists and is readable by everybody, then

View File

@ -12,6 +12,8 @@ function events_post(&$a) {
return; return;
$event_id = ((x($_POST,'event_id')) ? intval($_POST['event_id']) : 0); $event_id = ((x($_POST,'event_id')) ? intval($_POST['event_id']) : 0);
$event_hash = ((x($_POST,'event_hash')) ? $_POST['event_hash'] : '');
$xchan = ((x($_POST,'xchan')) ? dbesc($_POST['xchan']) : ''); $xchan = ((x($_POST,'xchan')) ? dbesc($_POST['xchan']) : '');
$uid = local_user(); $uid = local_user();
@ -67,19 +69,22 @@ function events_post(&$a) {
// and we'll waste a bunch of time responding to it. Time that // and we'll waste a bunch of time responding to it. Time that
// could've been spent doing something else. // could've been spent doing something else.
if(strcmp($finish,$start) < 0) {
notice( t('Event can not end before it has started.') . EOL);
goaway($a->get_baseurl() . '/events/new');
}
$summary = escape_tags(trim($_POST['summary'])); $summary = escape_tags(trim($_POST['summary']));
$desc = escape_tags(trim($_POST['desc'])); $desc = escape_tags(trim($_POST['desc']));
$location = escape_tags(trim($_POST['location'])); $location = escape_tags(trim($_POST['location']));
$type = 'event'; $type = 'event';
$action = ($event_hash == '') ? 'new' : "event/" . $event_hash;
$onerror_url = $a->get_baseurl() . "/events/" . $action . "?summary=$summary&description=$desc&location=$location&start=$start_text&finish=$finish_text&adjust=$adjust&nofinish=$nofinish";
if(strcmp($finish,$start) < 0 && !$nofinish) {
notice( t('Event can not end before it has started.') . EOL);
goaway($onerror_url);
}
if((! $summary) || (! $start)) { if((! $summary) || (! $start)) {
notice( t('Event title and start time are required.') . EOL); notice( t('Event title and start time are required.') . EOL);
goaway($a->get_baseurl() . '/events/new'); goaway($onerror_url);
} }
$share = ((intval($_POST['share'])) ? intval($_POST['share']) : 0); $share = ((intval($_POST['share'])) ? intval($_POST['share']) : 0);
@ -450,6 +455,19 @@ function events_content(&$a) {
$channel = $a->get_channel(); $channel = $a->get_channel();
// Passed parameters overrides anything found in the DB
if($mode === 'edit' || $mode === 'new') {
if(!x($orig_event)) $orig_event = array();
// In case of an error the browser is redirected back here, with these parameters filled in with the previous values
if(x($_REQUEST,'nofinish')) $orig_event['nofinish'] = $_REQUEST['nofinish'];
if(x($_REQUEST,'adjust')) $orig_event['adjust'] = $_REQUEST['adjust'];
if(x($_REQUEST,'summary')) $orig_event['summary'] = $_REQUEST['summary'];
if(x($_REQUEST,'description')) $orig_event['description'] = $_REQUEST['description'];
if(x($_REQUEST,'location')) $orig_event['location'] = $_REQUEST['location'];
if(x($_REQUEST,'start')) $orig_event['start'] = $_REQUEST['start'];
if(x($_REQUEST,'finish')) $orig_event['finish'] = $_REQUEST['finish'];
}
if($mode === 'edit' || $mode === 'new') { if($mode === 'edit' || $mode === 'new') {
$n_checked = ((x($orig_event) && $orig_event['nofinish']) ? ' checked="checked" ' : ''); $n_checked = ((x($orig_event) && $orig_event['nofinish']) ? ' checked="checked" ' : '');
@ -537,6 +555,7 @@ function events_content(&$a) {
'$eid' => $eid, '$eid' => $eid,
'$xchan' => $event_xchan, '$xchan' => $event_xchan,
'$mid' => $mid, '$mid' => $mid,
'$event_hash' => $event_id,
'$title' => t('Event details'), '$title' => t('Event details'),
'$desc' => t('Starting date and Title are required.'), '$desc' => t('Starting date and Title are required.'),
@ -548,11 +567,11 @@ function events_content(&$a) {
'$ftext' => $ftext, '$ftext' => $ftext,
'$ModalCANCEL' => t('Cancel'), '$ModalCANCEL' => t('Cancel'),
'$ModalOK' => t('OK'), '$ModalOK' => t('OK'),
'$s_dsel' => datetimesel($f,mktime(),mktime(0,0,0,0,0,$syear+5),mktime(),'start_text'), '$s_dsel' => datetimesel($f,mktime(),mktime(0,0,0,0,0,$syear+5),mktime($shour,$sminute,$ssecond,$smonth,$sday,$syear),'start_text'),
'$n_text' => t('Finish date/time is not known or not relevant'), '$n_text' => t('Finish date/time is not known or not relevant'),
'$n_checked' => $n_checked, '$n_checked' => $n_checked,
'$f_text' => t('Event Finishes:'), '$f_text' => t('Event Finishes:'),
'$f_dsel' => datetimesel($f,mktime(),mktime(0,0,0,0,0,$fyear+5),mktime(),'finish_text',true,true,'start_text'), '$f_dsel' => datetimesel($f,mktime(),mktime(0,0,0,0,0,$fyear+5),mktime($fhour,$fminute,$fsecond,$fmonth,$fday,$fyear),'finish_text',true,true,'start_text'),
'$a_text' => t('Adjust for viewer timezone'), '$a_text' => t('Adjust for viewer timezone'),
'$a_checked' => $a_checked, '$a_checked' => $a_checked,
'$d_text' => t('Description:'), '$d_text' => t('Description:'),

View File

@ -9,6 +9,7 @@
<form action="{{$post}}" method="post" > <form action="{{$post}}" method="post" >
<input type="hidden" name="event_id" value="{{$eid}}" /> <input type="hidden" name="event_id" value="{{$eid}}" />
<input type="hidden" name="event_hash" value="{{$event_hash}}" />
<input type="hidden" name="xchan" value="{{$xchan}}" /> <input type="hidden" name="xchan" value="{{$xchan}}" />
<input type="hidden" name="mid" value="{{$mid}}" /> <input type="hidden" name="mid" value="{{$mid}}" />