Example #1
0
 private function evaluate()
 {
     $when = Own::get($this->resource . '.time');
     if ($when < time()) {
         Own::set($resource . '.time', time() + $this->lifetime);
         return Own::set($this->resource, 0);
     }
 }
Example #2
0
 /**
  * Implementation of hook_resolve_path_NAMESPACE().
  */
 public static function resolveExtensionPath($callerImport, $parser, $syntax = 'scss')
 {
     $alias = str_replace('/_', '/', str_replace(array('.scss', '.sass'), '', $callerImport));
     if (strrpos($alias, '/') !== false) {
         $alias = substr($alias, strrpos($alias, '/') + 1);
     }
     if (self::$filePaths == null) {
         self::$filePaths = self::getFilesArray(dirname(__FILE__) . '/' . self::$filesFolder . '/');
     }
     if (isset(self::$filePaths[$alias])) {
         return self::$filePaths[$alias];
     }
 }
Example #3
0
 *   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 NOALYSS; if not, write to the Free Software
 *   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 */
// Copyright Author Dany De Bontridder danydb@aevalys.eu
if (!defined('ALLOWED')) {
    die('Appel direct ne sont pas permis');
}
global $g_user;
echo '<div class="content">';
require_once NOALYSS_INCLUDE . '/class_own.php';
if (isset($_POST['record_company'])) {
    $m = new Own($cn);
    extract($_POST);
    $m->MY_NAME = $p_name;
    $m->MY_TVA = $p_tva;
    $m->MY_STREET = $p_street;
    $m->MY_NUMBER = $p_no;
    $m->MY_CP = $p_cp;
    $m->MY_COMMUNE = $p_Commune;
    $m->MY_TEL = $p_tel;
    $m->MY_FAX = $p_fax;
    $m->MY_PAYS = $p_pays;
    $m->MY_CHECK_PERIODE = $p_check_periode;
    $m->MY_DATE_SUGGEST = $p_date_suggest;
    $m->MY_ANALYTIC = $p_compta;
    $m->MY_STRICT = $p_strict;
    $m->MY_TVA_USE = $p_tva_use;