function smt2wp_show_error__cahe_dir() { // check to see if cache folder is in place: if (file_exists(get_smt2wp_cache_path())) { return; } // if we got this far, then we don't have the cache folder $cache_dir = get_smt2wp_cache_path(); $msg = '<strong>SMT2 cache folder is missing!</strong><br>'; $msg .= 'The plugin probably attempted to create it, but failed, so you\'ll need to do it manually.<br>'; $msg .= 'The folder should be named <b><i>' . basename($cache_dir) . '</i></b>, and its full path should be: <i>' . $cache_dir . '</i><br>'; $msg .= '<br>If you deleted the folder on purpose,<br> then you should know that SMT will not give you the best possible experience without it, so it is recommended to create that folder again.'; echo '<div class="error" style="padding:20px">' . $msg . '</div>'; }
/** Path to core JavaScript functions. */ define('JS_PATH', $jspath); /** smt2 record script. */ define('SMT_RECORD', JS_PATH . "smt-record" . $jsext); /** smt2 replay script. */ define('SMT_REPLAY', JS_PATH . "smt-replay" . $jsext); /** smt2 auxiliar functions. */ define('SMT_AUX', JS_PATH . "smt-aux" . $jsext); /** WZ JavaScript graphics libary. */ define('WZ_JSGRAPHICS', JS_PATH . "wz_jsgraphics" . $jsext); /** JSON parser. */ define('JSON_PARSER', JS_PATH . "json2" . $jsext); /** JavaScript DOM selector library (Sizzle, Peppy, Selector, etc.). */ define('JS_SELECTOR', JS_PATH . "selector" . $jsext); /** SWFObject library. */ define('SWFOBJECT', ADMIN_PATH . "js/swfobject.js"); // it's already minified /** HTML logs dir. Do not use absolute URLs because fopen wrappers could be disabled. */ define('CACHE_DIR', get_smt2wp_cache_path()); // define ('CACHE_DIR', BASE_PATH."/cache/"); // define ('CACHE_DIR', WP_BASE_LOCAL_DIR . "/wp-content/uploads/smt2/cache/"); /** Path to system dir. */ define('SYS_DIR', INC_PATH . "sys/"); /** Path to common includes (header, footer, and so on). */ define('INC_DIR', INC_PATH . "inc/"); /** Form input type: User must enter some value (input text) */ define('CMS_TYPE', 0); /** Form input type: User must choose between 2 options (checkbox) */ define('CMS_CHOICE', 1); /** Form input type: User must choose between 3 or more options (radio button) */ define('CMS_MULTIPLE', 2);