// may exit
self::hackMenuRebuild($args);
self::init($args);
- self::hackStandalone($args);
$item = self::getItem($args);
return self::runItem($item);
}
$i18n = CRM_Core_I18n::singleton();
}
- /**
- * Hackish support for /standalone/*
- *
- * @param array $args
- * List of path parts.
- * @void
- */
- public static function hackStandalone($args) {
- $config = CRM_Core_Config::singleton();
- if ($config->userFramework == 'Standalone') {
- $session = CRM_Core_Session::singleton();
- if ($session->get('new_install') !== TRUE) {
- CRM_Core_Standalone::sidebarLeft();
- }
- elseif ($args[1] == 'standalone' && $args[2] == 'register') {
- CRM_Core_Menu::store();
- }
- }
- }
-
/**
* Determine which menu $item corresponds to $args
*
*
* The CMS takes care of initiating the php session handler session_start().
*
- * When using CiviCRM standalone (w/o a CMS), we start the session
- * in index.php and then pass it off to here.
- *
* All crm code should always use the session using
* CRM_Core_Session. we prefix stuff to avoid collisions with the CMS and also
* collisions with other crm modules!
<page_callback>CRM_ACL_Page_ACLBasic</page_callback>
<access_arguments>administer CiviCRM,access CiviCRM</access_arguments>
</item>
- <item>
- <path>civicrm/standalone/register</path>
- <title>Registration Page</title>
- <page_callback>CRM_Standalone_Form_Register</page_callback>
- <access_callback>1</access_callback>
- <is_public>true</is_public>
- </item>
<item>
<path>civicrm/file</path>
<title>Browse Uploaded files</title>
+++ /dev/null
-<?xml version="1.0" encoding="iso-8859-1" ?>
-
-<table>
- <base>CRM/Standalone/OpenID</base>
- <class>Associations</class>
- <name>civicrm_openid_associations</name>
- <comment>The OpenID associations store for standalone login.</comment>
- <add>2.0</add>
- <field>
- <name>id</name>
- <type>int unsigned</type>
- <required>true</required>
- <add>2.0</add>
- </field>
- <primaryKey>
- <name>id</name>
- <autoincrement>true</autoincrement>
- </primaryKey>
- <field>
- <name>server_url</name>
- <type>blob</type>
- <add>2.0</add>
- </field>
- <field>
- <name>handle</name>
- <type>varchar</type>
- <length>255</length>
- <html>
- <type>Text</type>
- </html>
- <add>2.0</add>
- </field>
- <field>
- <name>secret</name>
- <type>blob</type>
- <add>2.0</add>
- </field>
- <field>
- <name>issued</name>
- <type>int</type>
- <add>2.0</add>
- </field>
- <field>
- <name>lifetime</name>
- <type>int</type>
- <add>2.0</add>
- </field>
- <field>
- <name>assoc_type</name>
- <type>varchar</type>
- <length>64</length>
- <html>
- <type>Text</type>
- </html>
- <add>2.0</add>
- </field>
- <index>
- <name>server_url_handle_index</name>
- <fieldName length="166">server_url</fieldName>
- <fieldName length="166">handle</fieldName>
- <unique>true</unique>
- <add>2.0</add>
- </index>
-</table>
+++ /dev/null
-<?xml version="1.0" encoding="iso-8859-1" ?>
-
-<table>
- <base>CRM/Standalone/OpenID</base>
- <class>Nonce</class>
- <name>civicrm_openid_nonces</name>
- <comment>The OpenID nonce store for standalone login.</comment>
- <add>2.0</add>
- <field>
- <name>id</name>
- <type>int unsigned</type>
- <required>true</required>
- <add>2.0</add>
- </field>
- <primaryKey>
- <name>id</name>
- <autoincrement>true</autoincrement>
- </primaryKey>
- <field>
- <name>server_url</name>
- <type>blob</type>
- <add>2.0</add>
- </field>
- <field>
- <name>timestamp</name>
- <type>int</type>
- <add>2.0</add>
- </field>
- <field>
- <name>salt</name>
- <type>char</type>
- <length>40</length>
- <add>2.0</add>
- </field>
- <index>
- <name>nonce_index</name>
- <fieldName length="255">server_url</fieldName>
- <fieldName>timestamp</fieldName>
- <fieldName>salt</fieldName>
- <unique>true</unique>
- <add>2.0</add>
- </index>
-</table>
+++ /dev/null
-<?xml version="1.0" encoding="iso-8859-1" ?>
-
-<tables xmlns:xi="http://www.w3.org/2001/XInclude">
-
-<xi:include href="Nonce.xml" parse="xml" />
-<xi:include href="Associations.xml" parse="xml" />
-</tables>