This commit is contained in:
Romain Neutron
2012-01-31 23:04:28 +01:00
9 changed files with 32 additions and 22 deletions

View File

@@ -271,7 +271,7 @@ return call_user_func(function()
$route = "/applications/dev/new";
$app->get($route, function() use ($app)
{
$var = array("violations" => null);
$var = array("violations" => null, 'form' => null);
return $app['response']('api/auth/application_dev_new.twig', $var);
});
@@ -339,7 +339,7 @@ return call_user_func(function()
}
catch (Exception $e)
{
}
$Serializer = $app['Core']['Serializer'];
@@ -374,7 +374,7 @@ return call_user_func(function()
}
catch (Exception $e)
{
}
$Serializer = $app['Core']['Serializer'];
@@ -400,7 +400,7 @@ return call_user_func(function()
}
catch (Exception $e)
{
}
$Serializer = $app['Core']['Serializer'];
@@ -424,7 +424,7 @@ return call_user_func(function()
}
catch (\Exception $e)
{
}
$Serializer = $app['Core']['Serializer'];

View File

@@ -52,7 +52,7 @@ class ConnectionTest implements ControllerProviderInterface
}
catch (\Exception $e)
{
}
if ($dbname && $connection_ok === true)
@@ -85,7 +85,7 @@ class ConnectionTest implements ControllerProviderInterface
}
catch (\Exception $e)
{
}
}

View File

@@ -406,11 +406,22 @@ class API_OAuth2_Adapter extends OAuth2
'response_type' => $request->get('response_type', false)
, 'client_id' => $request->get('client_id', false)
, 'redirect_uri' => $request->get('redirect_uri', false)
, 'scope' => $request->get('scope', false)
, 'state' => $request->get('state', false)
);
$scope = $request->get('scope', false);
$state = $request->get('state', false);
if($state)
{
$datas["state"] = $state;
}
if($scope)
{
$datas["scope"] = $scope;
}
$filters = array(
"client_id" => array(
"filter" => FILTER_VALIDATE_REGEXP

View File

@@ -1280,9 +1280,9 @@ class User_Adapter implements User_Interface, cache_cacheableInterface
if ($this->_prefs)
return $this;
$registry = \registry::get_instance();
$sql = 'SELECT prop, value FROM usr_settings WHERE usr_id= :id';
$stmt = $this->appbox->get_connection()->prepare($sql);
$stmt->execute(array(':id' => $this->id));
@@ -1302,7 +1302,7 @@ class User_Adapter implements User_Interface, cache_cacheableInterface
{
$v = $registry->get('GV_defaultQuery');
}
$this->_prefs[$k] = $v;
$this->update_pref($k, $v);
}

View File

@@ -43,7 +43,7 @@ class cache_databox
}
catch (\Exception $e)
{
}
if ($last_update)

View File

@@ -192,7 +192,6 @@ class connection
self::$_PDO_instance[$name] = null;
unset(self::$_PDO_instance[$name]);
}
return;
}

View File

@@ -159,13 +159,13 @@ class databox_status
$statuses = array();
$sbas_ids = $user->ACL()->get_granted_sbas();
$see_all = array();
foreach ($sbas_ids as $databox)
{
$see_all[$databox->get_sbas_id()] = false;
foreach($databox->get_collections() as $collection)
{
if($user->ACL()->has_right_on_base($collection->get_base_id(), 'chgstatus'))
@@ -193,7 +193,7 @@ class databox_status
if ($user->ACL()->has_right_on_sbas($sbas_id, 'bas_modify_struct'))
$see_this = true;
foreach ($status as $bit => $props)
{

View File

@@ -1935,16 +1935,16 @@ class record_adapter implements record_Interface, cache_cacheableInterface
public function get_data_from_cache($option = null)
{
\cache_databox::refresh($this->get_sbas_id());
$databox = $this->get_databox();
return $databox->get_data_from_cache($this->get_cache_key($option));
}
public function set_data_to_cache($value, $option = null, $duration = 0)
{
$databox = $this->get_databox();
return $databox->set_data_to_cache($value, $this->get_cache_key($option), $duration);
}
@@ -1962,7 +1962,7 @@ class record_adapter implements record_Interface, cache_cacheableInterface
break;
}
$databox = $this->get_databox();
\cache_databox::update($this->get_sbas_id(), 'record', $this->get_record_id());
return $databox->delete_data_from_cache($this->get_cache_key($option));

View File

@@ -6,7 +6,7 @@
<li>
<div>
<span class='app-row'><strong><a class="link" id="app_dev_new" href="/api/oauthv2/applications/dev/{{app.get_id}}/show">{{app.get_name}}</a></strong></span>
<span class='app-row'>{{app.get_desciption }}</span>
<span class='app-row'>{{app.get_description }}</span>
</div>
</li>
</ul>