예제 #1
0
 /**
  * Update settings so the value increases by one for this type
  *
  * @param string  Name of type (code|other)
  */
 public static function incSetting($name, $inc = 1)
 {
     $name = \Kofradia\DB::quote('github_' . $name);
     $inc = (int) $inc;
     \Kofradia\DB::get()->exec("\n\t\t\tINSERT INTO settings SET name = {$name}, value = 1\n\t\t\tON DUPLICATE KEY UPDATE value = value + {$inc}");
     \Kofradia\Settings::reload();
 }
예제 #2
0
<?php

\Kofradia\Settings::reload();