Jump to content

masavini

Members
  • Posts

    6
  • Joined

  • Last visited

masavini's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. thanks for your replies, it is now working indeed... just a couple of suggestions: - update heliohost wikis and howtos, as the 'parked domains' button is not present anymore in cpanel and it has been replaced with the 'aliases' button: it took me several time to guess it... - add a warning in the alias creation page, informing about the need to wait for the changes to work
  2. hi, i installed wordpress, which was perfectly working with my heliohost domain (http://maxetti.heliohost.org). then i added and alias domain (http://riccardomasetti.org) with domain root '/home/maxetti/public_html' and no redirection. finally, i set 'http://riccardomasetti.org' in the 'siteurl' and 'home' fields of the 'wpdp_options' table in the wordpress db. now, if i visit http://riccardomasetti.org i get redirected to http://riccardomasetti.org/cgi-sys/defaultwebpage.cgi and if i visit http://riccardomasetti.org/wp-admin/ i get redirected to http://riccardomasetti.org/wp-login.php?redirect_to=http%3A%2F%2Fmaxetti.heliohost.org%2Fwp-admin%2F&reauth=1, with a 404 error... what am i missing?
  3. Dear Heliohost I tried to reactivate my account "masavini" but the script at the link http://www.heliohost...t/scripts/renew doesn't work. Could you please fix it? Thanks!
  4. yes, it gives me this error: #1227 - Access denied; you need the SUPER privilege for this operation
  5. hi, i'd like to add a (simple) function to my db... i know i'm not a superuser, could a superuser do it for me? here is the code: DELIMITER $$ CREATE DEFINER=`masavini`@`%` FUNCTION `levenshtein`( s1 VARCHAR(255), s2 VARCHAR(255) ) RETURNS int(11) DETERMINISTIC BEGIN DECLARE s1_len, s2_len, i, j, c, c_temp, cost INT; DECLARE s1_char CHAR; -- max strlen=255 DECLARE cv0, cv1 VARBINARY(256); SET s1_len = CHAR_LENGTH(s1), s2_len = CHAR_LENGTH(s2), cv1 = 0x00, j = 1, i = 1, c = 0; IF s1 = s2 THEN RETURN 0; ELSEIF s1_len = 0 THEN RETURN s2_len; ELSEIF s2_len = 0 THEN RETURN s1_len; ELSE WHILE j <= s2_len DO SET cv1 = CONCAT(cv1, UNHEX(HEX(j))), j = j + 1; END WHILE; WHILE i <= s1_len DO SET s1_char = SUBSTRING(s1, i, 1), c = i, cv0 = UNHEX(HEX(i)), j = 1; WHILE j <= s2_len DO SET c = c + 1; IF s1_char = SUBSTRING(s2, j, 1) THEN SET cost = 0; ELSE SET cost = 1; END IF; SET c_temp = CONV(HEX(SUBSTRING(cv1, j, 1)), 16, 10) + cost; IF c > c_temp THEN SET c = c_temp; END IF; SET c_temp = CONV(HEX(SUBSTRING(cv1, j+1, 1)), 16, 10) + 1; IF c > c_temp THEN SET c = c_temp; END IF; SET cv0 = CONCAT(cv0, UNHEX(HEX(c))), j = j + 1; END WHILE; SET cv1 = cv0, i = i + 1; END WHILE; END IF; RETURN c; END$$ thanks, matteo
×
×
  • Create New...